Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Attributes | List of all members
SkCodec::FrameInfo Struct Reference

#include <SkCodec.h>

Public Attributes

int fRequiredFrame
 
int fDuration
 
bool fFullyReceived
 
SkAlphaType fAlphaType
 
bool fHasAlphaWithinBounds
 
SkCodecAnimation::DisposalMethod fDisposalMethod
 
SkCodecAnimation::Blend fBlend
 
SkIRect fFrameRect
 

Detailed Description

Information about individual frames in a multi-framed image.

Definition at line 660 of file SkCodec.h.

Member Data Documentation

◆ fAlphaType

SkAlphaType SkCodec::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.

Definition at line 689 of file SkCodec.h.

◆ fBlend

SkCodecAnimation::Blend SkCodec::FrameInfo::fBlend

How this frame should blend with the prior frame.

Definition at line 709 of file SkCodec.h.

◆ fDisposalMethod

SkCodecAnimation::DisposalMethod SkCodec::FrameInfo::fDisposalMethod

How this frame should be modified before decoding the next one.

Definition at line 704 of file SkCodec.h.

◆ fDuration

int SkCodec::FrameInfo::fDuration

Number of milliseconds to show this frame.

Definition at line 675 of file SkCodec.h.

◆ fFrameRect

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().

Definition at line 717 of file SkCodec.h.

◆ fFullyReceived

bool SkCodec::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.

Definition at line 683 of file SkCodec.h.

◆ fHasAlphaWithinBounds

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.

Definition at line 699 of file SkCodec.h.

◆ fRequiredFrame

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.

Definition at line 670 of file SkCodec.h.


The documentation for this struct was generated from the following file: