| CPC H04N 19/119 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/184 (2014.11); H04N 19/159 (2014.11)] | 14 Claims |

|
1. A method of coding implemented by a decoding device, the method comprising:
obtaining a value of an indicator for a current block according to a bitstream;
obtaining a value of a first parameter for the current block and a value of a second parameter for the current block according to the value of the indicator and a predefined lookup table;
obtaining a value of a sample distance for a sample which is located in the current block according to the value of the first parameter and the value of the second parameter; and
obtaining a prediction value for the sample according to the value of the sample distance for the sample, including:
determining two weighting factors corresponding to the two sub-blocks according to the sample distance value; and
obtaining the prediction value for the sample according to a first prediction value for a first sub-block of the two sub-blocks based on a first prediction mode, a second prediction value for a second sub-block of the two sub-blocks based on a second prediction mode and the two weighting factors;
wherein the predefined lookup table is:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
wherein the indicator is merge_gpm_partition_idx, wherein the first parameter is angleIdx, which represents an angle for partitioning of the current block, wherein the second parameter is distanceIdx.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||