Dirac - A Video Codec

Created by the British Broadcasting Corporation.


Public Member Functions | Private Member Functions | List of all members
dirac::IntraDCBandVLC Class Reference

A class specially for coding the DC subband of Intra frames. More...

#include <band_vlc.h>

Inheritance diagram for dirac::IntraDCBandVLC:
Inheritance graph
[legend]
Collaboration diagram for dirac::IntraDCBandVLC:
Collaboration graph
[legend]

Public Member Functions

 IntraDCBandVLC (SubbandByteIO *subband_byteio, const SubbandList &band_list)
 Constructor. More...
 
- Public Member Functions inherited from dirac::GenericIntraDCBandCodec< ArithCodecToVLCAdapter >
 GenericIntraDCBandCodec (SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list)
 Constructor. More...
 
- Public Member Functions inherited from dirac::GenericBandCodec< ArithCodecToVLCAdapter >
 GenericBandCodec (SubbandByteIO *subband_byteio, size_t number_of_contexts, const SubbandList &band_list, int band_num, const bool is_intra)
 Constructor. More...
 
- Public Member Functions inherited from dirac::ArithCodecToVLCAdapter
 ArithCodecToVLCAdapter (SubbandByteIO *subband_byteio, size_t number_of_contexts)
 
virtual ~ArithCodecToVLCAdapter ()
 
int Compress (CoeffArray &in_data)
 
void Decompress (CoeffArray &out_data, int num_bytes)
 
void EncodeSymbol (bool val, int)
 
bool DecodeSymbol (int)
 
virtual void DoWorkCode (CoeffArray &in_data)=0
 
virtual void DoWorkDecode (CoeffArray &out_data)=0
 

Private Member Functions

void CodeCoeff (CoeffArray &in_data, const int xpos, const int ypos)
 Encode a single coefficient using error-feedback DC quantization. More...
 
 IntraDCBandVLC (const IntraDCBandVLC &cpy)
 Private, bodyless copy constructor: class should not be copied. More...
 
IntraDCBandVLCoperator= (const IntraDCBandVLC &rhs)
 Private, bodyless copy operator=: class should not be assigned. More...
 

Additional Inherited Members

- Protected Member Functions inherited from dirac::GenericIntraDCBandCodec< ArithCodecToVLCAdapter >
void ClearBlock (const CodeBlock &code_block, CoeffArray &coeff_data)
 When coding a skipped block, propegate the predicted values for future non skipped blocks. More...
 
CoeffType GetPrediction (const CoeffArray &data, const int xpos, const int ypos) const
 Prediction of a DC value from its previously coded neighbours. More...
 
void DecodeCoeffBlock (const CodeBlock &code_block, CoeffArray &out_data)
 Decode codeblock of coefficients and perform DC prediction. More...
 
- Protected Member Functions inherited from dirac::GenericBandCodec< ArithCodecToVLCAdapter >
void CodeVal (CoeffArray &in_data, const int xpos, const int ypos, const CoeffType val)
 Code an individual quantised value and perform inverse-quantisation. More...
 
void DecodeVal (CoeffArray &out_data, const int xpos, const int ypos)
 Decode an individual quantised value and perform inverse-quantisation. More...
 
void CodeQuantIndexOffset (const int offset)
 Encode the offset for a code block quantiser. More...
 
int DecodeQuantIndexOffset ()
 Decode the offset for a code block quantiser. More...
 
void SetToVal (const CodeBlock &code_block, CoeffArray &coeff_data, const CoeffType val)
 Set a code block area to a given value. More...
 
virtual void ClearBlock (const CodeBlock &code_block, CoeffArray &coeff_data)
 Set all block values to 0. More...
 
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". More...
 
int ChooseInfoContext () const
 A function for choosing the context for "information bits". More...
 
int ChooseSignContext (const CoeffArray &data, const int xpos, const int ypos) const
 A function for choosing the context for sign bits. More...
 
- Protected Attributes inherited from dirac::GenericBandCodec< ArithCodecToVLCAdapter >
bool m_is_intra
 Flag indicating whether the band comes from an intra picture. More...
 
int m_bnum
 variables More...
 
const Subband m_node
 the subband being coded More...
 
int m_last_qf_idx
 the quantisation index of the last codeblock More...
 
int m_qf
 quantisation value More...
 
CoeffType m_offset
 reconstruction point More...
 
bool m_nhood_nonzero
 True if neighbours non-zero. More...
 
Subband m_pnode
 the parent subband More...
 
int m_pxpos
 position of the parent coefficient More...
 
int m_pypos
 
bool m_parent_notzero
 True if the parent of a coeff is not zero. More...
 
- Protected Attributes inherited from dirac::ArithCodecToVLCAdapter
ByteIOm_byteio
 

Detailed Description

A class specially for coding the DC subband of Intra frames, using intra-band prediction of coefficients.

Constructor & Destructor Documentation

◆ IntraDCBandVLC() [1/2]

dirac::IntraDCBandVLC::IntraDCBandVLC ( SubbandByteIO subband_byteio,
const SubbandList band_list 
)

Creates a IntraDCBandVLC object to encode subband data, based on parameters

Parameters
subband_byteioinput/output for the encoded bits
band_listthe set of all the subbands

◆ IntraDCBandVLC() [2/2]

dirac::IntraDCBandVLC::IntraDCBandVLC ( const IntraDCBandVLC cpy)
private

Member Function Documentation

◆ CodeCoeff()

void dirac::IntraDCBandVLC::CodeCoeff ( CoeffArray in_data,
const int  xpos,
const int  ypos 
)
privatevirtual

◆ operator=()

IntraDCBandVLC & dirac::IntraDCBandVLC::operator= ( const IntraDCBandVLC rhs)
private

The documentation for this class was generated from the following file:

© 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.