pub struct AudioDecoder(/* private fields */);
Implementations§
Source§impl AudioDecoder
impl AudioDecoder
pub fn sample_rate(&self) -> i32
pub fn channel_layout(&self) -> u64
pub fn channels(&self) -> i32
pub fn sample_format(&self) -> AVSampleFormat
Methods from Deref<Target = GenericDecoder>§
pub fn codec_type(&self) -> AVMediaType
pub fn time_base(&self) -> AVRational
pub fn send_packet(&mut self, packet: &Packet) -> Result<(), FfmpegError>
pub fn send_eof(&mut self) -> Result<(), FfmpegError>
pub fn receive_frame(&mut self) -> Result<Option<VideoFrame>, FfmpegError>
Trait Implementations§
Source§impl Debug for AudioDecoder
impl Debug for AudioDecoder
Source§impl Deref for AudioDecoder
impl Deref 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