CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/117 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11)] | 15 Claims |
1. A video decoding method performed by a video decoding apparatus, the video decoding method comprising:
obtaining an intra prediction mode of a current block;
obtaining a reference sample for intra prediction based on a neighboring sample of the current block;
filtering on the reference sample based on a filtering being determined to be performed on the reference sample; and
generating a prediction block of the current block based on the intra prediction mode and the reference sample, which is filtered or not,
wherein, whether to perform the filtering on the reference sample is determined based on a distance between the current block and the reference sample and based on a first parameter representing a size of the current block, the size including a length of a horizontal edge of the current block and a length of a vertical edge of the current block, and
wherein the filtering on the reference sample is skipped when the intra prediction mode is a horizontal mode or is a vertical mode, independent of the size of the current block.
|