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§
source§impl 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§
source§impl Debug for AudioDecoder
impl Debug for AudioDecoder
Auto Trait Implementations§
impl Freeze for AudioDecoder
impl RefUnwindSafe for AudioDecoder
impl !Send for AudioDecoder
impl !Sync for AudioDecoder
impl Unpin for AudioDecoder
impl UnwindSafe for AudioDecoder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more