Flutter Engine
The Flutter Engine
|
#include <SkIcoCodec.h>
Static Public Member Functions | |
static bool | IsIco (const void *, size_t) |
static std::unique_ptr< SkCodec > | MakeFromStream (std::unique_ptr< SkStream >, Result *) |
Static Public Member Functions inherited from SkCodec | |
static constexpr size_t | MinBufferedBytesNeeded () |
static const char * | ResultToString (Result) |
static std::unique_ptr< SkCodec > | MakeFromStream (std::unique_ptr< SkStream >, SkSpan< const SkCodecs::Decoder > decoders, Result *=nullptr, SkPngChunkReader *=nullptr, SelectionPolicy selectionPolicy=SelectionPolicy::kPreferStillImage) |
static std::unique_ptr< SkCodec > | MakeFromStream (std::unique_ptr< SkStream >, Result *=nullptr, SkPngChunkReader *=nullptr, SelectionPolicy selectionPolicy=SelectionPolicy::kPreferStillImage) |
static std::unique_ptr< SkCodec > | MakeFromData (sk_sp< SkData >, SkSpan< const SkCodecs::Decoder > decoders, SkPngChunkReader *=nullptr) |
static std::unique_ptr< SkCodec > | MakeFromData (sk_sp< SkData >, SkPngChunkReader *=nullptr) |
static void | Register (bool(*peek)(const void *, size_t), std::unique_ptr< SkCodec >(*make)(std::unique_ptr< SkStream >, SkCodec::Result *)) |
Private Member Functions | |
Result | onStartScanlineDecode (const SkImageInfo &dstInfo, const SkCodec::Options &options) override |
int | onGetScanlines (void *dst, int count, size_t rowBytes) override |
bool | onSkipScanlines (int count) override |
Result | onStartIncrementalDecode (const SkImageInfo &dstInfo, void *pixels, size_t rowBytes, const SkCodec::Options &) override |
Result | onIncrementalDecode (int *rowsDecoded) override |
SkSampler * | getSampler (bool createIfNecessary) override |
Definition at line 27 of file SkIcoCodec.h.
|
inlineoverrideprotectedvirtual |
Return whether we can convert to dst.
Will be called for the appropriate frame, prior to initializing the colorXform.
Reimplemented from SkCodec.
Definition at line 59 of file SkIcoCodec.h.
|
overrideprivatevirtual |
Return an object which will allow forcing scanline decodes to sample in X.
May create a sampler, if one is not currently being used. Otherwise, does not affect ownership.
Only valid during scanline decoding or incremental decoding.
Reimplemented from SkCodec.
Definition at line 404 of file SkIcoCodec.cpp.
|
static |
Definition at line 37 of file SkIcoCodec.cpp.
|
static |
Definition at line 45 of file SkIcoCodec.cpp.
|
overrideprotectedvirtual |
Subclasses should override if they support dimensions other than the srcInfo's.
Reimplemented from SkCodec.
Definition at line 266 of file SkIcoCodec.cpp.
|
inlineoverrideprotectedvirtual |
Implements SkCodec.
Definition at line 53 of file SkIcoCodec.h.
|
overrideprotectedvirtual |
rowsDecoded | When the encoded image stream is incomplete, this function will return kIncompleteInput and rowsDecoded will be set to the number of scanlines that were successfully decoded. This will allow getPixels() to fill the uninitialized memory. |
Implements SkCodec.
Definition at line 273 of file SkIcoCodec.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkCodec.
Definition at line 228 of file SkIcoCodec.cpp.
|
overrideprotectedvirtual |
The remaining functions revolve around decoding scanlines. Most images types will be kTopDown and will not need to override this function.
Reimplemented from SkCodec.
Definition at line 394 of file SkIcoCodec.cpp.
Reimplemented from SkCodec.
Definition at line 335 of file SkIcoCodec.cpp.
|
overrideprivatevirtual |
Reimplemented from SkCodec.
Definition at line 389 of file SkIcoCodec.cpp.
|
overrideprivatevirtual |
Reimplemented from SkCodec.
Definition at line 340 of file SkIcoCodec.cpp.
|
overrideprivatevirtual |
Reimplemented from SkCodec.
Definition at line 345 of file SkIcoCodec.cpp.
|
overrideprivatevirtual |
Reimplemented from SkCodec.
Definition at line 311 of file SkIcoCodec.cpp.
|
inlineoverrideprotectedvirtual |