pub struct FrameDesc<'a> {
pub time: MediaTime,
pub background: Option<Rgb>,
pub blend_space: BlendSpace,
pub canvas: Option<(u32, u32)>,
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 ('a), so
evaluating a frame copies none of them.
Fields§
§time: MediaTimeTimestamp evaluated on the project timeline.
background: Option<Rgb>Opaque color under every visual layer, or None for transparent black (alpha output).
blend_space: BlendSpaceThe space in which blend modes are evaluated.
canvas: Option<(u32, u32)>The project canvas in pixels, which effects sized in project pixels refer to; None
draws them at the render size.
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 by start, then track order, then position in their track’s
transitions. The engine’s fold makes the picture independent of this 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. A matte (ActiveClip::is_matte) is drawn
only while an active clip names it.