Systems and methods for deriving a motion vector prediction in video coding
A method of performing motion vector prediction for coding video data is disclosed. A full precision motion vector mv is determined for generating a prediction for video block in a first picture. A rounded motion vector rmv having a less precision than the full precision motion vector mv is stored. A motion vector predictor candidate is generated for a video block in a second picture from the stored motion vector.
1. A method of performing motion vector prediction for coding video data, the method comprising:
receiving a motion vector;
deriving a mask information based on the motion vector;
deriving a round information based on the motion vector;
deriving a rounded motion vector by masking a value, obtained by adding the round information to the motion vector, based on the mask information; and
generating a collocated motion vector based on the rounded motion vector.
2. The method of claim 1 further comprising deriving a number of bits based on the motion vector,
wherein the mask information is derived based on the number of bits, and the rounded information is derived based on the number of bits.
3. The method of claim 2 , wherein the mask information is used for masking (f−1) least significant bits of the value to 0, wherein the f is the number of bits.