Created by the British Broadcasting Corporation.
Class for all the motion estimation data. More...
#include <motion.h>
Public Member Functions | |
MEData (const PicturePredParams &predparams, const int num_refs=2) | |
Constructor. | |
~MEData () | |
Destructor. | |
void | DropRef (int ref_index) |
drop the data relating to one reference | |
TwoDArray< MvCostData > & | PredCosts (const int ref_id) |
Get the block cost structures for each reference. | |
const TwoDArray< MvCostData > & | PredCosts (const int ref_id) const |
Get the block cost structures for each reference. | |
TwoDArray< float > & | IntraCosts () |
Get the intra costs. | |
const TwoDArray< float > & | IntraCosts () const |
Get the intra costs. | |
TwoDArray< MvCostData > & | BiPredCosts () |
Get the bipred costs. | |
const TwoDArray< MvCostData > & | BiPredCosts () const |
Get the bipred costs. | |
TwoDArray< float > & | SBCosts () |
Get the SB costs. | |
const TwoDArray< float > & | SBCosts () const |
Get the SB costs. | |
float | IntraBlockRatio () const |
Get the proportion of intra blocks. | |
void | SetIntraBlockRatio (const float r) |
Set the intra block ratio. | |
void | SetLambdaMap (const int num_refs, const float lambda) |
Set up the lambda map by detecting motion discontinuities. | |
void | SetLambdaMap (const int level, const TwoDArray< float > &l_map, const float wt) |
Set up the lambda map by averaging the lambda map from a lower level. | |
const TwoDArray< float > & | LambdaMap () const |
Get a lambda value for a given block and level. | |
TwoDArray< int > & | GlobalMotionInliers (const int ref_id) |
Get the inliers for each reference. | |
const TwoDArray< int > & | GlobalMotionInliers (const int ref_id) const |
Get the inliers for each reference. | |
Public Member Functions inherited from dirac::MvData | |
MvData (const PicturePredParams &predparams, const int num_refs) | |
Constructor. | |
~MvData () | |
Destructor. | |
PicturePredParams & | GetPicPredParams () |
Return a reference to the local picture prediction params. | |
const PicturePredParams & | GetPicPredParams () const |
Return a reference to the local picture prediction params. | |
MvArray & | Vectors (const int ref_id) |
Get the MVs for a reference. | |
const MvArray & | Vectors (const int ref_id) const |
Get the MVs for a reference. | |
MvArray & | GlobalMotionVectors (const int ref_id) |
Get the global MVs for a reference. | |
const MvArray & | GlobalMotionVectors (const int ref_id) const |
Get the global MVs for a reference. | |
TwoDArray< ValueType > & | DC (CompSort cs) |
Get the DC values for each component. | |
const TwoDArray< ValueType > & | DC (CompSort cs) const |
Get the DC values for each component. | |
const OneDArray< TwoDArray< ValueType > * > & | DC () const |
Get a reference to the vector holding component DC values. | |
TwoDArray< PredMode > & | Mode () |
Get the block prediction modes. | |
const TwoDArray< PredMode > & | Mode () const |
Get the block prediction modes. | |
TwoDArray< int > & | SBSplit () |
Get the SB split level. | |
const TwoDArray< int > & | SBSplit () const |
Get the SB split level. | |
OneDArray< float > & | GlobalMotionParameters (const int ref_id) |
Get the global motion model parameters. | |
const OneDArray< float > & | GlobalMotionParameters (const int ref_id) const |
Get the global motion model parameters. |
Private Member Functions | |
void | InitMEData () |
void | FindTransitions (TwoDArray< bool > &trans_map, const int ref_num) |
Private Attributes | |
OneDArray< TwoDArray< MvCostData > * > | m_pred_costs |
TwoDArray< float > | m_intra_costs |
TwoDArray< MvCostData > | m_bipred_costs |
TwoDArray< float > | m_SB_costs |
TwoDArray< float > | m_lambda_map |
OneDArray< TwoDArray< int > * > | m_inliers |
float | m_intra_block_ratio |
Friends | |
std::ostream & | operator<< (std::ostream &stream, MEData &me_data) |
Overloaded operator<< for outputing to (file) stream. | |
std::istream & | operator>> (std::istream &stream, MEData &me_data) |
Overloaded operator>> for input of data from (file) stream. |
Additional Inherited Members | |
Protected Member Functions inherited from dirac::MvData | |
void | InitMvData () |
Protected Attributes inherited from dirac::MvData | |
PicturePredParams | m_predparams |
OneDArray< MvArray * > | m_vectors |
OneDArray< MvArray * > | m_gm_vectors |
TwoDArray< PredMode > | m_modes |
OneDArray< TwoDArray< ValueType > * > | m_dc |
TwoDArray< int > | m_sb_split |
OneDArray< OneDArray< float > * > | m_gm_params |
Motion estimation data: derived from MvData class, also incorporates costs for blocks and macroblocks
dirac::MEData::MEData | ( | const PicturePredParams & | predparams, |
const int | num_refs = 2 ) |
Constructor takes:
predparams | the picture prediction parameters |
num_refs | the number of references being used for the picture |
dirac::MEData::~MEData | ( | ) |
|
inline |
|
inline |
void dirac::MEData::DropRef | ( | int | ref_index | ) |
|
private |
|
inline |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void dirac::MEData::SetLambdaMap | ( | const int | level, |
const TwoDArray< float > & | l_map, | ||
const float | wt ) |
void dirac::MEData::SetLambdaMap | ( | const int | num_refs, |
const float | lambda ) |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
© 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.