[][src]Struct ac_ffmpeg::codec::AudioCodecParametersBuilder

pub struct AudioCodecParametersBuilder { /* fields omitted */ }

Builder for audio codec parameters.

Implementations

impl AudioCodecParametersBuilder[src]

pub fn bit_rate(self, bit_rate: u64) -> Self[src]

Set bit rate.

pub fn sample_format(self, format: SampleFormat) -> Self[src]

Set frame sample format.

pub fn sample_rate(self, rate: u32) -> Self[src]

Set sampling rate.

pub fn channel_layout(self, layout: ChannelLayout) -> Self[src]

Set channel layout.

pub fn extradata<T>(self, data: Option<T>) -> Self where
    T: AsRef<[u8]>, 
[src]

Set extradata.

pub fn build(self) -> AudioCodecParameters[src]

Build the codec parameters.

Trait Implementations

impl From<AudioCodecParameters> for AudioCodecParametersBuilder[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, 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.