pub enum VideoSampling {
ProcessorDefault,
Fps(f64),
FrameCount(usize),
All,
}Expand description
Frame-selection policy for decoded video.
Variants§
ProcessorDefault
Uses the selected backend processor’s default policy.
Fps(f64)
Uniformly samples approximately this many frames per second.
FrameCount(usize)
Uniformly samples exactly this many frames, capped by source length.
All
Uses every decoded source frame.
Trait Implementations§
Source§impl Clone for VideoSampling
impl Clone for VideoSampling
Source§fn clone(&self) -> VideoSampling
fn clone(&self) -> VideoSampling
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VideoSampling
Source§impl Debug for VideoSampling
impl Debug for VideoSampling
Source§impl Default for VideoSampling
impl Default for VideoSampling
Source§fn default() -> VideoSampling
fn default() -> VideoSampling
Returns the “default value” for a type. Read more
Source§impl PartialEq for VideoSampling
impl PartialEq for VideoSampling
impl StructuralPartialEq for VideoSampling
Auto Trait Implementations§
impl Freeze for VideoSampling
impl RefUnwindSafe for VideoSampling
impl Send for VideoSampling
impl Sync for VideoSampling
impl Unpin for VideoSampling
impl UnsafeUnpin for VideoSampling
impl UnwindSafe for VideoSampling
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