Skip to content
Snippets Groups Projects
Commit c0c49c3c authored by Karsten Suehring's avatar Karsten Suehring
Browse files

Merge branch 'rename1' into 'master'

Rename variable

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