Struct rav1e::prelude::RateControlConfig
source · pub struct RateControlConfig { /* private fields */ }
Expand description
Rate control configuration
Implementations§
source§impl RateControlConfig
impl RateControlConfig
sourcepub fn from_summary_slice(bytes: &[u8]) -> Result<Self, Error>
pub fn from_summary_slice(bytes: &[u8]) -> Result<Self, Error>
Create a rate control configuration from a serialized summary
Errors
Returns an error if the serialized data is invalid.
sourcepub fn new() -> Self
pub fn new() -> Self
Create a default rate control configuration
By default the encoder is in single pass mode.
sourcepub const fn with_summary(self, summary: RateControlSummary) -> Self
pub const fn with_summary(self, summary: RateControlSummary) -> Self
Set a rate control summary
Enable the second pass encoding mode
sourcepub const fn with_emit_data(self, emit: bool) -> Self
pub const fn with_emit_data(self, emit: bool) -> Self
Emit the current pass data
The pass data will be used in a second pass encoding session
Trait Implementations§
source§impl Clone for RateControlConfig
impl Clone for RateControlConfig
source§fn clone(&self) -> RateControlConfig
fn clone(&self) -> RateControlConfig
Returns a copy 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 RateControlConfig
impl Debug for RateControlConfig
source§impl Default for RateControlConfig
impl Default for RateControlConfig
source§fn default() -> RateControlConfig
fn default() -> RateControlConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RateControlConfig
impl Send for RateControlConfig
impl Sync for RateControlConfig
impl Unpin for RateControlConfig
impl UnwindSafe for RateControlConfig
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