Skip to content
Snippets Groups Projects
Commit e3196e60 authored by Xiang Li's avatar Xiang Li
Browse files

cleaning on table m_dstMvPrecision

parent 5f68dfee
No related branches found
No related tags found
1 merge request!140Explicitly change MV precision
......@@ -40,7 +40,7 @@
#include "Common.h"
#include "Slice.h"
const MvPrecision Mv::m_dstMvPrecision[3] = { MV_PRECISION_QUARTER, MV_PRECISION_INT, MV_PRECISION_4PEL };
const MvPrecision Mv::m_amvrPrecision[3] = { MV_PRECISION_QUARTER, MV_PRECISION_INT, MV_PRECISION_4PEL }; // for cu.imv=0, 1 and 2
void roundAffineMv( int& mvx, int& mvy, int nShift )
{
......
......@@ -59,7 +59,7 @@ enum MvPrecision
class Mv
{
private:
static const MvPrecision m_dstMvPrecision[3];
static const MvPrecision m_amvrPrecision[3];
public:
int hor; ///< horizontal component of motion vector
......@@ -188,7 +188,7 @@ public:
void changePrecisionAmvr(const int amvr, const MvPrecision& dst)
{
changePrecision(m_dstMvPrecision[amvr], dst);
changePrecision(m_amvrPrecision[amvr], dst);
}
void roundToPrecision(const MvPrecision& src, const MvPrecision& dst)
......@@ -199,8 +199,7 @@ public:
void roundToAmvrSignalPrecision(const MvPrecision& src, const int amvr)
{
static const MvPrecision dstMvPrecision[3] = { MV_PRECISION_QUARTER, MV_PRECISION_INT, MV_PRECISION_4PEL };
roundToPrecision(src, dstMvPrecision[amvr]);
roundToPrecision(src, m_amvrPrecision[amvr]);
}
};// END CLASS DEFINITION MV
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment