pub struct DecoderWithLz77<'dec> { /* private fields */ }
Expand description
A LZ77-enabled entropy decoder.
Implementations§
Source§impl DecoderWithLz77<'_>
impl DecoderWithLz77<'_>
Sourcepub fn read_varint_with_multiplier_clustered(
&mut self,
bitstream: &mut Bitstream<'_>,
cluster: u8,
dist_multiplier: u32,
) -> CodingResult<u32>
pub fn read_varint_with_multiplier_clustered( &mut self, bitstream: &mut Bitstream<'_>, cluster: u8, dist_multiplier: u32, ) -> CodingResult<u32>
Read an integer from the bitstream with the given cluster and LZ77 distance multiplier.
Contexts can be converted to clusters using the cluster map.
Sourcepub fn cluster_map(&self) -> &[u8] ⓘ
pub fn cluster_map(&self) -> &[u8] ⓘ
Returns the cluster mapping of distributions.
Trait Implementations§
Auto Trait Implementations§
impl<'dec> Freeze for DecoderWithLz77<'dec>
impl<'dec> RefUnwindSafe for DecoderWithLz77<'dec>
impl<'dec> Send for DecoderWithLz77<'dec>
impl<'dec> Sync for DecoderWithLz77<'dec>
impl<'dec> Unpin for DecoderWithLz77<'dec>
impl<'dec> !UnwindSafe for DecoderWithLz77<'dec>
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