CPC H04N 19/103 (2014.11) [H04N 19/119 (2014.11); H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11); H04N 19/70 (2014.11)] | 18 Claims |
1. A method for video coding implemented by a decoding device or an encoding device, the method comprising:
dividing a current block into at least two sub-blocks;
obtaining a first prediction mode for a first sub-block in the at least two sub-blocks and obtaining a second prediction mode for a second sub-block in the at least two sub-blocks;
obtaining a first prediction value for a sample in the current block according to the first prediction mode and obtaining a second prediction value for the sample in the current block according to the second prediction mode;
obtaining an indicator, wherein the indicator comprises information on performing a blending operation for the sample in the current block; and
obtaining a combined prediction value, for the sample in the current block, based on the indicator, the first prediction value, and the second prediction value, by:
determining a sample distance for the sample in the current block with regard to a separation line dividing the current block into the first sub-block and the second sub-block;
calculating a first weight value according to the sample distance for the sample in the current block and the blending operation which is indicated by the indicator; and
obtaining a second weight value according to the first weight value; and
obtaining the combined prediction value for the sample in the current block, by weighting the first prediction value and the second prediction value, according to the first weight value and the second weight value, respectively.
|