core/utils/video_effect_frames
library
Functions
-
bakeTriggeredVideoEffectFrames(VideoEffectType type, double intensity, List<int> triggerSteps)
→ Float64List
-
Every trigger step of a triggered effect, from its start until its last
hit has played, flattened for the native renderers.
-
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.
-
videoEffectHitLengthOf(VideoEffectType type)
→ int
-
The buckets one trigger of
type plays; see VideoEffect.triggers.
-
videoEffectTriggeredFrameFor(VideoEffectType type, double intensity, List<int> triggerSteps, int step)
→ VideoEffectFrame
-
The frame of
type at intensity on trigger step step, counted from
the effect's start, given the steps triggerSteps fire on (see
videoEffectTriggerSteps).
-
videoEffectTriggeredLengthOf(VideoEffectType type, List<int> triggerSteps)
→ int
-
The number of trigger steps from a triggered effect's start until its
last hit has played, or 0 when
triggerSteps is empty.
-
videoEffectTriggerStepOf(Duration localTime)
→ int
-
The trigger step
localTime falls in, counting from the effect's start.
-
videoEffectTriggerSteps(List<Duration> triggers, {required Duration start, Duration? end})
→ List<int>
-
The steps, counted from
start, on which triggers fire: each rounded to
the nearest step, in ascending order, without those before start or at
or after end and without duplicates.