Codec.FrameInfo
- class FrameInfo
Information about individual frames in a multi-framed image.
Methods
Attributes
This is conservative; it will still return non-opaque if e.g.
How this frame should be modified before decoding the next one.
Number of milliseconds to show this frame.
Whether the end marker for this frame is contained in the stream.
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).
Methods
- FrameInfo.__init__(self: skia.Codec.FrameInfo) None
Attributes
- FrameInfo.fAlphaType
This is conservative; it will still return non-opaque if e.g. a color index-based frame has a color with alpha but does not use it.
- FrameInfo.fDisposalMethod
How this frame should be modified before decoding the next one.
- FrameInfo.fDuration
Number of milliseconds to show this frame.
- FrameInfo.fFullyReceived
Whether the end marker for this frame is contained in the stream.
Note: this does not guarantee that an attempt to decode will be complete. There could be an error in the stream.
- 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.