#include <arith_codec.h>
List of all members.
Protected Member Functions |
void | InitEncoder () |
| Initialises the Encoder.
|
void | EncodeSymbol (const bool symbol, const int context_num) |
| encodes a symbol and writes to output
|
void | EncodeUInt (const unsigned int value, const int bin1, const int max_bin) |
void | EncodeSInt (const int value, const int bin1, const int max_bin) |
void | FlushEncoder () |
| flushes the output of the encoder.
|
int | ByteCount () const |
void | InitDecoder (int num_bytes) |
| Initialise the Decoder.
|
bool | DecodeSymbol (int context_num) |
| Decodes a symbol given a context number.
|
unsigned int | DecodeUInt (const int bin1, const int max_bin) |
int | DecodeSInt (const int bin1, const int max_bin) |
Constructor & Destructor Documentation
dirac::ArithCodecBase::ArithCodecBase |
( |
ByteIO * |
p_byteio, |
|
|
size_t |
number_of_contexts |
|
) |
| |
Creates an ArithCodec object to decode input based on a set of parameters.
- Parameters:
-
p_byteio | input/output for encoded bits |
number_of_contexts | the number of contexts used |
virtual dirac::ArithCodecBase::~ArithCodecBase |
( |
| ) |
|
|
virtual |
Destructor is virtual as this class is abstract.
Member Function Documentation
int dirac::ArithCodecBase::ByteCount |
( |
| ) |
const |
|
protected |
int dirac::ArithCodecBase::DecodeSInt |
( |
const int |
bin1, |
|
|
const int |
max_bin |
|
) |
| |
|
inlineprotected |
bool dirac::ArithCodecBase::DecodeSymbol |
( |
int |
context_num | ) |
|
|
inlineprotected |
unsigned int dirac::ArithCodecBase::DecodeUInt |
( |
const int |
bin1, |
|
|
const int |
max_bin |
|
) |
| |
|
inlineprotected |
void dirac::ArithCodecBase::EncodeSInt |
( |
const int |
value, |
|
|
const int |
bin1, |
|
|
const int |
max_bin |
|
) |
| |
|
inlineprotected |
void dirac::ArithCodecBase::EncodeSymbol |
( |
const bool |
symbol, |
|
|
const int |
context_num |
|
) |
| |
|
inlineprotected |
void dirac::ArithCodecBase::EncodeUInt |
( |
const unsigned int |
value, |
|
|
const int |
bin1, |
|
|
const int |
max_bin |
|
) |
| |
|
inlineprotected |
void dirac::ArithCodecBase::FlushEncoder |
( |
| ) |
|
|
protected |
void dirac::ArithCodecBase::InitDecoder |
( |
int |
num_bytes | ) |
|
|
protected |
void dirac::ArithCodecBase::InitEncoder |
( |
| ) |
|
|
protected |
bool dirac::ArithCodecBase::InputBit |
( |
| ) |
|
|
inlineprivate |
void dirac::ArithCodecBase::ReadAllData |
( |
int |
num_bytes | ) |
|
|
private |
Member Data Documentation
ByteIO* dirac::ArithCodecBase::m_byteio |
|
private |
unsigned int dirac::ArithCodecBase::m_code |
|
private |
std::vector<Context> dirac::ArithCodecBase::m_context_list |
|
protected |
char* dirac::ArithCodecBase::m_data_ptr |
|
private |
char* dirac::ArithCodecBase::m_decode_data_ptr |
|
private |
int dirac::ArithCodecBase::m_input_bits_left |
|
private |
unsigned int dirac::ArithCodecBase::m_low_code |
|
private |
unsigned int dirac::ArithCodecBase::m_range |
|
private |
unsigned int dirac::ArithCodecBase::m_scount |
|
private |
int dirac::ArithCodecBase::m_underflow |
|
private |
The documentation for this class was generated from the following file: