diff --git a/source/Lib/CommonLib/Mv.cpp b/source/Lib/CommonLib/Mv.cpp index 7495f1c195d6caf5d8b79e1f1a739ffb7d833f1b..a571091987a5b92be8fbf157714a442e75721624 100644 --- a/source/Lib/CommonLib/Mv.cpp +++ b/source/Lib/CommonLib/Mv.cpp @@ -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 ) { diff --git a/source/Lib/CommonLib/Mv.h b/source/Lib/CommonLib/Mv.h index 5bba212fee68e3ccdb192ad444a7d8f6d5589306..7c287694da728e6d4d98e7b8ef843d268cdd4483 100644 --- a/source/Lib/CommonLib/Mv.h +++ b/source/Lib/CommonLib/Mv.h @@ -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