Struct rav1e::prelude::RateControlConfig[][src]

pub struct RateControlConfig { /* fields omitted */ }

Rate control configuration

Implementations

impl RateControlConfig[src]

pub fn from_summary_slice(bytes: &[u8]) -> Result<Self, Error>[src]

Create a rate control configuration from a serialized summary

pub fn new() -> Self[src]

Create a default rate control configuration

By default the encoder is in single pass mode.

pub fn with_summary(self, summary: RateControlSummary) -> Self[src]

Set a rate control summary

Enable the second pass encoding mode

pub fn with_emit_data(self, emit: bool) -> Self[src]

Emit the current pass data

The pass data will be used in a second pass encoding session

Trait Implementations

impl Clone for RateControlConfig[src]

impl Debug for RateControlConfig[src]

impl Default for RateControlConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.