| CPC H04N 19/11 (2014.11) [H04N 19/105 (2014.11); H04N 19/119 (2014.11); H04N 19/176 (2014.11); H04N 19/96 (2014.11)] | 16 Claims |

|
1. An image decoding method comprising:
deriving an intra prediction mode of a current block;
deriving a reference sample of intra prediction for the current block from a plurality of reference sample lines; and
generating a prediction block by performing intra prediction for the current block based on the intra prediction mode and the reference sample,
wherein the deriving the reference sample of intra prediction for the current block comprises:
determining whether an upper boundary of the current block is an upper boundary of a current coding tree block or not; and
selecting a reference sample line for deriving the reference sample among the plurality of reference sample lines based on the determination, and
wherein, in response to the upper boundary of the current block being the upper boundary of the current coding tree block, the reference sample is derived using a first reference sample line adjacent to the current block among the plurality of reference sample lines, and
wherein the current block is obtained by dividing the current coding tree block using at least one of a quad-tree division method or a binary-tree division method.
|