CPC H04N 19/119 (2014.11) [H04N 19/105 (2014.11); H04N 19/139 (2014.11); H04N 19/174 (2014.11); H04N 19/176 (2014.11); H04N 19/52 (2014.11); H04N 19/147 (2014.11); H04N 19/184 (2014.11); H04N 19/186 (2014.11)] | 20 Claims |
1. A decoding method, comprising:
determining whether a current block satisfies specific conditions for enabling a geometric partitioning mode with triangular partition; and
if the current block satisfies the specific conditions for enabling the geometric partitioning mode with triangular partition and the geometric partitioning mode with triangular partition is enabled, performing operations comprising:
obtaining first target motion information and second target motion information of the current block, wherein the first target motion information is different from the second target motion information; and
performing a decoding process on the current block based on the first target motion information and the second target motion information;
wherein determining whether the current block satisfies the specific conditions for enabling the geometric partitioning mode with triangular partition comprises: determining whether a type of a current slice where the current block is located, a motion information mode of the current block, and size information of the current block satisfy the specific conditions;
wherein performing the decoding process on the current block based on the first target motion information and the second target motion information comprises: performing motion compensation on the current block based on the first target motion information and the second target motion information to obtain a prediction value of the current block;
wherein the prediction value of the current block at least comprises a prediction value of a first sub-block area, a prediction value of a second sub-block area, and a prediction value of a third sub-block area;
wherein the prediction value of the first sub-block area is obtained by performing motion compensation on the first sub-block area based on the first target motion information, the prediction value of the second sub-block area is obtained by performing motion compensation on the second sub-block area based on the second target motion information, and the prediction value of the third sub-block area is obtained by performing weighted compensation on the third sub-block area based on the first target motion information and the second target motion information; and
wherein the prediction value of the third sub-block area comprises prediction values of all sub-blocks in the third sub-block area, and each sub-block in the third sub-block area is a 1*1 pixel block, and
wherein obtaining the prediction value of the third sub-block area by performing the weighted compensation on the third sub-block area based on the first target motion information and the second target motion information comprises:
for each sub-block in the third sub-block area,
determining a first prediction value of the sub-block based on the first target motion information;
determining a second prediction value of the sub-block based on the second target motion information; and
obtaining a weighted prediction value of the sub-block based on the first prediction value, a first weight coefficient corresponding to the first prediction value, the second prediction value, and a second weight coefficient corresponding to the second prediction value,
wherein the weighted prediction value of the sub-block is P1*a+P2*b when the first prediction value is P1, the second prediction value is P2, the first weight coefficient is a, and the second weight coefficient is b.
|