pub enum RateControl {
ConstantQuality {
quantizer: u8,
},
Bitrate {
bits_per_second: u32,
},
}Expand description
How the encoder should allocate bits.
Variants§
ConstantQuality
Constant-quality mode driven by a quantizer value (0 = best quality,
255 = worst quality). This is rav1e’s CQP mode.
Bitrate
Target-bitrate mode in bits per second.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RateControl
Source§impl Debug for RateControl
impl Debug for RateControl
Source§impl Default for RateControl
impl Default for RateControl
Source§impl<'de> Deserialize<'de> for RateControl
impl<'de> Deserialize<'de> for RateControl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RateControl
Source§impl PartialEq for RateControl
impl PartialEq for RateControl
Source§impl Serialize for RateControl
impl Serialize 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 UnsafeUnpin 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