| CPC H04N 19/513 (2014.11) [H04N 19/176 (2014.11); H04N 19/96 (2014.11)] | 12 Claims |

|
1. A method for video decoding in a decoder, the method comprising:
obtaining prediction information of a first block in a picture from a coded video bitstream;
generating reconstructed samples of the first block according to the prediction information;
adding motion information and a first bi-prediction weight index of a History-based Motion Vector Prediction (HMVP) candidate to an HMVP list, the first bi-prediction weight index indicating bi-prediction weights for the first block including a first weight applied to a first reference picture in a first list and a second weight applied to a second reference picture in a second list;
generating reconstructed samples of a second block in the picture based on a plurality of candidates that includes the HMVP candidate;
when the first block is in a Coding Tree Unit (CTU) row different from that of a current CTU in which the second block is included, the second block in the picture is decoded based on another motion information stored in a regular merge candidate or an affine merge candidate, and the second block is coded according to bi-directional prediction, setting a second bi-prediction weight index for the second block to the first bi-prediction weight index, and
wherein, when the first block is decoded according to uni-directional prediction, the first bi-prediction weight index of the HMVP candidate added to the HMVP list indicates that the first weight and the second weight are equal.
|