pub enum StepOp {
Clip,
Media {
source_id: SourceId,
start: MediaTime,
},
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,
},
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.
Media
A host-supplied source at start plus the composition time.
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.
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.
Trait Implementations§
impl StructuralPartialEq for StepOp
Auto Trait Implementations§
impl Forget for StepOp
impl Freeze for StepOpwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GradientStop>: Freeze,
PhantomData<ShapeItem>: Freeze,
PhantomData<TextRun>: Freeze,
*const TextStyle is !null: Freeze,
PhantomData<TextStyle>: Freeze,
*const LayoutNode is !null: Freeze,
PhantomData<LayoutNode>: Freeze,
*const ArcInner<GeneratorPlan> is !null: Freeze,
PhantomData<ArcInner<GeneratorPlan>>: Freeze,
PhantomData<(String, usize)>: Freeze,
*const LeafNode<String, Animated<EffectValue>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Animated<EffectValue>)>>: Freeze,
*const LeafNode<String, EffectResourceId> is !null: Freeze,
PhantomData<Box<(String, EffectResourceId)>>: Freeze,
PhantomData<Keyframe<f32>>: Freeze,
*const DataBinding is !null: Freeze,
PhantomData<DataBinding>: Freeze,
PhantomData<PointKeyframe>: Freeze,
PhantomData<Keyframe<Vec2>>: Freeze,
PhantomData<StepLayer>: Freeze,
PhantomData<ShapeMask>: Freeze,
impl Move for StepOp
impl RefUnwindSafe for StepOp
impl Send for StepOpwhere
RawVecInner: Send,
BoxRaw<DataBinding>: Send,
BoxRaw<TextStyle>: Send,
BoxRaw<LayoutNode>: Send,
Arc<GeneratorPlan>: Send,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Send,
BoxRaw<(String, Animated<EffectValue>)>: Send,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Send,
BoxRaw<(String, EffectResourceId)>: Send,
impl Sync for StepOpwhere
RawVecInner: Sync,
BoxRaw<DataBinding>: Sync,
BoxRaw<TextStyle>: Sync,
BoxRaw<LayoutNode>: Sync,
Arc<GeneratorPlan>: Sync,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Sync,
BoxRaw<(String, Animated<EffectValue>)>: Sync,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Sync,
BoxRaw<(String, EffectResourceId)>: Sync,
impl Unpin for StepOpwhere
*const u8 is !null: Unpin,
Box<DataBinding>: Unpin,
Box<TextStyle>: Unpin,
Box<LayoutNode>: Unpin,
Arc<GeneratorPlan>: Unpin,
*const LeafNode<String, Animated<EffectValue>> is !null: Unpin,
Box<(String, Animated<EffectValue>)>: Unpin,
*const LeafNode<String, EffectResourceId> is !null: Unpin,
Box<(String, EffectResourceId)>: Unpin,
impl UnsafeUnpin for StepOpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GradientStop>: UnsafeUnpin,
PhantomData<ShapeItem>: UnsafeUnpin,
PhantomData<TextRun>: UnsafeUnpin,
*const TextStyle is !null: UnsafeUnpin,
PhantomData<TextStyle>: UnsafeUnpin,
*const LayoutNode is !null: UnsafeUnpin,
PhantomData<LayoutNode>: UnsafeUnpin,
*const ArcInner<GeneratorPlan> is !null: UnsafeUnpin,
PhantomData<ArcInner<GeneratorPlan>>: UnsafeUnpin,
PhantomData<(String, usize)>: UnsafeUnpin,
*const LeafNode<String, Animated<EffectValue>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Animated<EffectValue>)>>: UnsafeUnpin,
*const LeafNode<String, EffectResourceId> is !null: UnsafeUnpin,
PhantomData<Box<(String, EffectResourceId)>>: UnsafeUnpin,
PhantomData<Keyframe<f32>>: UnsafeUnpin,
*const DataBinding is !null: UnsafeUnpin,
PhantomData<DataBinding>: UnsafeUnpin,
PhantomData<PointKeyframe>: UnsafeUnpin,
PhantomData<Keyframe<Vec2>>: UnsafeUnpin,
PhantomData<StepLayer>: UnsafeUnpin,
PhantomData<ShapeMask>: UnsafeUnpin,
impl UnwindSafe for StepOpwhere
RawVecInner: UnwindSafe,
BoxRaw<DataBinding>: UnwindSafe,
BoxRaw<TextStyle>: UnwindSafe,
BoxRaw<LayoutNode>: UnwindSafe,
Arc<GeneratorPlan>: UnwindSafe,
BTreeMap<String, Animated<EffectValue>>: UnwindSafe,
BTreeMap<String, EffectResourceId>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more