CPC H04N 19/11 (2014.11) [H04N 19/105 (2014.11); H04N 19/117 (2014.11); H04N 19/176 (2014.11); H04N 19/593 (2014.11)] | 12 Claims |
1. An image decoding method performed by an image decoding apparatus, the method comprising:
determining at least one reference sample line for intra prediction of a current block among a plurality of reference sample lines,
wherein based on an upper boundary of the current block corresponding to an upper boundary of a current coding tree block including the current block, only a first reference sample line among the plurality of reference sample lines is determined as the at least one reference sample line for intra prediction of the current block,
wherein the first reference sample line includes upper reference samples immediately adjacent to the current block and left reference samples immediately adjacent to the current block,
deriving reference samples for intra prediction of the current block based on the determined at least one reference sample line and an intra prediction mode; and
performing intra prediction for the current block based on the intra prediction mode and the reference samples,
wherein the performing the intra prediction for the current block comprises:
determining an interpolation filter for the intra prediction; and
performing the intra prediction for the current block based on the interpolation filter, and
wherein filter coefficients of the interpolation filter are determined differently depending on whether the determined at least one reference sample line is the first reference sample line.
|