CPC H04N 19/593 (2014.11) [H04N 19/105 (2014.11); H04N 19/11 (2014.11); H04N 19/117 (2014.11); H04N 19/176 (2014.11)] | 11 Claims |
1. A method for decoding an image, performed by a decoding apparatus, the method comprising:
deriving an intra prediction mode for a current block based on prediction mode information obtained from a bitstream;
generating prediction samples of the current block based on the intra prediction mode; and
generating a reconstructed picture based on the prediction samples,
wherein the intra prediction mode is a horizontal prediction mode having a horizontal prediction direction,
wherein the step of generating the prediction samples includes:
deriving a prediction sample based on a first reference sample located along the horizontal prediction direction with regard to a location of the prediction sample, and
performing filtering on the prediction sample based on a second reference sample located along a vertical direction with regard to a location of the prediction sample, wherein the prediction sample is adjacent to a top boundary of the current block among the prediction samples,
wherein the first reference sample is located outside of the current block and is adjacent to a left boundary of the current block,
wherein the second reference sample is located outside of the current block and is adjacent to an upper side of the prediction sample,
wherein a filtering coefficient applied to a value of the prediction sample is larger than a filtering coefficient applied to a value of the second reference sample.
|