Dirac - A Video Codec
Created by the British Broadcasting Corporation.
Go to the documentation of this file.
38 #ifndef _BLOCK_MATCH_H_
39 #define _BLOCK_MATCH_H_
121 const int precision ,
139 const int list_start);
A class for picture component data.
Definition: common.h:718
A class for doing block differences to pixel accuracy, inherited from BlockDiff.
Definition: me_utils.h:155
void AddVect(CandidateList &vect_list, const MVector &mv, const int list_num)
Add a motion vector to the set of motion vector lists.
void AddNewVlistD(CandidateList &vect_list, const MVector &mv, const int xr, const int yr)
Add a new motion vector list of diagnonal neighbours of a vector to the set of lists.
Definition of class SequenceHeaderByteIO.
Definition: accessunit_byteio.h:51
const PicArray & m_pic_data
Definition: block_match.h:179
A template class for two-dimensional arrays.
Definition: arrays.h:284
const int m_var_max_up
Definition: block_match.h:199
PelBlockDiff m_peldiff
Definition: block_match.h:190
OLBParams m_bparams
Definition: block_match.h:195
ValueType GetVarUp(const MVector &predmv, const MVector &mv) const
Get a measure of the difference between a motion vector and a prediction, to 1/8pel accuracy.
ValueType GetVar(const MVector &mv1, const MVector &mv2)
Get the (absolute) variation between two motion vectors.
const int m_var_max
Definition: block_match.h:198
void FindBestMatchPel(const int xpos, const int ypos, const CandidateList &cand_list, const MVector &mv_prediction, const int list_start)
Find the best matching vector from a list of candidates.
const PicArray & m_ref_data
Definition: block_match.h:180
void RefineMatchSubp(const int xpos, const int ypos, const MVector &mv_prediction, const float lambda)
void AddNewVlist(CandidateList &vect_list, const MVector &mv, const int xr, const int yr)
Add a new motion vector list of neighbours of a vector to the set of lists.
ValueType GetVar(const MVector &predmv, const MVector &mv) const
Get a measure of the difference between a motion vector and a prediction.
Class to do block matching.
Definition: block_match.h:104
const MvArray & m_mv_array
Definition: block_match.h:183
int m_precision
Definition: block_match.h:202
OneDArray< BlockDiffUp * > m_subpeldiff
Definition: block_match.h:192
Parameters for overlapped block motion compensation.
Definition: common.h:817
A template class for one-dimensional arrays.
Definition: arrays.h:89
std::vector< std::vector< MVector > > CandidateList
Definition: block_match.h:48
short ValueType
Type of picture data (including motion compensated residuals)
Definition: common.h:70
Motion vector class - just a pair.
Definition: motion.h:58
void SetPrecision(const int n)
Definition: block_match.h:175
void FindBestMatchSubp(const int xpos, const int ypos, const CandidateList &cand_list, const MVector &mv_prediction, const float lambda)
Find the best matching vector from a list of candidates, to sub-pixel accuracy (TBC: merge with FindB...
const TwoDArray< MvCostData > & m_cost_array
Definition: block_match.h:186
BlockMatcher(const PicArray &ref_data, const PicArray &pic_data, const OLBParams &bparams, const int precision, const MvArray &mv_array, const TwoDArray< MvCostData > &cost_array)
Constructor.
© 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.