[][src]Struct ffmpeg_next::codec::encoder::audio::Encoder

pub struct Encoder(pub Audio);

Implementations

impl Encoder[src]

pub fn encode<P: Mut>(
    &mut self,
    frame: &Audio,
    out: &mut P
) -> Result<bool, Error>
[src]

pub fn flush<P: Mut>(&mut self, out: &mut P) -> Result<bool, Error>[src]

pub fn frame_size(&self) -> u32[src]

Methods from Deref<Target = Audio>

pub fn set_rate(&mut self, rate: i32)[src]

pub fn rate(&self) -> u32[src]

pub fn set_format(&mut self, value: Sample)[src]

pub fn format(&self) -> Sample[src]

pub fn set_channel_layout(&mut self, value: ChannelLayout)[src]

pub fn channel_layout(&self) -> ChannelLayout[src]

pub fn set_channels(&mut self, value: i32)[src]

pub fn channels(&self) -> u16[src]

Trait Implementations

impl AsMut<Context> for Encoder[src]

impl AsRef<Context> for Encoder[src]

impl Deref for Encoder[src]

type Target = Audio

The resulting type after dereferencing.

impl DerefMut for Encoder[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.