Flutter Engine
The Flutter Engine
|
Functions | |
SK_API bool | IsGif (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) |
constexpr SkCodecs::Decoder | Decoder () |
std::unique_ptr< SkCodec > | MakeFromStream (std::unique_ptr< SkStream > stream, SkCodec::SelectionPolicy selectionPolicy, SkCodec::Result *result) |
std::unique_ptr< SkCodec > SkGifDecoder::Decode | ( | sk_sp< SkData > | data, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | ctx = nullptr |
||
) |
Definition at line 1096 of file SkWuffsCodec.cpp.
std::unique_ptr< SkCodec > SkGifDecoder::Decode | ( | std::unique_ptr< SkStream > | stream, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | ctx = nullptr |
||
) |
Attempts to decode the given bytes as a GIF.
If the bytes are not a GIF, returns nullptr.
DecodeContext is ignored
Definition at line 1082 of file SkWuffsCodec.cpp.
|
inlineconstexpr |
Definition at line 38 of file SkGifDecoder.h.
bool SkGifDecoder::IsGif | ( | const void * | buf, |
size_t | bytesRead | ||
) |
Returns true if this data claims to be a GIF image.
Definition at line 977 of file SkWuffsCodec.cpp.
std::unique_ptr< SkCodec > SkGifDecoder::MakeFromStream | ( | std::unique_ptr< SkStream > | stream, |
SkCodec::SelectionPolicy | selectionPolicy, | ||
SkCodec::Result * | result | ||
) |
Definition at line 983 of file SkWuffsCodec.cpp.