| CPC H04N 19/126 (2014.11) [H04N 19/105 (2014.11); H04N 19/107 (2014.11); H04N 19/119 (2014.11); H04N 19/132 (2014.11); H04N 19/137 (2014.11); H04N 19/176 (2014.11); H04N 19/50 (2014.11); H04N 19/70 (2014.11)] | 10 Claims |

|
1. A method for of decoding a video, the method comprising:
obtaining an L0 prediction block of a current block based on an L0 reference picture of the current block;
obtaining an L1 prediction block of the current block based on an L1 reference picture of the current block;
determining a first weight applying to the L0 prediction block and a second weight applying to the L1 prediction block;
obtaining a bi-prediction block by performing a weighted sum of the L0 prediction block and the L1 prediction block based on the first weight and the second weight; and
obtaining a reconstruction block of the current block based on the bi-prediction block,
wherein one of the first weight and the second weight is determined based on index indicating one of a plurality of weight candidates, and
wherein a number of the weight candidates is determined based on temporal directions of the L0 reference picture and the L1 reference picture.
|