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)] | 7 Claims |
1. An image decoding method performed by an image decoding apparatus, the method comprising:
deriving a prediction mode of a current block;
deriving reference samples neighboring the current block;
deriving prediction samples of the current block based on the prediction mode of the current block and the reference samples; and
generating reconstructed samples of the current block based on the prediction samples,
wherein whether a filtering is applied to the reference samples is determined based on the prediction mode of the current block and a size of the current block,
wherein, for the filtering for the reference samples, a 3-tap filter or a 5-tap filter is used based on the size of the current block,
wherein based on the prediction mode being a directional mode, a 4-tap interpolation filter is used for deriving the prediction samples,
wherein based on a case that the filtering is applied to the reference samples, the filtering for the reference samples is performed based on neighboring samples of a reference sample, and
wherein the neighboring samples of the reference sample include a first sample adjacent to the reference sample in a horizontal direction and a second sample adjacent to the reference sample in a vertical direction.
|