[−][src]Struct ac_ffmpeg::codec::audio::AudioDecoder
Audio decoder.
Implementations
impl AudioDecoder[src]
pub fn new(codec: &str) -> Result<Self, Error>[src]
Create a new audio decoder for a given codec.
pub fn from_codec_parameters(
codec_parameters: &AudioCodecParameters
) -> Result<AudioDecoderBuilder, Error>[src]
codec_parameters: &AudioCodecParameters
) -> Result<AudioDecoderBuilder, Error>
Create a new decoder from given codec parameters.
pub fn builder(codec: &str) -> Result<AudioDecoderBuilder, Error>[src]
Get decoder builder for a given codec.
Trait Implementations
impl Decoder for AudioDecoder[src]
type CodecParameters = AudioCodecParameters
type Frame = AudioFrame
fn codec_parameters(&self) -> Self::CodecParameters[src]
fn try_push(&mut self, packet: Packet) -> Result<(), CodecError>[src]
fn try_flush(&mut self) -> Result<(), CodecError>[src]
fn take(&mut self) -> Result<Option<AudioFrame>, Error>[src]
fn push(&mut self, packet: Packet) -> Result<(), Error>[src]
fn flush(&mut self) -> Result<(), Error>[src]
impl Drop for AudioDecoder[src]
impl Send for AudioDecoder[src]
impl Sync for AudioDecoder[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,