pub struct LayerSet {
pub layers: Vec<(u64, Arc<Frame>)>,
pub motion: Vec<(u64, f64, Arc<Frame>)>,
}Expand description
Decoded layers for one timeline instant, produced by the player/export thread on the CPU and handed to the renderer: (clip id, decoded frame). Motion-blur effects also get the neighbouring frames.
Fields§
§layers: Vec<(u64, Arc<Frame>)>§motion: Vec<(u64, f64, Arc<Frame>)>Extra samples for shutter-based effects: (clip id, offset seconds, frame). run_effect binds
the earliest as u_prev and the latest as u_next (both the same one when only one arrived);
with none at all u_frames is 0 and the body falls back to the current frame.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerSet
impl RefUnwindSafe for LayerSet
impl Send for LayerSet
impl Sync for LayerSet
impl Unpin for LayerSet
impl UnwindSafe for LayerSet
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more