Struct jxl_coding::Decoder
source · pub struct Decoder { /* private fields */ }
Expand description
An entropy decoder.
Implementations§
source§impl Decoder
impl Decoder
sourcepub fn parse<R: Read>(
bitstream: &mut Bitstream<R>,
num_dist: u32
) -> Result<Self>
pub fn parse<R: Read>( bitstream: &mut Bitstream<R>, num_dist: u32 ) -> Result<Self>
Create a decoder by reading symbol distribution, integer configurations and LZ77 configuration from the bitstream.
sourcepub fn read_varint<R: Read>(
&mut self,
bitstream: &mut Bitstream<R>,
ctx: u32
) -> Result<u32>
pub fn read_varint<R: Read>( &mut self, bitstream: &mut Bitstream<R>, ctx: u32 ) -> Result<u32>
Read an integer from the bitstream with the given context.
sourcepub fn read_varint_with_multiplier<R: Read>(
&mut self,
bitstream: &mut Bitstream<R>,
ctx: u32,
dist_multiplier: u32
) -> Result<u32>
pub fn read_varint_with_multiplier<R: Read>( &mut self, bitstream: &mut Bitstream<R>, ctx: u32, dist_multiplier: u32 ) -> Result<u32>
Read an integer from the bitstream with the given context and LZ77 distance multiplier.
Trait Implementations§
Auto Trait Implementations§
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