A template class for coding and decoding wavelet subband data.
#include <band_codec.h>
List of all members.
Public Member Functions
Protected Member Functions
- 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 ClearBlock (const CodeBlock &code_block, CoeffArray &coeff_data)
- Set all block values to 0.
- virtual void DoWorkCode (CoeffArray &in_data)
- virtual void DoWorkDecode (CoeffArray &out_data)
- virtual void CodeCoeffBlock (const CodeBlock &code_block, CoeffArray &in_data)
- virtual void DecodeCoeffBlock (const CodeBlock &code_block, CoeffArray &out_data)
- virtual void CodeCoeff (CoeffArray &in_data, const int xpos, const int ypos)
- virtual void DecodeCoeff (CoeffArray &in_data, const int xpos, const int ypos)
- 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.
Protected Attributes
Private Member Functions
template<typename EntropyCodec>
class dirac::GenericBandCodec< EntropyCodec >
Constructor & Destructor Documentation
template<typename EntropyCodec >
GenericBandCodec::GenericBandCodec |
( |
SubbandByteIO * |
subband_byteio, |
|
|
size_t |
number_of_contexts, |
|
|
const SubbandList & |
band_list, |
|
|
int |
band_num, |
|
|
const bool |
is_intra |
|
) |
| |
template<typename EntropyCodec>
Member Function Documentation
template<typename EntropyCodec >
int GenericBandCodec::ChooseFollowContext |
( |
const int |
bin_number | ) |
const [inline, protected] |
References dirac::NZ_FBIN1nz_CTX, dirac::NZ_FBIN1z_CTX, dirac::NZ_FBIN2_CTX, dirac::NZ_FBIN3_CTX, dirac::NZ_FBIN4_CTX, dirac::NZ_FBIN5_CTX, dirac::NZ_FBIN6plus_CTX, dirac::Z_FBIN1nz_CTX, dirac::Z_FBIN1z_CTX, dirac::Z_FBIN2_CTX, dirac::Z_FBIN3_CTX, dirac::Z_FBIN4_CTX, dirac::Z_FBIN5_CTX, and dirac::Z_FBIN6plus_CTX.
template<typename EntropyCodec >
int GenericBandCodec::ChooseInfoContext |
( |
| ) |
const [inline, protected] |
template<typename EntropyCodec >
int GenericBandCodec::ChooseSignContext |
( |
const CoeffArray & |
data, |
|
|
const int |
xpos, |
|
|
const int |
ypos |
|
) |
| const [inline, protected] |
template<typename EntropyCodec >
void GenericBandCodec::ClearBlock |
( |
const CodeBlock & |
code_block, |
|
|
CoeffArray & |
coeff_data |
|
) |
| [protected, virtual] |
template<typename EntropyCodec >
void GenericBandCodec::CodeCoeff |
( |
CoeffArray & |
in_data, |
|
|
const int |
xpos, |
|
|
const int |
ypos |
|
) |
| [protected, virtual] |
template<typename EntropyCodec >
void GenericBandCodec::CodeCoeffBlock |
( |
const CodeBlock & |
code_block, |
|
|
CoeffArray & |
in_data |
|
) |
| [protected, virtual] |
template<typename EntropyCodec >
void GenericBandCodec::CodeQuantIndexOffset |
( |
const int |
offset | ) |
[protected] |
template<typename EntropyCodec >
void GenericBandCodec::CodeVal |
( |
CoeffArray & |
in_data, |
|
|
const int |
xpos, |
|
|
const int |
ypos, |
|
|
const CoeffType |
val |
|
) |
| [inline, protected] |
template<typename EntropyCodec >
void GenericBandCodec::DecodeCoeff |
( |
CoeffArray & |
in_data, |
|
|
const int |
xpos, |
|
|
const int |
ypos |
|
) |
| [protected, virtual] |
template<typename EntropyCodec >
void GenericBandCodec::DecodeCoeffBlock |
( |
const CodeBlock & |
code_block, |
|
|
CoeffArray & |
out_data |
|
) |
| [protected, virtual] |
template<typename EntropyCodec >
int GenericBandCodec::DecodeQuantIndexOffset |
( |
| ) |
[protected] |
template<typename EntropyCodec >
void GenericBandCodec::DecodeVal |
( |
CoeffArray & |
out_data, |
|
|
const int |
xpos, |
|
|
const int |
ypos |
|
) |
| [inline, protected] |
template<typename EntropyCodec >
void GenericBandCodec::DoWorkCode |
( |
CoeffArray & |
in_data | ) |
[protected, virtual] |
template<typename EntropyCodec >
void GenericBandCodec::DoWorkDecode |
( |
CoeffArray & |
out_data | ) |
[protected, virtual] |
template<typename EntropyCodec>
template<typename EntropyCodec >
Member Data Documentation
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
template<typename EntropyCodec>
The documentation for this class was generated from the following files: