KASKADE 7 development version
Classes | Functions
Entropy coding

Tools for entropy coding, i.e. storing sequences of symbols with different frequencies in a (small) bitstream. More...

Classes

class  RangeCoder< UInt >
 Base class for entropy coding with range encoder and decoder. More...
 
class  RangeEncoder< UInt >
 Entropy coding with range encoder. More...
 
class  RangeDecoder< UInt >
 Entropy coding with range decoder. More...
 
class  Alphabet< UInt >
 A simple alphabet of symbols with frequencies to be used with the range coder. More...
 

Functions

template<class UInt , class Symbol >
void encodeSymbol (RangeEncoder< UInt > &encoder, Alphabet< UInt > const &alphabet, Symbol const &s)
 A convenience function that encodes a symbol in a range encoder. More...
 
template<class UInt >
UInt decodeSymbol (RangeDecoder< UInt > &decoder, Alphabet< UInt > const &alphabet)
 A convenience function that retrieves and pops the current symbol from a range decoder. More...
 

Detailed Description

Tools for entropy coding, i.e. storing sequences of symbols with different frequencies in a (small) bitstream.

Function Documentation

◆ decodeSymbol()

template<class UInt >
UInt decodeSymbol ( RangeDecoder< UInt > &  decoder,
Alphabet< UInt > const &  alphabet 
)
related

A convenience function that retrieves and pops the current symbol from a range decoder.

Definition at line 436 of file rangecoder.hh.

◆ encodeSymbol()

template<class UInt , class Symbol >
void encodeSymbol ( RangeEncoder< UInt > &  encoder,
Alphabet< UInt > const &  alphabet,
Symbol const &  s 
)
related

A convenience function that encodes a symbol in a range encoder.

Definition at line 424 of file rangecoder.hh.