core/utils/video_effect_frames library

Constants

videoEffectCycleLength → const int
Buckets after which an animated effect repeats (20 seconds).
videoEffectFrameRate → const int
Frames per second at which an effect's look changes.

Functions

bakeVideoEffectFrames(VideoEffectType type, double intensity) → List<double>
Every frame of type's cycle, flattened for the native renderers.
videoEffectBucketOf(VideoEffectType type, Duration localTime) → int
The bucket of localTime into type's cycle.
videoEffectCycleLengthOf(VideoEffectType type) → int
The number of buckets videoEffectFrameFor cycles through for type.
videoEffectFrameFor(VideoEffectType type, double intensity, int bucket) → VideoEffectFrame
The frame of type at intensity for bucket.