Flutter Engine
The Flutter Engine
|
#include <SkJpegCodec.h>
Static Public Member Functions | |
static bool | IsJpeg (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 *)) |
Protected Member Functions | |
SkISize | onGetScaledDimensions (float desiredScale) const override |
Result | onGetPixels (const SkImageInfo &dstInfo, void *dst, size_t dstRowBytes, const Options &, int *) override |
bool | onQueryYUVAInfo (const SkYUVAPixmapInfo::SupportedDataTypes &, SkYUVAPixmapInfo *) const override |
Result | onGetYUVAPlanes (const SkYUVAPixmaps &yuvaPixmaps) override |
SkEncodedImageFormat | onGetEncodedFormat () const override |
bool | onRewind () override |
bool | onDimensionsSupported (const SkISize &) override |
bool | conversionSupported (const SkImageInfo &, bool, bool) override |
bool | onGetGainmapInfo (SkGainmapInfo *info, std::unique_ptr< SkStream > *gainmapImageStream) override |
Protected Member Functions inherited from SkCodec | |
const SkEncodedInfo & | getEncodedInfo () const |
SkCodec (SkEncodedInfo &&, XformFormat srcFormat, std::unique_ptr< SkStream >, SkEncodedOrigin=kTopLeft_SkEncodedOrigin) | |
void | setSrcXformFormat (XformFormat pixelFormat) |
XformFormat | getSrcXformFormat () const |
virtual bool | onGetGainmapInfo (SkGainmapInfo *, std::unique_ptr< SkStream > *) |
virtual SkISize | onGetScaledDimensions (float) const |
virtual bool | onDimensionsSupported (const SkISize &) |
virtual SkEncodedImageFormat | onGetEncodedFormat () const =0 |
virtual Result | onGetPixels (const SkImageInfo &info, void *pixels, size_t rowBytes, const Options &, int *rowsDecoded)=0 |
virtual bool | onQueryYUVAInfo (const SkYUVAPixmapInfo::SupportedDataTypes &, SkYUVAPixmapInfo *) const |
virtual Result | onGetYUVAPlanes (const SkYUVAPixmaps &) |
virtual bool | onGetValidSubset (SkIRect *) const |
bool | rewindIfNeeded () |
virtual bool | onRewind () |
SkStream * | stream () |
virtual SkScanlineOrder | onGetScanlineOrder () const |
const SkImageInfo & | dstInfo () const |
const Options & | options () const |
int | currScanline () const |
virtual int | onOutputScanline (int inputScanline) const |
virtual bool | conversionSupported (const SkImageInfo &dst, bool srcIsOpaque, bool needsColorXform) |
virtual bool | usesColorXform () const |
void | applyColorXform (void *dst, const void *src, int count) const |
bool | colorXform () const |
bool | xformOnDecode () const |
virtual int | onGetFrameCount () |
virtual bool | onGetFrameInfo (int, FrameInfo *) const |
virtual int | onGetRepetitionCount () |
Friends | |
class | SkRawCodec |
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 Attributes inherited from SkCodec | |
static constexpr int | kNoFrame = -1 |
static constexpr int | kRepetitionCountInfinite = -1 |
Protected Types inherited from SkCodec | |
using | XformFormat = skcms_PixelFormat |
Definition at line 37 of file SkJpegCodec.h.
|
overridedefault |
|
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 283 of file SkJpegCodec.cpp.
|
static |
Definition at line 56 of file SkJpegCodec.cpp.
|
static |
Definition at line 174 of file SkJpegCodec.cpp.
|
overrideprotectedvirtual |
Subclasses should override if they support dimensions other than the srcInfo's.
Reimplemented from SkCodec.
Definition at line 354 of file SkJpegCodec.cpp.
|
inlineoverrideprotectedvirtual |
Implements SkCodec.
Definition at line 67 of file SkJpegCodec.h.
|
overrideprotectedvirtual |
Reimplemented from SkCodec.
Definition at line 908 of file SkJpegCodec.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 472 of file SkJpegCodec.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkCodec.
Definition at line 232 of file SkJpegCodec.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkCodec.
Definition at line 792 of file SkJpegCodec.cpp.
|
overrideprotectedvirtual |
Reimplemented from SkCodec.
Definition at line 786 of file SkJpegCodec.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 267 of file SkJpegCodec.cpp.
|
friend |
Definition at line 161 of file SkJpegCodec.h.