| CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11); H04N 19/80 (2014.11)] | 3 Claims |

|
1. A video decoding method comprising:
obtaining, from a bitstream, intra prediction mode information indicating an intra prediction mode of a current coding block including a current transform block;
determining reference samples for intra prediction on the current transform block;
when the intra prediction mode indicated by the intra prediction mode information is an intra prediction mode with a diagonal prediction direction, filtering the reference samples;
determining a first value among a plurality of values including the first value and a second value as interpolation filter information for the filtered reference samples, wherein the first value indicates a first interpolation filter set and the second value indicates a second interpolation filter set;
determining the first interpolation filter set, among a plurality of interpolation filter sets including the first interpolation filter set and the second interpolation filter set, based on the interpolation filter information; and
obtaining prediction samples of the current transform block by performing an interpolation on the filtered reference samples using a plurality of first interpolation filter coefficients in the first interpolation filter set,
wherein:
the plurality of first interpolation filter coefficients in the first interpolation filter set are different from a plurality of second interpolation filter coefficients in the second interpolation filter set,
a difference between a maximum coefficient and a minimum coefficient among the plurality of first interpolation filter coefficients is greater than a difference between a maximum coefficient and a minimum coefficient among the plurality of second interpolation filter coefficients, and
the current coding block has one of a square shape and a non-square shape.
|