#include <band_codec.h>
Inheritance diagram for dirac::BandCodec:
Public Member Functions | |
BandCodec (BasicOutputManager *bits_out, size_t number_of_contexts, const SubbandList &band_list, int band_num) | |
Constructor for encoding. | |
BandCodec (BitInputManager *bits_in, size_t number_of_contexts, const SubbandList &band_list, int band_num) | |
Constructor for decoding. | |
void | InitContexts () |
Initialise the contexts according to predefined counts. | |
Protected Member Functions | |
void | CodeVal (PicArray &in_data, const ValueType val) |
void | DecodeVal (PicArray &out_data) |
Protected Attributes | |
int | m_bnum |
variables | |
const Subband | m_node |
the subband being coded | |
int | m_xp |
dimensions of the subband | |
int | m_yp |
int | m_xl |
int | m_yl |
int | m_xpos |
position within the subband | |
int | m_ypos |
int | m_vol |
size of the subband | |
int | m_reset_coeff_num |
the number of coefficients after which contexts are reset | |
int | m_coeff_count |
count of the coefficients since the last context reset | |
int | m_qf |
quantisation and inverse quantisation values | |
int | m_qfinv |
ValueType | m_offset |
reconstruction point | |
ValueType | m_nhood_sum |
sum of a neighbourhood of previously (de)coded values | |
Subband | m_pnode |
the parent subband | |
int | m_pxp |
coords of the parent subband | |
int | m_pyp |
int | m_pxl |
int | m_pyl |
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. | |
ValueType | m_cut_off_point |
used in selecting a context |
A general class for coding and decoding wavelet subband data, deriving from the abstract ArithCodec class.
Definition at line 54 of file band_codec.h.
|
Constructor for encoding. Creates a BandCodec object to encode subband data
Definition at line 42 of file band_codec.cpp. References m_node, m_pnode, and dirac::Subband::Parent(). |
|
Constructor for decoding. Creates a BandCodec object to decode subband data.
Definition at line 62 of file band_codec.cpp. |