pub struct CompositionPlan {
pub id: CompositionId,
pub steps: Vec<Step>,
pub output: usize,
pub media: Vec<(String, MediaTime)>,
}Expand description
A composition’s output, drawn by steps in dependency order.
Fields§
§id: CompositionIdThe composition.
steps: Vec<Step>Steps in dependency order; each step’s inputs are earlier steps.
output: usizeThe step whose image is the composition’s picture.
media: Vec<(String, MediaTime)>Every media node of the compositions the steps come from, drawn or not, by inlined path,
with its start: what a value bound to data reads through.
Implementations§
Source§impl CompositionPlan
impl CompositionPlan
Sourcepub fn effects(&self) -> impl Iterator<Item = &ClipEffect>
pub fn effects(&self) -> impl Iterator<Item = &ClipEffect>
The effect, transition and generator effect invocations the steps run, in step order.
Sourcepub fn media_start(&self, step: usize, via: &NodeId) -> Option<MediaTime>
pub fn media_start(&self, step: usize, via: &NodeId) -> Option<MediaTime>
The start of the media node via beside step step, found as the node of that id in
the same inlined composition, past the ids of the time offset nodes the step is read
through.
Sourcepub fn uses_clip(&self) -> bool
pub fn uses_clip(&self) -> bool
Whether a step draws the picture of the clip showing the plan at the frame’s own time.
Sourcepub fn draws_clip(&self) -> bool
pub fn draws_clip(&self) -> bool
Whether a step draws the picture of the clip showing the plan, at the frame’s own time or at another.
Sourcepub fn shifted_clips(&self) -> impl Iterator<Item = (usize, MediaTime)> + '_
pub fn shifted_clips(&self) -> impl Iterator<Item = (usize, MediaTime)> + '_
The steps that draw the clip showing the plan at another time, with their shifts.