pub struct DecoderNoLz77<'dec>(/* private fields */);
Expand description
An entropy decoder without LZ77.
Implementations§
Source§impl DecoderNoLz77<'_>
impl DecoderNoLz77<'_>
Sourcepub fn read_varint_clustered(
&mut self,
bitstream: &mut Bitstream<'_>,
cluster: u8,
) -> CodingResult<u32>
pub fn read_varint_clustered( &mut self, bitstream: &mut Bitstream<'_>, cluster: u8, ) -> CodingResult<u32>
Read an integer from the bitstream with the given cluster.
Contexts can be converted to clusters using the cluster map.
Sourcepub fn single_token(&self, cluster: u8) -> Option<u32>
pub fn single_token(&self, cluster: u8) -> Option<u32>
Returns the token to be decoded if the decoder always emits single token repeatedly.
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 DecoderNoLz77<'dec>
impl<'dec> RefUnwindSafe for DecoderNoLz77<'dec>
impl<'dec> Send for DecoderNoLz77<'dec>
impl<'dec> Sync for DecoderNoLz77<'dec>
impl<'dec> Unpin for DecoderNoLz77<'dec>
impl<'dec> !UnwindSafe for DecoderNoLz77<'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