| CPC H04N 19/11 (2014.11) [H04N 19/119 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11)] | 3 Claims |

|
1. An image decoding method performed by an image decoding apparatus, the method comprising:
selecting one of a plurality of reference sample lines neighboring a current block;
deriving a reference sample line based on the selected reference sample line;
filtering the reference sample line; and
deriving prediction samples for the current block based on the filtered reference sample line;
wherein the filtering of the reference sample line includes determining whether a filtering is performed based on an intra prediction mode of the current block, a size of the current block, a type of the current block, and a position of the selected reference sample line,
wherein the reference sample line is selected based on whether a boundary of the current block is a boundary of a coding tree block (CTB), and
wherein based on the boundary of the current block being the boundary of the CTB, a first upper reference sample line adjacent to the current block is selected.
|