pub enum RateControl {
ConstantBitRate(u32),
VariableBitRate(u32),
ConstrainedQuality {
bitrate: u32,
max_quality: u32,
},
ConstantQuality(u32),
Lossless,
}Expand description
Configures the type of rate control the codec should employ.
Variants§
ConstantBitRate(u32)
Constant Bit Rate (CBR) mode, bitrate in kbit/s.
VariableBitRate(u32)
Variable Bit Rate (VBR) mode, bitrate in kbit/s.
ConstrainedQuality
Constrained Quality (CQ) mode. This is variable bitrate mode, but an additional quality cap, so as not to waste bits on scenes where additional bitrate would be wasted. Use the following control sets to obtain fine-grained over the bounds of the variable bitrate algorithm (or just let the codec decide):
In addition, for VP9 the following extra sets are available:
Fields
ConstantQuality(u32)
Constant Quality/Quantizer (Q) mode. Allowable values 0..63 (lower value = higher quality).
Lossless
Lossless quality mode. The decoded bitstream will be an exact bit-accurate copy of the input. Only supported by the VP9 codec.
Trait Implementations§
Source§impl Clone for RateControl
impl Clone for RateControl
Source§fn clone(&self) -> RateControl
fn clone(&self) -> RateControl
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 RateControl
impl Debug for RateControl
Source§impl Hash for RateControl
impl Hash for RateControl
Source§impl Ord for RateControl
impl Ord for RateControl
Source§fn cmp(&self, other: &RateControl) -> Ordering
fn cmp(&self, other: &RateControl) -> 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 RateControl
impl PartialEq for RateControl
Source§impl PartialOrd for RateControl
impl PartialOrd for RateControl
impl Copy for RateControl
impl Eq for RateControl
impl StructuralPartialEq for RateControl
Auto Trait Implementations§
impl Freeze for RateControl
impl RefUnwindSafe for RateControl
impl Send for RateControl
impl Sync for RateControl
impl Unpin for RateControl
impl UnwindSafe for RateControl
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