Struct image::webp::vp8::VP8Decoder
source · pub struct VP8Decoder<R> { /* private fields */ }
Expand description
VP8 Decoder
Only decodes keyframes
Implementations
sourceimpl<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>
pub fn decode_frame(&mut self) -> Result<&Frame>
Decodes the current frame and returns a reference to it
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more