Flutter Engine
The Flutter Engine
|
Functions | |
SK_API bool | IsPng (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 > SkPngDecoder::Decode | ( | sk_sp< SkData > | data, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | ctx = nullptr |
||
) |
Definition at line 1252 of file SkPngCodec.cpp.
std::unique_ptr< SkCodec > SkPngDecoder::Decode | ( | std::unique_ptr< SkStream > | stream, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | ctx = nullptr |
||
) |
Attempts to decode the given bytes as a PNG.
If the bytes are not a PNG, returns nullptr.
DecodeContext, if non-null, is expected to be a SkPngChunkReader*
Definition at line 1238 of file SkPngCodec.cpp.
|
inlineconstexpr |
Definition at line 38 of file SkPngDecoder.h.
bool SkPngDecoder::IsPng | ( | const void * | data, |
size_t | len | ||
) |
Returns true if this data claims to be a PNG image.
Definition at line 1234 of file SkPngCodec.cpp.