| CPC H04N 19/52 (2014.11) [H04N 19/109 (2014.11); H04N 19/139 (2014.11); H04N 19/176 (2014.11); H04N 19/184 (2014.11)] | 16 Claims |

|
1. A method for inter prediction, applied to a video picture encoder, and comprising:
determining a first motion vector and a second candidate motion vector according to a position of a current block in a video picture;
judging, with the second candidate motion vector pre-determined, whether a difference between the first motion vector and the second candidate motion vector is greater than a non-zero first threshold value, wherein the difference is determined based on a first position to which the first motion vector points and a second position to which the second candidate motion vector points;
when a judgment result indicates that the difference is less than or equal to the first threshold value, obtaining a second motion vector based on the second candidate motion vector; when the judgment result indicates that the difference is greater than the first threshold value, taking the second candidate motion vector as the second motion vector; and
performing inter prediction on the current block by using the first motion vector and the second motion vector.
|