|
| IntraDCBandCodec (SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list) |
| Constructor.
|
| GenericIntraDCBandCodec (SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list) |
| Constructor.
|
| GenericBandCodec (SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list, int band_num, const bool is_intra) |
| Constructor.
|
| ArithCodec (ByteIO *p_byteio, size_t number_of_contexts) |
| Constructor for encoding.
|
virtual | ~ArithCodec () |
| Destructor.
|
int | Compress (T &in_data) |
| Compresses the input and returns the number of bits written.
|
void | Decompress (T &out_data, const int num_bytes) |
| Decompresses the bitstream and writes into the output.
|
| ArithCodecBase (ByteIO *p_byteio, size_t number_of_contexts) |
| Constructor.
|
virtual | ~ArithCodecBase () |
| Destructor.
|
|
void | ClearBlock (const CodeBlock &code_block, CoeffArray &coeff_data) |
| When coding a skipped block, propegate the predicted values for future non skipped blocks.
|
CoeffType | GetPrediction (const CoeffArray &data, const int xpos, const int ypos) const |
| Prediction of a DC value from its previously coded neighbours.
|
void | DecodeCoeffBlock (const CodeBlock &code_block, CoeffArray &out_data) |
| Decode codeblock of coefficients and perform DC prediction.
|
void | CodeVal (CoeffArray &in_data, const int xpos, const int ypos, const CoeffType val) |
| Code an individual quantised value and perform inverse-quantisation.
|
void | DecodeVal (CoeffArray &out_data, const int xpos, const int ypos) |
| Decode an individual quantised value and perform inverse-quantisation.
|
void | CodeQuantIndexOffset (const int offset) |
| Encode the offset for a code block quantiser.
|
int | DecodeQuantIndexOffset () |
| Decode the offset for a code block quantiser.
|
void | SetToVal (const CodeBlock &code_block, CoeffArray &coeff_data, const CoeffType val) |
| Set a code block area to a given value.
|
virtual void | CodeCoeffBlock (const CodeBlock &code_block, CoeffArray &in_data) |
int | ChooseFollowContext (const int bin_number) const |
| A function for choosing the context for "follow bits".
|
int | ChooseInfoContext () const |
| A function for choosing the context for "information bits".
|
int | ChooseSignContext (const CoeffArray &data, const int xpos, const int ypos) const |
| A function for choosing the context for sign bits.
|
virtual void | DoWorkCode (T &in_data)=0 |
| Does the work of actually coding the data.
|
virtual void | DoWorkDecode (T &out_data)=0 |
| virtual decode-only 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) |
bool | m_is_intra |
| Flag indicating whether the band comes from an intra picture.
|
int | m_bnum |
| variables
|
const Subband | m_node |
| the subband being coded
|
int | m_last_qf_idx |
| the quantisation index of the last codeblock
|
int | m_qf |
| quantisation value
|
CoeffType | m_offset |
| reconstruction point
|
bool | m_nhood_nonzero |
| True if neighbours non-zero.
|
Subband | m_pnode |
| the parent subband
|
int | m_pxpos |
| position of the parent coefficient
|
int | m_pypos |
bool | m_parent_notzero |
| True if the parent of a coeff is not zero.
|
std::vector< Context > | m_context_list |
| List of contexts.
|
A class specially for coding the DC subband of Intra frames, using intra-band prediction of coefficients. It uses the abstract ArithCodec class