CPC H04N 19/105 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/177 (2014.11); H04N 19/91 (2014.11)] | 3 Claims |
1. An image decoding method using bi-prediction, the image decoding method comprising:
obtaining, from a bitstream, a weight index and residual data for a current block;
obtaining a first prediction block by using a first reference image, and obtaining a second prediction block by using a second reference image, for bi-prediction of the current block;
obtaining a third prediction block by combining the first prediction block with the second prediction block according to a candidate value indicated by the weight index among candidate values included in a weight candidate group; and
reconstructing the current block by using the third prediction block and the residual data,
wherein a first binary value corresponding to the weight index is entropy-decoded based on a context model,
wherein a remaining binary value corresponding to the weight index is entropy-decoded by a bypass method, and
wherein a number of candidate values indicatable by the weight index in the weight candidate group when a picture order count (POC) of the first reference image and a POC of the second reference image are smaller than or equal to a POC of a current image is larger than a number of candidate values indicatable by the weight index in the weight candidate group when the POC of the first reference image and the POC of the second reference image are greater than the POC of the current image.
|