pub enum BitrateMode {
Cbr(u64),
Vbr {
target: u64,
max: u64,
},
Crf(u32),
}Expand description
Bitrate control mode for video encoding.
Passed to crate::VideoEncoderBuilder::bitrate_mode.
Variants§
Cbr(u64)
Constant bitrate in bits per second.
Vbr
Variable bitrate: target average bitrate and hard ceiling (both bps).
Crf(u32)
Constant rate factor — quality-based (0–51 for H.264/H.265; lower = better).
Trait Implementations§
Source§impl Clone for BitrateMode
impl Clone for BitrateMode
Source§fn clone(&self) -> BitrateMode
fn clone(&self) -> BitrateMode
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 BitrateMode
impl Debug for BitrateMode
Source§impl PartialEq for BitrateMode
impl PartialEq for BitrateMode
impl StructuralPartialEq for BitrateMode
Auto Trait Implementations§
impl Freeze for BitrateMode
impl RefUnwindSafe for BitrateMode
impl Send for BitrateMode
impl Sync for BitrateMode
impl Unpin for BitrateMode
impl UnsafeUnpin for BitrateMode
impl UnwindSafe for BitrateMode
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