pub struct VP8BitReader {
pub value: bit_t,
pub range: range_t,
pub bits: i32,
pub has_buf: bool,
pub buf: usize,
pub buf_end: usize,
pub buf_max: usize,
pub eof: bool,
}Expand description
The boolean decoder: its value window, its range, and the positions of its input. It holds no reference to the input; see the module documentation.
Fields§
§value: bit_tCurrent value; keeps BITS + 8 bits.
range: range_tCurrent range minus one, in [127, 254].
bits: i32Number of valid bits left.
has_buf: boolSet once the reader has an input. This is the C test buf != NULL, which
only a reader that was set up passes.
buf: usizeIndex in the input of the next byte to be read (C buf).
buf_end: usizeIndex in the input where the input ends (C buf_end).
buf_max: usizeIndex in the input of the limit of the packed reads (C buf_max).
eof: boolSet when the input is exhausted.
Trait Implementations§
Source§impl Debug for VP8BitReader
impl Debug for VP8BitReader
Auto Trait Implementations§
impl Forget for VP8BitReader
impl Freeze for VP8BitReader
impl Move for VP8BitReader
impl RefUnwindSafe for VP8BitReader
impl Send for VP8BitReader
impl Sync for VP8BitReader
impl Unpin for VP8BitReader
impl UnsafeUnpin for VP8BitReader
impl UnwindSafe for VP8BitReader
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