Created by the British Broadcasting Corporation.
Class for encapsulating metadata concerning a block of coefficients in a subband.
#include <wavelet_utils.h>
Public Member Functions | |
CodeBlock () | |
Constructor. | |
CodeBlock (const int xstart, const int ystart, const int xend, const int yend) | |
Constructor. | |
int | Xstart () const |
Returns the horizontal start of the block. | |
int | Ystart () const |
Returns the vertical start of the block. | |
int | Xend () const |
Returns one past the last coefficient coord, horizontally. | |
int | Yend () const |
Returns one past the last coefficient coord, vertically. | |
int | Xl () const |
Returns the width of the code block. | |
int | Yl () const |
Returns the height of the code block. | |
int | QuantIndex () const |
Returns the quantisation index associated to the code block. | |
bool | Skipped () const |
Returns true if the code-block is skipped, false if not. | |
void | SetQuantIndex (const int quantindex) |
Sets the quantisation index. | |
void | SetSkip (bool skip) |
Sets whether the code block is skipped or not. | |
Private Member Functions | |
void | Init (const int xstart, const int ystart, const int xend, const int yend) |
Initialise the code block. | |
Private Attributes | |
int | m_xstart |
int | m_ystart |
int | m_xend |
int | m_yend |
int | m_xl |
int | m_yl |
int | m_quantindex |
bool | m_skipped |
Friends | |
class | Subband |
dirac::CodeBlock::CodeBlock | ( | ) |
|
private |
|
inline |
References m_quantindex.
Referenced by dirac::GenericBandCodec< EntropyCodec >::CodeCoeffBlock().
References m_quantindex.
References m_skipped.
Referenced by dirac::GenericBandCodec< EntropyCodec >::DoWorkDecode().
|
inline |
References m_xend.
Referenced by dirac::GenericBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericBandCodec< EntropyCodec >::CodeCoeffBlock(), dirac::GenericBandCodec< EntropyCodec >::DecodeCoeffBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::DecodeCoeffBlock(), and dirac::GenericBandCodec< EntropyCodec >::SetToVal().
|
inline |
References m_xstart.
Referenced by dirac::GenericBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericBandCodec< EntropyCodec >::CodeCoeffBlock(), dirac::GenericBandCodec< EntropyCodec >::DecodeCoeffBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::DecodeCoeffBlock(), and dirac::GenericBandCodec< EntropyCodec >::SetToVal().
|
inline |
References m_yend.
Referenced by dirac::GenericBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericBandCodec< EntropyCodec >::CodeCoeffBlock(), dirac::GenericBandCodec< EntropyCodec >::DecodeCoeffBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::DecodeCoeffBlock(), and dirac::GenericBandCodec< EntropyCodec >::SetToVal().
|
inline |
References m_ystart.
Referenced by dirac::GenericBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::ClearBlock(), dirac::GenericBandCodec< EntropyCodec >::CodeCoeffBlock(), dirac::GenericBandCodec< EntropyCodec >::DecodeCoeffBlock(), dirac::GenericIntraDCBandCodec< EntropyCodec >::DecodeCoeffBlock(), and dirac::GenericBandCodec< EntropyCodec >::SetToVal().
|
private |
Referenced by QuantIndex(), and SetQuantIndex().
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.