| CPC H04N 19/593 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/182 (2014.11); H04N 19/46 (2014.11)] | 5 Claims |

|
1. An image decoding method, the method comprising:
determining a reference line of a current block based on reference line information for the current block when an intra prediction is applied to the current block;
determining whether a unidirectional prediction or a bidirectional prediction is performed based on an intra prediction mode of the current block; and
generating a prediction block of the current block by performing one of the unidirectional prediction or the bidirectional prediction,
wherein the unidirectional prediction comprises generating the unidirectional prediction value of the current block by using a first reference line according to a prediction direction of the intra prediction mode,
wherein the bidirectional prediction comprises generating the bidirectional prediction value of the current block by using a second reference line according to an inverse direction of the prediction direction of the intra prediction mode,
wherein the second reference line is immediately adjacent to the current block in the inverse direction of the prediction direction of the intra prediction mode,
wherein, the bidirectional prediction value of the current block is determined based on a first weight for the unidirectional prediction and a second weight for the bidirectional prediction, and
wherein the first weight for the unidirectional prediction is determined to be greater than the second weight for the bidirectional prediction regardless of a location of the current block, a size of the current block, and a shape of the current block.
|