Flutter Engine
The Flutter Engine
|
#include <SkBmpRLECodec.h>
Private Member Functions | |
int | decodeRows (const SkImageInfo &dstInfo, void *dst, size_t dstRowBytes, const Options &opts) override |
bool | skipRows (int count) override |
SkSampler * | getSampler (bool createIfNecessary) override |
Additional Inherited Members | |
Public Types inherited from SkCodec | |
enum | Result { kSuccess , kIncompleteInput , kErrorInInput , kInvalidConversion , kInvalidScale , kInvalidParameters , kInvalidInput , kCouldNotRewind , kInternalError , kUnimplemented } |
enum class | SelectionPolicy { kPreferStillImage , kPreferAnimation } |
enum | ZeroInitialized { kYes_ZeroInitialized , kNo_ZeroInitialized } |
enum | SkScanlineOrder { kTopDown_SkScanlineOrder , kBottomUp_SkScanlineOrder } |
Static Public Member Functions inherited from SkBmpCodec | |
static bool | IsBmp (const void *, size_t) |
static std::unique_ptr< SkCodec > | MakeFromStream (std::unique_ptr< SkStream >, Result *) |
static std::unique_ptr< SkCodec > | MakeFromIco (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 *)) |
Static Public Attributes inherited from SkCodec | |
static constexpr int | kNoFrame = -1 |
static constexpr int | kRepetitionCountInfinite = -1 |
Protected Types inherited from SkCodec | |
using | XformFormat = skcms_PixelFormat |
Static Protected Member Functions inherited from SkBmpCodec | |
static Result | ReadHeader (SkStream *, bool inIco, std::unique_ptr< SkCodec > *codecOut) |
Static Protected Attributes inherited from SkBmpCodec | |
static constexpr SkColorType | kXformSrcColorType = kBGRA_8888_SkColorType |
static constexpr auto | kXformSrcColorFormat = skcms_PixelFormat_BGRA_8888 |
Definition at line 29 of file SkBmpRLECodec.h.
SkBmpRLECodec::SkBmpRLECodec | ( | SkEncodedInfo && | info, |
std::unique_ptr< SkStream > | stream, | ||
uint16_t | bitsPerPixel, | ||
uint32_t | numColors, | ||
uint32_t | bytesPerColor, | ||
uint32_t | offset, | ||
SkCodec::SkScanlineOrder | rowOrder | ||
) |
Definition at line 33 of file SkBmpRLECodec.cpp.
|
overrideprivatevirtual |
Implements SkBmpCodec.
Definition at line 292 of file SkBmpRLECodec.cpp.
int SkBmpRLECodec::fillWidth | ( | ) | const |
Definition at line 579 of file SkBmpRLECodec.cpp.
|
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 566 of file SkBmpRLECodec.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 51 of file SkBmpRLECodec.cpp.
|
overrideprotectedvirtual |
Implements SkBmpCodec.
Definition at line 252 of file SkBmpRLECodec.cpp.
Definition at line 574 of file SkBmpRLECodec.cpp.
|
overrideprivatevirtual |
Reimplemented from SkBmpCodec.
Definition at line 536 of file SkBmpRLECodec.cpp.