[][src]Struct ac_ffmpeg::codec::audio::AudioEncoder

pub struct AudioEncoder { /* fields omitted */ }

Audio encoder.

Implementations

impl AudioEncoder[src]

pub fn from_codec_parameters(
    codec_parameters: &AudioCodecParameters
) -> Result<AudioEncoderBuilder, Error>
[src]

Create a new encoder builder from given codec parameters.

pub fn builder(codec: &str) -> Result<AudioEncoderBuilder, Error>[src]

Get encoder builder for a given codec.

pub fn samples_per_frame(&self) -> Option<usize>[src]

Number of samples per audio channel in an audio frame. Each encoded frame except the last one must contain exactly this number of samples. The method returns None if the number of samples per frame is not restricted.

Trait Implementations

impl Drop for AudioEncoder[src]

impl Encoder for AudioEncoder[src]

type CodecParameters = AudioCodecParameters

type Frame = AudioFrame

impl Send for AudioEncoder[src]

impl Sync for AudioEncoder[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.