US 12,231,649 B2
Inter prediction method, encoder, decoder and storage medium
Yanzhuo Ma, Guangdong (CN); Junyan Huo, Guangdong (CN); Shuai Wan, Guangdong (CN); Fuzheng Yang, Guangdong (CN); and Qihong Ran, Guangdong (CN)
Assigned to GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD., Guangdong (CN)
Filed by GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD., Guangdong (CN)
Filed on Oct. 2, 2022, as Appl. No. 17/958,420.
Application 17/958,420 is a continuation of application No. PCT/CN2020/083356, filed on Apr. 3, 2020.
Prior Publication US 2023/0080546 A1, Mar. 16, 2023
Int. Cl. H04N 11/02 (2006.01); H04N 19/136 (2014.01); H04N 19/159 (2014.01); H04N 19/176 (2014.01)
CPC H04N 19/136 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11)] 13 Claims
OG exemplary drawing
 
1. A method for inter prediction, applied to an encoder, comprising:
determining a prediction mode parameter of a current block;
when the prediction mode parameter indicates that a Geometrical Partitioning Mode (GPM) is used for determining an inter prediction value of the current block, determining a dividing angle and a distance in the current block, and setting an angle index value and a distance index value to index serial numbers corresponding to the angle and the distance in a preset mapping table respectively;
determining a value of a shifting direction indicator of the current block by using a preset model based on size information and the angle index value of the current block, wherein, the value of a shifting direction indicator is used for indicating shifting directions of different dividing lines of the current block at the angle; wherein the size information of the current block comprises a height and a width of the current block, and determining the value of a shifting direction indicator of the current block by using the preset model based on the size information and the angle index value of the current block comprises:
determining a first refinement value according to the angle index value;
obtaining a shifted height according to the first refinement value and the height of the current block;
obtaining a shifted width according to a preset offset value and the width of the current block; and
obtaining the value of the shifting direction indicator of the current block according to a size of the shifted height and a size of the shifted width; and
performing inter prediction on the current block based on the value of the shifting direction indicator and the distance index value.