57 template<
typename EntropyCodec>
72 size_t number_of_contexts,
170 template<
typename EntropyCodec>
182 size_t number_of_contexts,
185 band_list, band_list.Length(),
217 size_t number_of_contexts,
Definition of class SequenceHeaderByteIO.
Definition: accessunit_byteio.h:52
int CoeffType
Type of wavelet coefficient data (should be larger than ValueType)
Definition: common.h:74
GenericBandCodec< ArithCodec< CoeffArray > > BandCodec
A general class for coding and decoding wavelet subband data.
Definition: band_codec.h:162
BandCodec LFBandCodec
Definition: band_codec.h:163
Subband Dirac-bytestream input/output.
Definition: subband_byteio.h:57
Abstract binary arithmetic coding class.
Definition: arith_codec.h:376
A template class for coding and decoding wavelet subband data.
Definition: band_codec.h:59
virtual void DecodeCoeffBlock(const CodeBlock &code_block, CoeffArray &out_data)
Definition: band_codec_template.h:231
int m_qf
quantisation value
Definition: band_codec.h:139
int m_bnum
variables
Definition: band_codec.h:130
virtual void CodeCoeff(CoeffArray &in_data, const int xpos, const int ypos)
Definition: band_codec_template.h:106
int ChooseSignContext(const CoeffArray &data, const int xpos, const int ypos) const
A function for choosing the context for sign bits.
Definition: band_codec_template.h:419
const Subband m_node
the subband being coded
Definition: band_codec.h:133
GenericBandCodec(const GenericBandCodec &cpy)
Private, bodyless copy constructor: class should not be copied.
void CodeQuantIndexOffset(const int offset)
Encode the offset for a code block quantiser.
Definition: band_codec_template.h:176
int DecodeQuantIndexOffset()
Decode the offset for a code block quantiser.
Definition: band_codec_template.h:456
int ChooseInfoContext() const
A function for choosing the context for "information bits".
Definition: band_codec_template.h:413
void DecodeVal(CoeffArray &out_data, const int xpos, const int ypos)
Decode an individual quantised value and perform inverse-quantisation.
Definition: band_codec_template.h:330
int m_pypos
Definition: band_codec.h:151
bool m_parent_notzero
True if the parent of a coeff is not zero.
Definition: band_codec.h:154
virtual void CodeCoeffBlock(const CodeBlock &code_block, CoeffArray &in_data)
Definition: band_codec_template.h:53
Subband m_pnode
the parent subband
Definition: band_codec.h:148
virtual void ClearBlock(const CodeBlock &code_block, CoeffArray &coeff_data)
Set all block values to 0.
Definition: band_codec_template.h:488
int m_last_qf_idx
the quantisation index of the last codeblock
Definition: band_codec.h:136
int m_pxpos
position of the parent coefficient
Definition: band_codec.h:151
virtual void DoWorkCode(CoeffArray &in_data)
Definition: band_codec_template.h:27
void SetToVal(const CodeBlock &code_block, CoeffArray &coeff_data, const CoeffType val)
Set a code block area to a given value.
Definition: band_codec_template.h:476
GenericBandCodec & operator=(const GenericBandCodec &rhs)
Private, bodyless copy operator=: class should not be assigned.
virtual void DecodeCoeff(CoeffArray &in_data, const int xpos, const int ypos)
Definition: band_codec_template.h:306
CoeffType m_offset
reconstruction point
Definition: band_codec.h:142
GenericBandCodec(SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list, int band_num, const bool is_intra)
Constructor.
Definition: band_codec_template.h:9
int ChooseFollowContext(const int bin_number) const
A function for choosing the context for "follow bits".
Definition: band_codec_template.h:358
void CodeVal(CoeffArray &in_data, const int xpos, const int ypos, const CoeffType val)
Code an individual quantised value and perform inverse-quantisation.
Definition: band_codec_template.h:131
bool m_nhood_nonzero
True if neighbours non-zero.
Definition: band_codec.h:145
bool m_is_intra
Flag indicating whether the band comes from an intra picture.
Definition: band_codec.h:127
virtual void DoWorkDecode(CoeffArray &out_data)
Definition: band_codec_template.h:205
A template class specially for coding the DC subband of Intra frames.
Definition: band_codec.h:172
void ClearBlock(const CodeBlock &code_block, CoeffArray &coeff_data)
When coding a skipped block, propegate the predicted values for future non skipped blocks.
Definition: band_codec_template.h:518
GenericIntraDCBandCodec(SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list)
Constructor.
Definition: band_codec.h:181
CoeffType GetPrediction(const CoeffArray &data, const int xpos, const int ypos) const
Prediction of a DC value from its previously coded neighbours.
Definition: band_codec_template.h:531
void DecodeCoeffBlock(const CodeBlock &code_block, CoeffArray &out_data)
Decode codeblock of coefficients and perform DC prediction.
Definition: band_codec_template.h:500
A class specially for coding the DC subband of Intra frames.
Definition: band_codec.h:207
void DoWorkDecode(CoeffArray &out_data)
Ditto.
void CodeCoeff(CoeffArray &in_data, const int xpos, const int ypos)
Encode a single coefficient using error-feedback DC quantization.
IntraDCBandCodec(const IntraDCBandCodec &cpy)
Private, bodyless copy constructor: class should not be copied.
void DecodeCoeff(CoeffArray &out_data, const int xpos, const int ypos)
Decode a single coefficient using error-feedback DC quantization.
IntraDCBandCodec & operator=(const IntraDCBandCodec &rhs)
Private, bodyless copy operator=: class should not be assigned.
IntraDCBandCodec(SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list)
Constructor.
Definition: band_codec.h:216
void DoWorkCode(CoeffArray &in_data)
Initialize extra data required for error-feedback DC quantization.
CoeffArray m_dc_pred_res
Definition: band_codec.h:244
Class for encapsulating metadata concerning a block of coefficients in a subband.
Definition: wavelet_utils.h:60
Class encapsulating all the metadata relating to a wavelet subband.
Definition: wavelet_utils.h:140
A class encapulating all the subbands produced by a transform.
Definition: wavelet_utils.h:280
A class for wavelet coefficient data.
Definition: wavelet_utils.h:623