Dirac - A Video Codec

Created by the British Broadcasting Corporation.


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

Structure to hold motion parameters when motion comp is used.

#include <common.h>

Public Member Functions

 PicturePredParams ()
 
bool UsingGlobalMotion () const
 Return the global motion flag used for encoding/decoding. More...
 
unsigned int PictureWeightsBits () const
 Return the number of picture weight precision bits. More...
 
int Ref1Weight () const
 Return the Ref1 weight. More...
 
int Ref2Weight () const
 Return the Ref2 weight. More...
 
bool CustomRefWeights ()
 
int XNumSB () const
 Return the number of superblocks horizontally. More...
 
int YNumSB () const
 Return the number of superblocks vertically. More...
 
int XNumBlocks () const
 Return the number of blocks horizontally. More...
 
int YNumBlocks () const
 Returns the number of blocks vertically. More...
 
const OLBParamsLumaBParams (int n) const
 Return the Luma block parameters for each macroblock splitting level. More...
 
const OLBParamsChromaBParams (int n) const
 Return the Chroma block parameters for each macroblock splitting level. More...
 
MVPrecisionType MVPrecision () const
 Return the number of accuracy bits used for motion vectors. More...
 
void SetXNumSB (const int xn)
 Set how many SBs there are horizontally. More...
 
void SetYNumSB (const int yn)
 Set how many SBs there are vertically. More...
 
void SetXNumBlocks (const int xn)
 Set how many blocks there are horizontally. More...
 
void SetYNumBlocks (const int yn)
 Set how many blocks there are vertically. More...
 
void SetBlockSizes (const OLBParams &olbparams, const ChromaFormat cformat)
 Set the block sizes for all SB splitting levels given these prototype block sizes for level=2. More...
 
void SetLumaBlockParams (const OLBParams &olbparams)
 Set block level luma params. More...
 
void SetMVPrecision (const MVPrecisionType p)
 Set the number of accuracy bits for motion vectors. More...
 
void SetMVPrecision (const MVPrecisionType p) const
 
void SetUsingGlobalMotion (bool gm)
 Set the wavelet filter used for picture (de)coding. More...
 
void SetPictureWeightsPrecision (unsigned int wt_prec)
 Set the picture weight precision bits used for (de)coding. More...
 
void SetRef1Weight (int wt)
 Set the ref 1 picture weight. More...
 
void SetRef2Weight (int wt)
 Set the ref 2 picture weight. More...
 

Private Attributes

int m_x_num_sb
 The number of superblocks horizontally. More...
 
int m_y_num_sb
 The number of superblocks verticaly. More...
 
int m_x_num_blocks
 The number of blocks horizontally. More...
 
int m_y_num_blocks
 The number of blocks vertically. More...
 
OneDArray< OLBParamsm_lbparams
 
OneDArray< OLBParamsm_cbparams
 
MVPrecisionType m_mv_precision
 The precision of motion vectors (number of accuracy bits eg 1=half-pel accuracy) More...
 
unsigned int m_picture_weights_bits
 picture predicion parameters - precision More...
 
int m_ref1_weight
 picture predicion parameters - reference picture 1 weight More...
 
int m_ref2_weight
 picture predicion parameters - reference picture 2 weight More...
 
bool m_use_global_motion
 Global motion fields. More...
 

Constructor & Destructor Documentation

dirac::PicturePredParams::PicturePredParams ( )
inline

Member Function Documentation

const OLBParams& dirac::PicturePredParams::ChromaBParams ( int  n) const
inline
bool dirac::PicturePredParams::CustomRefWeights ( )
inline
const OLBParams& dirac::PicturePredParams::LumaBParams ( int  n) const
inline
MVPrecisionType dirac::PicturePredParams::MVPrecision ( ) const
inline
unsigned int dirac::PicturePredParams::PictureWeightsBits ( ) const
inline
int dirac::PicturePredParams::Ref1Weight ( ) const
inline
int dirac::PicturePredParams::Ref2Weight ( ) const
inline
void dirac::PicturePredParams::SetBlockSizes ( const OLBParams olbparams,
const ChromaFormat  cformat 
)
void dirac::PicturePredParams::SetLumaBlockParams ( const OLBParams olbparams)
inline
void dirac::PicturePredParams::SetMVPrecision ( const MVPrecisionType  p)
inline

References TESTM.

void dirac::PicturePredParams::SetMVPrecision ( const MVPrecisionType  p) const
inline

References TESTM.

void dirac::PicturePredParams::SetPictureWeightsPrecision ( unsigned int  wt_prec)
inline
void dirac::PicturePredParams::SetRef1Weight ( int  wt)
inline
void dirac::PicturePredParams::SetRef2Weight ( int  wt)
inline
void dirac::PicturePredParams::SetUsingGlobalMotion ( bool  gm)
inline
void dirac::PicturePredParams::SetXNumBlocks ( const int  xn)
inline
void dirac::PicturePredParams::SetXNumSB ( const int  xn)
inline
void dirac::PicturePredParams::SetYNumBlocks ( const int  yn)
inline
void dirac::PicturePredParams::SetYNumSB ( const int  yn)
inline
bool dirac::PicturePredParams::UsingGlobalMotion ( ) const
inline
int dirac::PicturePredParams::XNumBlocks ( ) const
inline
int dirac::PicturePredParams::XNumSB ( ) const
inline
int dirac::PicturePredParams::YNumBlocks ( ) const
inline
int dirac::PicturePredParams::YNumSB ( ) const
inline

Member Data Documentation

OneDArray<OLBParams> dirac::PicturePredParams::m_cbparams
private
OneDArray<OLBParams> dirac::PicturePredParams::m_lbparams
private
MVPrecisionType dirac::PicturePredParams::m_mv_precision
mutableprivate
unsigned int dirac::PicturePredParams::m_picture_weights_bits
private
int dirac::PicturePredParams::m_ref1_weight
private
int dirac::PicturePredParams::m_ref2_weight
private
bool dirac::PicturePredParams::m_use_global_motion
private
int dirac::PicturePredParams::m_x_num_blocks
private
int dirac::PicturePredParams::m_x_num_sb
private
int dirac::PicturePredParams::m_y_num_blocks
private
int dirac::PicturePredParams::m_y_num_sb
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.