pub enum StepOp {
Clip,
ShiftedClip {
shift: MediaTime,
},
Media {
source_id: SourceId,
start: MediaTime,
frame_interpolation: FrameInterpolation,
},
Generator {
generator: Generator,
start: MediaTime,
plan: Option<Arc<GeneratorPlan>>,
},
Effect {
input: usize,
inputs: Vec<(String, usize)>,
effect: ClipEffect,
},
Transition {
from: usize,
to: usize,
effect: ClipEffect,
progress: Animated<f32>,
},
Transform {
input: usize,
transform: VisualProperties,
motion_blur: bool,
},
Merge {
layers: Vec<StepLayer>,
},
Matte {
input: usize,
matte: usize,
mode: MatteMode,
},
KeyMix {
backdrop: usize,
input: usize,
mask: Option<usize>,
opacity: Animated<f32>,
},
ShapeMask {
input: usize,
masks: Vec<ShapeMask>,
},
}Expand description
The operation of a Step. Inputs are indices of earlier steps.
Variants§
Clip
The picture of the clip showing the composition.
ShiftedClip
The picture of the clip showing the composition as time offset nodes read it: the clip
at the timeline time shift of composition time away
(alpha2_model::TimeScale::shifted_time), transparent outside the clip.
Media
A host-supplied source at start plus the composition time.
Fields
frame_interpolation: FrameInterpolationWhat the step shows between two frames of the source; Hold for a source without
frames.
Generator
A picture the engine draws (a generator node, or a media node naming a generated source).
Fields
start: MediaTimePicture time at composition time zero: a media node’s start, zero for a generator node.
plan: Option<Arc<GeneratorPlan>>Planned tree for a shapes or layout generator.
Effect
A registered effect.
Fields
effect: ClipEffectThe effect.
Transition
A registered transition at an explicit progress.
Fields
effect: ClipEffectThe transition.
Transform
The input placed by a transform.
Fields
transform: VisualPropertiesThe transform.
Merge
Layers composited over transparency, bottom first.
Matte
The input kept where a second image says.
Fields
KeyMix
The backdrop replaced by the input by k = opacity x mask alpha.
Fields
ShapeMask
The input kept inside shapes.