pub struct VideoDecoder {}Implementations§
Source§impl VideoDecoderFFmpegBinary
impl VideoDecoderFFmpegBinary
Sourcepub fn decode<T>(
file_path: impl AsRef<Path>,
receiver: impl AudioReceiver<Output = T>,
progress_handler: impl ProgressHandler,
) -> Result<T, DecoderError>
pub fn decode<T>( file_path: impl AsRef<Path>, receiver: impl AudioReceiver<Output = T>, progress_handler: impl ProgressHandler, ) -> Result<T, DecoderError>
Samples are pushed in 8kHz mono/single-channel format.
Auto Trait Implementations§
impl Freeze for VideoDecoderFFmpegBinary
impl RefUnwindSafe for VideoDecoderFFmpegBinary
impl Send for VideoDecoderFFmpegBinary
impl Sync for VideoDecoderFFmpegBinary
impl Unpin for VideoDecoderFFmpegBinary
impl UnwindSafe for VideoDecoderFFmpegBinary
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