CPC H04N 19/11 (2014.11) [H04N 19/105 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 2 Claims |
1. A video decoding method comprising:
obtaining, from a bitstream, intra prediction mode information indicating an intra prediction mode of a current block from among a plurality of intra prediction modes including a first lower-left direction and a first upper-right direction;
when a width of the current block is greater than a height of the current block and the intra prediction mode indicates the first lower-left direction, replacing the intra prediction mode with a second intra prediction mode indicating a second upper-right direction;
when the height of the current block is greater than the width of the current block and first intra prediction mode indicates the first upper-right direction, replacing the intra prediction mode with a second intra prediction mode indicating a second lower-left direction; and
obtaining a prediction sample of pixel comprised in the current block by performing intra prediction using the second intra prediction mode,
wherein, when a value of the intra prediction mode is A (where A is an integer), the second intra prediction mode is obtained by adding a predetermined value to A or subtracting a predetermined value from A.
|