Struct aom_decode::Decoder
source · pub struct Decoder { /* private fields */ }
Expand description
AOM decoder context
Implementations§
source§impl Decoder
impl Decoder
sourcepub fn decode_frame<'a>(
&'a mut self,
av1_data: &[u8]
) -> Result<FrameTempRef<'a>>
pub fn decode_frame<'a>( &'a mut self, av1_data: &[u8] ) -> Result<FrameTempRef<'a>>
Take AV1-compressed data and decode in to raw frame data (YUV pixels)
The returned frame is temporary. You must copy data out of it and drop it before decoding the next frame.
See yuv crate for conversion to RGB.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl !Send for Decoder
impl !Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
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