Struct stainless_ffmpeg::audio_decoder::AudioDecoder
source · [−]pub struct AudioDecoder {
pub identifier: String,
pub stream_index: isize,
pub codec_context: *mut AVCodecContext,
}
Fields
identifier: String
stream_index: isize
codec_context: *mut AVCodecContext
Implementations
sourceimpl AudioDecoder
impl AudioDecoder
pub fn new(
identifier: String,
format: &FormatContext,
stream_index: isize
) -> Result<Self, String>
pub fn get_sample_rate(&self) -> i32
pub fn get_nb_channels(&self) -> i32
pub fn get_channel_layout(&self) -> u64
pub fn get_sample_fmt_name(&self) -> String
pub fn decode(&self, packet: &Packet) -> Result<Frame, String>
Trait Implementations
sourceimpl Debug for AudioDecoder
impl Debug for AudioDecoder
Auto Trait Implementations
impl RefUnwindSafe for AudioDecoder
impl !Send for AudioDecoder
impl !Sync for AudioDecoder
impl Unpin for AudioDecoder
impl UnwindSafe for AudioDecoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more