| CPC H04N 19/11 (2014.11) [H04N 19/105 (2014.11); H04N 19/107 (2014.11); H04N 19/117 (2014.11); H04N 19/124 (2014.11); H04N 19/13 (2014.11); H04N 19/176 (2014.11); H04N 19/513 (2014.11); H04N 19/593 (2014.11); H04N 19/615 (2014.11); H04N 19/635 (2014.11); H04N 19/82 (2014.11); H04N 19/91 (2014.11)] | 7 Claims |

|
1. An image decoding method comprising:
determining whether inter prediction or intra prediction is performed on a current block;
determining an intra prediction mode of the current block based on the intra prediction being performed on the current block;
determining whether to apply a first filter for neighboring samples of the current block based on the intra prediction mode of the current block and a size of the current block;
filtering the neighboring samples to generate filtered neighboring samples based on the determination that the first filter is applied to the neighboring samples;
applying a second filter for the filtered neighboring samples to generate reference samples;
generating a prediction block of the current block based on the reference samples;
generating a residual block of the current block by decoding a bitstream; and
reconstructing the current block based on the prediction block and the residual block,
wherein the second filter is an interpolation filter which uses four samples among the filtered neighboring samples,
wherein the residual block is generated by entropy-decoding residual information included in a bitstream.
|