pub struct FrameDesc<'a> {
pub time: MediaTime,
pub background: Rgb,
pub blend_space: BlendSpace,
pub visual: Vec<ActiveClip<'a>>,
pub audio: Vec<ActiveClip<'a>>,
pub transitions: Vec<ActiveTransition<'a>>,
pub captions: Vec<ActiveCaption<'a>>,
}Expand description
A timestamp-specific composition description with no GPU handles.
Identities and authored effects are borrowed from the crate::ActiveIndex
that produced the description, so evaluating a frame copies none of them.
'a is the index’s borrow; clone what must outlive it.
Fields§
§time: MediaTimeTimestamp evaluated on the project timeline.
background: RgbOpaque color under every visual layer.
blend_space: BlendSpaceThe space in which blend modes are evaluated.
visual: Vec<ActiveClip<'a>>Active visual clips in composition order.
audio: Vec<ActiveClip<'a>>Active audio clips in mix order.
transitions: Vec<ActiveTransition<'a>>Active two-input transitions in track order.
captions: Vec<ActiveCaption<'a>>The cue each caption track shows, in track order.
Implementations§
Source§impl FrameDesc<'_>
impl FrameDesc<'_>
Sourcepub fn draws(&self, clip: &ActiveClip<'_>) -> bool
pub fn draws(&self, clip: &ActiveClip<'_>) -> bool
Whether the frame draws clip’s picture anywhere: as itself, or,
for another clip’s matte (ActiveClip::is_matte), into an active
clip that names it. A matte no active clip names is drawn nowhere, so
nothing of it is needed.