pub struct Vp8lBitReader<'a> { /* private fields */ }Expand description
LSB-first bit reader for VP8L bitstreams.
Implementations§
Source§impl<'a> Vp8lBitReader<'a>
impl<'a> Vp8lBitReader<'a>
Sourcepub fn read_bits(&mut self, n: u32) -> CodecResult<u32>
pub fn read_bits(&mut self, n: u32) -> CodecResult<u32>
Read n bits (LSB-first) and return them as a u32.
Sourcepub fn read_bit(&mut self) -> CodecResult<bool>
pub fn read_bit(&mut self) -> CodecResult<bool>
Read a single bit.
Sourcepub fn peek_bits(&mut self, n: u32) -> CodecResult<u32>
pub fn peek_bits(&mut self, n: u32) -> CodecResult<u32>
Peek at the next n bits without consuming them.
Auto Trait Implementations§
impl<'a> Freeze for Vp8lBitReader<'a>
impl<'a> RefUnwindSafe for Vp8lBitReader<'a>
impl<'a> Send for Vp8lBitReader<'a>
impl<'a> Sync for Vp8lBitReader<'a>
impl<'a> Unpin for Vp8lBitReader<'a>
impl<'a> UnsafeUnpin for Vp8lBitReader<'a>
impl<'a> UnwindSafe for Vp8lBitReader<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more