Flutter Engine
The Flutter Engine
Public Attributes | List of all members
flutter::ImageGenerator::FrameInfo Struct Reference

Info about a single frame in the context of a multi-frame image, useful for animation and blending. More...

#include <image_generator.h>

Public Attributes

std::optional< unsigned intrequired_frame
 
unsigned int duration
 
SkCodecAnimation::DisposalMethod disposal_method
 How this frame should be modified before decoding the next one. More...
 
std::optional< SkIRectdisposal_rect
 The region of the frame that is affected by the disposal method. More...
 
SkCodecAnimation::Blend blend_mode
 How this frame should be blended with the previous frame. More...
 

Detailed Description

Info about a single frame in the context of a multi-frame image, useful for animation and blending.

Definition at line 35 of file image_generator.h.

Member Data Documentation

◆ blend_mode

SkCodecAnimation::Blend flutter::ImageGenerator::FrameInfo::blend_mode

How this frame should be blended with the previous frame.

Definition at line 51 of file image_generator.h.

◆ disposal_method

SkCodecAnimation::DisposalMethod flutter::ImageGenerator::FrameInfo::disposal_method

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

Definition at line 45 of file image_generator.h.

◆ disposal_rect

std::optional<SkIRect> flutter::ImageGenerator::FrameInfo::disposal_rect

The region of the frame that is affected by the disposal method.

Definition at line 48 of file image_generator.h.

◆ duration

unsigned int flutter::ImageGenerator::FrameInfo::duration

Number of milliseconds to show this frame. 0 means only show it for one frame.

Definition at line 42 of file image_generator.h.

◆ required_frame

std::optional<unsigned int> flutter::ImageGenerator::FrameInfo::required_frame

The frame index of the frame that, if any, this frame needs to be blended with.

Definition at line 38 of file image_generator.h.


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