Created by the British Broadcasting Corporation.
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. | |
unsigned int | PictureWeightsBits () const |
Return the number of picture weight precision bits. | |
int | Ref1Weight () const |
Return the Ref1 weight. | |
int | Ref2Weight () const |
Return the Ref2 weight. | |
bool | CustomRefWeights () |
int | XNumSB () const |
Return the number of superblocks horizontally. | |
int | YNumSB () const |
Return the number of superblocks vertically. | |
int | XNumBlocks () const |
Return the number of blocks horizontally. | |
int | YNumBlocks () const |
Returns the number of blocks vertically. | |
const OLBParams & | LumaBParams (int n) const |
Return the Luma block parameters for each macroblock splitting level. | |
const OLBParams & | ChromaBParams (int n) const |
Return the Chroma block parameters for each macroblock splitting level. | |
MVPrecisionType | MVPrecision () const |
Return the number of accuracy bits used for motion vectors. | |
void | SetXNumSB (const int xn) |
Set how many SBs there are horizontally. | |
void | SetYNumSB (const int yn) |
Set how many SBs there are vertically. | |
void | SetXNumBlocks (const int xn) |
Set how many blocks there are horizontally. | |
void | SetYNumBlocks (const int yn) |
Set how many blocks there are vertically. | |
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. | |
void | SetLumaBlockParams (const OLBParams &olbparams) |
Set block level luma params. | |
void | SetMVPrecision (const MVPrecisionType p) |
Set the number of accuracy bits for motion vectors. | |
void | SetMVPrecision (const MVPrecisionType p) const |
void | SetUsingGlobalMotion (bool gm) |
Set the wavelet filter used for picture (de)coding. | |
void | SetPictureWeightsPrecision (unsigned int wt_prec) |
Set the picture weight precision bits used for (de)coding. | |
void | SetRef1Weight (int wt) |
Set the ref 1 picture weight. | |
void | SetRef2Weight (int wt) |
Set the ref 2 picture weight. |
Private Attributes | |
int | m_x_num_sb |
The number of superblocks horizontally. | |
int | m_y_num_sb |
The number of superblocks verticaly. | |
int | m_x_num_blocks |
The number of blocks horizontally. | |
int | m_y_num_blocks |
The number of blocks vertically. | |
OneDArray< OLBParams > | m_lbparams |
OneDArray< OLBParams > | m_cbparams |
MVPrecisionType | m_mv_precision |
The precision of motion vectors (number of accuracy bits eg 1=half-pel accuracy) | |
unsigned int | m_picture_weights_bits |
picture predicion parameters - precision | |
int | m_ref1_weight |
picture predicion parameters - reference picture 1 weight | |
int | m_ref2_weight |
picture predicion parameters - reference picture 2 weight | |
bool | m_use_global_motion |
Global motion fields. |
|
inline |
|
inline |
References m_cbparams.
|
inline |
References m_picture_weights_bits, m_ref1_weight, and m_ref2_weight.
|
inline |
References m_lbparams.
|
inline |
References m_mv_precision.
|
inline |
References m_picture_weights_bits.
|
inline |
References m_ref1_weight.
|
inline |
References m_ref2_weight.
void dirac::PicturePredParams::SetBlockSizes | ( | const OLBParams & | olbparams, |
const ChromaFormat | cformat | ||
) |
|
inline |
References m_lbparams.
|
inline |
References m_mv_precision, and TESTM.
|
inline |
References m_mv_precision, and TESTM.
|
inline |
References m_picture_weights_bits.
|
inline |
References m_ref1_weight.
|
inline |
References m_ref2_weight.
|
inline |
References m_use_global_motion.
|
inline |
References m_x_num_blocks.
|
inline |
References m_x_num_sb.
|
inline |
References m_y_num_blocks.
|
inline |
References m_y_num_sb.
|
inline |
References m_use_global_motion.
|
inline |
References m_x_num_blocks.
|
inline |
References m_x_num_sb.
|
inline |
References m_y_num_blocks.
|
inline |
References m_y_num_sb.
Referenced by ChromaBParams().
Referenced by LumaBParams(), and SetLumaBlockParams().
|
mutableprivate |
Referenced by MVPrecision(), and SetMVPrecision().
|
private |
Referenced by CustomRefWeights(), PictureWeightsBits(), and SetPictureWeightsPrecision().
|
private |
Referenced by CustomRefWeights(), Ref1Weight(), and SetRef1Weight().
|
private |
Referenced by CustomRefWeights(), Ref2Weight(), and SetRef2Weight().
|
private |
Referenced by SetUsingGlobalMotion(), and UsingGlobalMotion().
|
private |
Referenced by SetXNumBlocks(), and XNumBlocks().
|
private |
Referenced by SetXNumSB(), and XNumSB().
|
private |
Referenced by SetYNumBlocks(), and YNumBlocks().
|
private |
Referenced by SetYNumSB(), and YNumSB().
© 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.