pub struct Vp8Decoder<R> { /* private fields */ }
Expand description
VP8 Decoder
Only decodes keyframes
Implementations§
source§impl<R: Read> Vp8Decoder<R>
impl<R: Read> Vp8Decoder<R>
sourcepub fn new(r: R) -> Vp8Decoder<R>
pub fn new(r: R) -> Vp8Decoder<R>
Create a new decoder. The reader must present a raw vp8 bitstream to the decoder
sourcepub fn decode_frame(&mut self) -> Result<&Frame, DecodingError>
pub fn decode_frame(&mut self) -> Result<&Frame, DecodingError>
Decodes the current frame
Auto Trait Implementations§
impl<R> Freeze for Vp8Decoder<R>where
R: Freeze,
impl<R> RefUnwindSafe for Vp8Decoder<R>where
R: RefUnwindSafe,
impl<R> Send for Vp8Decoder<R>where
R: Send,
impl<R> Sync for Vp8Decoder<R>where
R: Sync,
impl<R> Unpin for Vp8Decoder<R>where
R: Unpin,
impl<R> UnwindSafe for Vp8Decoder<R>where
R: UnwindSafe,
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