Flutter Engine
The Flutter Engine
|
Functions | |
SK_API bool | IsWbmp (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 > SkWbmpDecoder::Decode | ( | sk_sp< SkData > | data, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | = nullptr |
||
) |
Definition at line 226 of file SkWbmpCodec.cpp.
std::unique_ptr< SkCodec > SkWbmpDecoder::Decode | ( | std::unique_ptr< SkStream > | stream, |
SkCodec::Result * | outResult, | ||
SkCodecs::DecodeContext | = nullptr |
||
) |
Attempts to decode the given bytes as a WBMP.
If the bytes are not a WBMP, returns nullptr.
DecodeContext is ignored
Definition at line 216 of file SkWbmpCodec.cpp.
|
inlineconstexpr |
Definition at line 38 of file SkWbmpDecoder.h.
bool SkWbmpDecoder::IsWbmp | ( | const void * | data, |
size_t | len | ||
) |
Returns true if this data claims to be a WBMP image.
Definition at line 212 of file SkWbmpCodec.cpp.