pub enum RcMode {
Cbr,
Vbr,
Crf,
Qp,
}Expand description
Rate-control mode for a video encoder.
Note: a BitrateMode type already exists in the traits module; this enum
is a standalone model-level counterpart with richer semantics.
Variants§
Cbr
Constant Bitrate — output bitrate is held at a fixed target.
Vbr
Variable Bitrate — bitrate varies within min/max bounds.
Crf
Constant Rate Factor — quality-based encoding (e.g. x264 CRF).
Qp
Constant Quantisation Parameter — fixed QP per frame.
Implementations§
Source§impl RcMode
impl RcMode
Sourcepub fn is_quality_based(self) -> bool
pub fn is_quality_based(self) -> bool
Returns true for quality-based modes (CRF, QP) where the encoder
controls quality rather than a hard bitrate target.
Sourcepub fn is_bitrate_constrained(self) -> bool
pub fn is_bitrate_constrained(self) -> bool
Returns true for throughput-constrained modes (CBR, VBR).
Trait Implementations§
impl Copy for RcMode
impl StructuralPartialEq for RcMode
Auto Trait Implementations§
impl Freeze for RcMode
impl RefUnwindSafe for RcMode
impl Send for RcMode
impl Sync for RcMode
impl Unpin for RcMode
impl UnsafeUnpin for RcMode
impl UnwindSafe for RcMode
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