pub enum KeyFrameMode {
    Auto {
        min_dist: u32,
        max_dist: u32,
    },
    Disabled,
}Expand description
Keyframe placement mode
This value indicates whether the encoder should place keyframes at a
fixed interval, or determine the optimal placement automatically
(as governed by the min_dist and max_dist parameters)
Variants§
Auto
Encoder determines optimal placement automatically
Fields
§
min_dist: u32Keyframe minimum interval
This value, expressed as a number of frames, prevents the encoder
from placing a keyframe nearer than min_dist to the previous
keyframe. At least min_dist frames non-keyframes will be coded
before the next keyframe. Set min_dist equal to max_dist for
a fixed interval.
Disabled
Encoder does not place keyframes.
Trait Implementations§
Source§impl Clone for KeyFrameMode
 
impl Clone for KeyFrameMode
Source§fn clone(&self) -> KeyFrameMode
 
fn clone(&self) -> KeyFrameMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for KeyFrameMode
 
impl Debug for KeyFrameMode
Source§impl Hash for KeyFrameMode
 
impl Hash for KeyFrameMode
Source§impl Ord for KeyFrameMode
 
impl Ord for KeyFrameMode
Source§fn cmp(&self, other: &KeyFrameMode) -> Ordering
 
fn cmp(&self, other: &KeyFrameMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyFrameMode
 
impl PartialEq for KeyFrameMode
Source§impl PartialOrd for KeyFrameMode
 
impl PartialOrd for KeyFrameMode
impl Copy for KeyFrameMode
impl Eq for KeyFrameMode
impl StructuralPartialEq for KeyFrameMode
Auto Trait Implementations§
impl Freeze for KeyFrameMode
impl RefUnwindSafe for KeyFrameMode
impl Send for KeyFrameMode
impl Sync for KeyFrameMode
impl Unpin for KeyFrameMode
impl UnwindSafe for KeyFrameMode
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