CPC H04N 19/52 (2014.11) [H04N 19/176 (2014.11)] | 1 Claim |
1. A method of performing motion vector prediction for coding video data, the method comprising:
inputting a motion vector for a current block (currCb) in a current picture (currPic);
deriving a first value based on a second value derived by right shifting the motion vector by a first shift value;
deriving a maskinformation based on the first value, a right shift operation and a left shift operation;
deriving a rounding information based on the first value, a right shift operation and a left shift operation;
deriving a modified motion vector by masking a sum of the rounding information and the motion vector with the mask information; and
deriving a collocated motion vector variable, for a temporal motion vector, based on the modified motion vector in a case that LongTermRefPic (currPic, currCb, refIdxLX, LX) is equal to LongTermRefPic (ColPic, colCb, refIdxCol, listCol),
wherein
refIdxLX is an index from reference picture list (LX) of a slice of the current picture,
ColPic is a collocated picture used for temporal motion vector prediction for the current picture,
colCb is a collocated block, inside ColPic, for the current block,
refIdxCol is an index from reference picture list (listCol) of a slice of the ColPic, and
Long TermRefPic (currPic, currCb, refIdxLX, LX) equals to 1 specifies that a picture with refIdxLX is marked as “used for long term reference”.
|