pub struct FrameDesc<'a> {
pub time: MediaTime,
pub background: Option<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 ('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.
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. A matte (ActiveClip::is_matte) is drawn
only while an active clip names it.
Trait Implementations§
impl<'a> StructuralPartialEq for FrameDesc<'a>
Auto Trait Implementations§
impl<'a> Freeze for FrameDesc<'a>
impl<'a> RefUnwindSafe for FrameDesc<'a>
impl<'a> Send for FrameDesc<'a>
impl<'a> Sync for FrameDesc<'a>
impl<'a> Unpin for FrameDesc<'a>
impl<'a> UnsafeUnpin for FrameDesc<'a>
impl<'a> UnwindSafe for FrameDesc<'a>
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