CPC H04N 19/51 (2014.11) [H04N 19/105 (2014.11); H04N 19/107 (2014.11); H04N 19/119 (2014.11); H04N 19/176 (2014.11); H04N 19/50 (2014.11); H04N 19/70 (2014.11); H04N 19/91 (2014.11)] | 5 Claims |
1. A method of decoding a video, the method comprising:
obtaining a first prediction block of a current block using an L0 reference picture of the current block;
obtaining a second prediction block of the current block using an L1 reference picture of the current block;
obtaining a bi-predicted block of the current block based on a weighted sum operation of the first prediction block and the second prediction block; and
reconstructing the current block based on the bi-predicted block,
wherein if a size of the current block satisfies a pre-defined condition, a first weight applied to the first prediction block and a second weight the second prediction block are determined to be the same,
wherein if the size of the current block does not satisfy the pre-defined condition, the first weight and the second weight are determined based on index information specifying one among a plurality of weight candidates, and
wherein a number of the weight candidates is varied depending on temporal directions of the L0 reference picture and the L1 reference picture.
|