Skip to content
Snippets Groups Projects
Commit 5c4b217b authored by Frank Bossen's avatar Frank Bossen
Browse files

Rename variable

parent 6293b395
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ private: ...@@ -66,7 +66,7 @@ private:
static const MvPrecision m_amvrPrecIbc[3]; static const MvPrecision m_amvrPrecIbc[3];
static const int mvClipPeriod = (1 << MV_BITS); static const int mvClipPeriod = (1 << MV_BITS);
static const int halMvClipPeriod = (1 << (MV_BITS - 1)); static const int halfMvClipPeriod = (1 << (MV_BITS - 1));
public: public:
int hor; ///< horizontal component of motion vector int hor; ///< horizontal component of motion vector
...@@ -264,9 +264,9 @@ public: ...@@ -264,9 +264,9 @@ public:
void mvCliptoStorageBitDepth() // periodic clipping void mvCliptoStorageBitDepth() // periodic clipping
{ {
hor = (hor + mvClipPeriod) & (mvClipPeriod - 1); hor = (hor + mvClipPeriod) & (mvClipPeriod - 1);
hor = (hor >= halMvClipPeriod) ? (hor - mvClipPeriod) : hor; hor = (hor >= halfMvClipPeriod) ? (hor - mvClipPeriod) : hor;
ver = (ver + mvClipPeriod) & (mvClipPeriod - 1); ver = (ver + mvClipPeriod) & (mvClipPeriod - 1);
ver = (ver >= halMvClipPeriod) ? (ver - mvClipPeriod) : ver; ver = (ver >= halfMvClipPeriod) ? (ver - mvClipPeriod) : ver;
} }
};// END CLASS DEFINITION MV };// 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