| CPC H04N 19/513 (2014.11) [G06F 5/01 (2013.01); H04N 19/107 (2014.11); H04N 19/132 (2014.11); H04N 19/139 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/189 (2014.11); H04N 19/423 (2014.11); H04N 19/54 (2014.11)] | 15 Claims |

|
1. A method for video encoding, comprising:
determining an inter prediction process; and
in response to determining that the inter prediction process is one of derivation processes for temporal motion vector prediction (TMVP), alternative temporal motion vector prediction (ATMVP), or merge mode with motion vector differences (MMVD), performing a motion vector (MV) rounding operation to at least one MV in the inter prediction process according to a first MV rounding mode,
wherein the first MV rounding mode is based on the following equation:
![]() where:
A represents an input value that is an MV value before rounding;
Shift is a right bit-wise shift that is applied for MV rounding;
the_first_offset represents a first offset value that is adjusted based on a base offset and a sign of A;
the base offset is set equal to (Shift>0)? 1<<(Shift−1):0; and
L is a value of a rounded MV.
|