Flutter Engine
The Flutter Engine
|
#include <SkCodec.h>
Public Member Functions | |
Options () | |
Public Attributes | |
ZeroInitialized | fZeroInitialized |
const SkIRect * | fSubset |
int | fFrameIndex |
int | fPriorFrame |
|
inline |
Definition at line 322 of file SkCodec.h.
int SkCodec::Options::fFrameIndex |
int SkCodec::Options::fPriorFrame |
If not kNoFrame, the dst already contains the prior frame at this index.
Only meaningful for multi-frame images.
If fFrameIndex needs to be blended with a prior frame (as reported by getFrameInfo[fFrameIndex].fRequiredFrame), the client can set this to any non-kRestorePrevious frame in [fRequiredFrame, fFrameIndex) to indicate that that frame is already in the dst. Options.fZeroInitialized is ignored in this case.
If set to kNoFrame, the codec will decode any necessary required frame(s) first.
const SkIRect* SkCodec::Options::fSubset |
If not NULL, represents a subset of the original image to decode. Must be within the bounds returned by getInfo(). If the EncodedFormat is SkEncodedImageFormat::kWEBP (the only one which currently supports subsets), the top and left values must be even.
In getPixels and incremental decode, we will attempt to decode the exact rectangular subset specified by fSubset.
In a scanline decode, it does not make sense to specify a subset top or subset height, since the client already controls which rows to get and which rows to skip. During scanline decodes, we will require that the subset top be zero and the subset height be equal to the full height. We will, however, use the values of subset left and subset width to decode partial scanlines on calls to getScanlines().
ZeroInitialized SkCodec::Options::fZeroInitialized |