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

pub struct Audio(pub Super);

Implementations

impl Audio[src]

pub fn open(self) -> Result<Encoder, Error>[src]

pub fn open_as<E: Encoder>(self, codec: E) -> Result<Encoder, Error>[src]

pub fn open_with(self, options: Dictionary) -> Result<Encoder, Error>[src]

pub fn open_as_with<E: Encoder>(
    self,
    codec: E,
    options: Dictionary
) -> Result<Encoder, Error>
[src]

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]

Methods from Deref<Target = Super>

pub fn send_frame(&mut self, frame: &Frame) -> Result<(), Error>[src]

pub fn send_eof(&mut self) -> Result<(), Error>[src]

Sends a NULL packet to the encoder to signal end of stream and enter draining mode.

pub fn receive_packet<P: Mut>(&mut self, packet: &mut P) -> Result<(), Error>[src]

pub fn set_bit_rate(&mut self, value: usize)[src]

pub fn set_max_bit_rate(&mut self, value: usize)[src]

pub fn set_tolerance(&mut self, value: usize)[src]

pub fn set_quality(&mut self, value: usize)[src]

pub fn set_compression(&mut self, value: Option<usize>)[src]

pub fn set_time_base<R: Into<Rational>>(&mut self, value: R)[src]

pub fn set_frame_rate<R: Into<Rational>>(&mut self, value: Option<R>)[src]

Trait Implementations

impl AsMut<Context> for Audio[src]

impl AsRef<Context> for Audio[src]

impl Deref for Audio[src]

type Target = Super

The resulting type after dereferencing.

impl DerefMut for Audio[src]

Auto Trait Implementations

impl !RefUnwindSafe for Audio

impl Send for Audio

impl !Sync for Audio

impl Unpin for Audio

impl !UnwindSafe for Audio

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.