46#ifndef _INCLUDED_MOT_COMP
47#define _INCLUDED_MOT_COMP
122 void CompensateComponent(
Picture* pic ,
ChromaFormat
Definition common_types.h:58
Definition of class SequenceHeaderByteIO.
Definition accessunit_byteio.h:52
CompSort
Types of picture component.
Definition common.h:87
AddOrSub
Addition or subtraction.
Definition common.h:90
short ValueType
Type of picture data (including motion compensated residuals).
Definition common.h:70
MotionVector< int > MVector
MVector class is a vector of ints.
Definition motion.h:180
PredMode
Prediction modes for blocks.
Definition common.h:84
MotionVector< int > ImageCoords
ImageCoords class is a vector of ints.
Definition motion.h:183
A template class for two-dimensional arrays.
Definition arrays.h:285
A class for picture component data.
Definition common.h:719
Parameters for overlapped block motion compensation.
Definition common.h:818
Structure to hold motion parameters when motion comp is used.
Definition common.h:968
void AdjustBlockBySpatialWeights(TwoDArray< ValueType > &val_block, const ImageCoords &pos, const TwoDArray< ValueType > &wt_array)
virtual void CompensateBlock(TwoDArray< ValueType > &pic_data, const ImageCoords &pos, const ImageCoords &orig_pic_size, PredMode block_mode, ValueType dc, const PicArray &ref1up_data, const MVector &mv1, const PicArray &ref2up_data, const MVector &mv2, const TwoDArray< ValueType > &Weights)
*Predict pixels in a block Pure virtual SubClasses need to define virtual it void BlockPixelPred(TwoDArray< ValueType > &block_data, const ImageCoords &pos, const ImageCoords &orig_pic_size, const PicArray &refup_data, const MVector &mv)=0
*Flips the values in an array in the y direction void FlipY(const TwoDArray< ValueType > &Original, TwoDArray< ValueType > &Flipped)
TwoDArray< ValueType > * m_macro_block_weights
Definition mot_comp.h:219
AddOrSub m_add_or_sub
Definition mot_comp.h:212
*The chroma format ChromaFormat m_cformat
Definition mot_comp.h:208
*Flips the values in an array in the x direction void FlipX(const TwoDArray< ValueType > &Original, TwoDArray< ValueType > &Flipped)
virtual ~MotionCompensator()
Destructor.
TwoDArray< ValueType > * m_sub_block_weights
Definition mot_comp.h:221
MotionCompensator(const PicturePredParams &ppp)
Constructor.
static void CompensatePicture(const PicturePredParams &ppp, const AddOrSub direction, const MvData &mv_data, Picture *in_pic, Picture *refptr[2])
Convenience function to perform motion compensation on a picture.
bool luma_or_chroma
Definition mot_comp.h:209
void CreateBlock(int xbsep, int ybsep, bool FullX, bool FullY, TwoDArray< ValueType > &WeightArray)
Compensate a picture.
OLBParams m_bparams
Definition mot_comp.h:215
TwoDArray< ValueType > * m_block_weights
Definition mot_comp.h:217
void AdjustBlockByRefWeights(TwoDArray< ValueType > &val1_block, TwoDArray< ValueType > &val2_block, PredMode block_mode)
*The codec parameters PicturePredParams m_predparams
Definition mot_comp.h:205
*Motion compensate a virtual block void BlockPixelPred(TwoDArray< ValueType > &block_data, const ImageCoords &pos, const ImageCoords &orig_pic_size, const PicArray &refup_data, const MVector &mv)
*Constructor MotionCompensator_Pixel(const PicturePredParams &ppp)
*Constructor MotionCompensator_HalfPixel(const PicturePredParams &ppp)
*Motion compensate a virtual block void BlockPixelPred(TwoDArray< ValueType > &block_data, const ImageCoords &pos, const ImageCoords &orig_pic_size, const PicArray &refup_data, const MVector &mv)
*Constructor MotionCompensator_QuarterPixel(const PicturePredParams &ppp)
*Motion compensate a virtual block void BlockPixelPred(TwoDArray< ValueType > &block_data, const ImageCoords &pos, const ImageCoords &orig_pic_size, const PicArray &refup_data, const MVector &mv)
*Constructor MotionCompensator_EighthPixel(const PicturePredParams &ppp)
*Motion compensate a virtual block void BlockPixelPred(TwoDArray< ValueType > &block_data, const ImageCoords &pos, const ImageCoords &orig_pic_size, const PicArray &refup_data, const MVector &mv)
Class for all the motion vector data.
Definition motion.h:220
A class for encapsulating all the data relating to a picture.
Definition picture.h:52
Holds pictures both for reference and to overcome reordering delay.
Definition picture_buffer.h:59