Flutter Engine
The Flutter Engine
|
Functions | |
SK_API bool | IsHeif (const void *, size_t) |
SK_API std::unique_ptr< SkCodec > | Decode (std::unique_ptr< SkStream >, SkCodec::Result *, SkCodecs::DecodeContext=nullptr) |
SK_API std::unique_ptr< SkCodec > | Decode (sk_sp< SkData >, SkCodec::Result *, SkCodecs::DecodeContext=nullptr) |
SkCodecs::Decoder | Decoder () |
std::unique_ptr< SkCodec > SkHeifDecoder::Decode | ( | sk_sp< SkData > | data, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | ctx = nullptr |
||
) |
Definition at line 556 of file SkHeifCodec.cpp.
std::unique_ptr< SkCodec > SkHeifDecoder::Decode | ( | std::unique_ptr< SkStream > | stream, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | ctx = nullptr |
||
) |
Attempts to decode the given bytes as a HEIF (or AVIF).
If the bytes are not a HEIF (or AVIF), returns nullptr.
DecodeContext is treated as a SkCodec::SelectionPolicy*
Definition at line 544 of file SkHeifCodec.cpp.
|
inline |
Definition at line 44 of file SkHeifDecoder.h.
bool SkHeifDecoder::IsHeif | ( | const void * | data, |
size_t | len | ||
) |
Returns true if this data claims to be a HEIF (or AVIF) image.
Definition at line 540 of file SkHeifCodec.cpp.