pub enum FrameInterpolation {
Hold,
Mix,
}Expand description
What is shown at a source time between two frames of a video source.
Variants§
Hold
The frame presented at that time.
Mix
That frame and the one after it, added in the project’s blend space at weights 1 - w and
w, where w is how far the time lies from the first frame’s timestamp to the second’s.
The source’s last frame, and a runtime that cannot supply the frame after, show the frame
alone.
Implementations§
Source§impl FrameInterpolation
impl FrameInterpolation
Sourcepub const fn is_hold(&self) -> bool
pub const fn is_hold(&self) -> bool
Whether it is FrameInterpolation::Hold.
Trait Implementations§
Source§impl Clone for FrameInterpolation
impl Clone for FrameInterpolation
impl Copy for FrameInterpolation
Source§impl Debug for FrameInterpolation
impl Debug for FrameInterpolation
Source§impl Default for FrameInterpolation
impl Default for FrameInterpolation
Source§impl<'de> Deserialize<'de> for FrameInterpolation
impl<'de> Deserialize<'de> for FrameInterpolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FrameInterpolation
Source§impl PartialEq for FrameInterpolation
impl PartialEq for FrameInterpolation
Source§impl Serialize for FrameInterpolation
impl Serialize for FrameInterpolation
impl StructuralPartialEq for FrameInterpolation
Auto Trait Implementations§
impl Forget for FrameInterpolation
impl Freeze for FrameInterpolation
impl Move for FrameInterpolation
impl RefUnwindSafe for FrameInterpolation
impl Send for FrameInterpolation
impl Sync for FrameInterpolation
impl Unpin for FrameInterpolation
impl UnsafeUnpin for FrameInterpolation
impl UnwindSafe for FrameInterpolation
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