Flutter Engine
The Flutter Engine
|
#include <SkHeifCodec.h>
Static Public Member Functions | |
static bool | IsSupported (const void *, size_t, SkEncodedImageFormat *format) |
static std::unique_ptr< SkCodec > | MakeFromStream (std::unique_ptr< SkStream >, SkCodec::SelectionPolicy selectionPolicy, 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 | |
SkSampler * | getSampler (bool createIfNecessary) override |
Result | onStartScanlineDecode (const SkImageInfo &dstInfo, const Options &options) override |
int | onGetScanlines (void *dst, int count, size_t rowBytes) override |
bool | onSkipScanlines (int count) override |
Definition at line 25 of file SkHeifCodec.h.
|
overrideprotectedvirtual |
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 231 of file SkHeifCodec.cpp.
|
inlineoverrideprotectedvirtual |
For multi-framed images, return the object with information about the frames.
Reimplemented from SkCodec.
Definition at line 56 of file SkHeifCodec.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 491 of file SkHeifCodec.cpp.
|
static |
Definition at line 21 of file SkHeifCodec.cpp.
|
static |
Definition at line 145 of file SkHeifCodec.cpp.
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from SkCodec.
Definition at line 333 of file SkHeifCodec.cpp.
Reimplemented from SkCodec.
Definition at line 383 of file SkHeifCodec.cpp.
|
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 407 of file SkHeifCodec.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkCodec.
Definition at line 400 of file SkHeifCodec.cpp.
|
overrideprotectedvirtual |
Called by rewindIfNeeded, if the stream needed to be rewound.
Subclasses should do any set up needed after a rewind.
Reimplemented from SkCodec.
Definition at line 502 of file SkHeifCodec.cpp.
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Reimplemented from SkCodec.
Definition at line 511 of file SkHeifCodec.cpp.