pub enum RateControlMode {
Cqp,
Cbr,
Vbr,
Abr,
Crf,
}Expand description
Rate control mode selection.
Variants§
Cqp
Constant Quantization Parameter. Uses a fixed QP for all frames.
Cbr
Constant Bitrate. Maintains a steady bitrate over time.
Vbr
Variable Bitrate. Allows bitrate to vary while staying within bounds.
Abr
Average Bitrate. Targets an average bitrate over the entire encode.
Crf
Constant Rate Factor (quality-based). Maintains consistent perceptual quality.
Implementations§
Source§impl RateControlMode
impl RateControlMode
Sourcepub fn is_bitrate_based(&self) -> bool
pub fn is_bitrate_based(&self) -> bool
Returns true if this mode targets a specific bitrate.
Sourcepub fn is_quality_based(&self) -> bool
pub fn is_quality_based(&self) -> bool
Returns true if this mode targets consistent quality.
Trait Implementations§
Source§impl Clone for RateControlMode
impl Clone for RateControlMode
Source§fn clone(&self) -> RateControlMode
fn clone(&self) -> RateControlMode
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 RateControlMode
impl Debug for RateControlMode
Source§impl Default for RateControlMode
impl Default for RateControlMode
Source§fn default() -> RateControlMode
fn default() -> RateControlMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for RateControlMode
impl PartialEq for RateControlMode
impl Copy for RateControlMode
impl Eq for RateControlMode
impl StructuralPartialEq for RateControlMode
Auto Trait Implementations§
impl Freeze for RateControlMode
impl RefUnwindSafe for RateControlMode
impl Send for RateControlMode
impl Sync for RateControlMode
impl Unpin for RateControlMode
impl UnsafeUnpin for RateControlMode
impl UnwindSafe for RateControlMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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