Flutter Engine
The Flutter Engine
|
#include <SkCodec.h>
Information about individual frames in a multi-framed image.
SkAlphaType SkCodec::FrameInfo::fAlphaType |
SkCodecAnimation::Blend SkCodec::FrameInfo::fBlend |
SkCodecAnimation::DisposalMethod SkCodec::FrameInfo::fDisposalMethod |
int SkCodec::FrameInfo::fDuration |
SkIRect SkCodec::FrameInfo::fFrameRect |
The rectangle updated by this frame.
It may be empty, if the frame does not change the image. It will always be contained by SkCodec::dimensions().
bool SkCodec::FrameInfo::fFullyReceived |
bool SkCodec::FrameInfo::fHasAlphaWithinBounds |
Whether the updated rectangle contains alpha.
This is conservative; it will still be set to true if e.g. a color index-based frame has a color with alpha but does not use it. In addition, it may be set to true, even if the final frame, after blending, is opaque.
int SkCodec::FrameInfo::fRequiredFrame |
The frame that this frame needs to be blended with, or kNoFrame if this frame is independent (so it can be drawn over an uninitialized buffer).
Note that this is the earliest frame that can be used for blending. Any frame from [fRequiredFrame, i) can be used, unless its fDisposalMethod is kRestorePrevious.