主权项 |
1. A method of decoding video data controlled by a processor, the method comprising:
determining, by the processor, candidate intra prediction modes including a planar mode, in response to an intra prediction mode of a left block being equal to an intra prediction mode of an upper block and the intra prediction mode of the left block being a DC mode; determining, by the processor, the candidate intra prediction modes including an intra prediction mode corresponding to an index that is less than an index of the intra prediction mode of the left block by 1 or an intra prediction mode corresponding to an index that is greater than the index of the intra prediction mode of the left block by 1, in response to the intra prediction mode of the left block being equal to the intra prediction mode of the upper block and the intra prediction mode of the left block being a directional mode; obtaining, by the processor, a mode index indicating one among the candidate intra prediction modes from a bitstream; determining, by the processor, an intra prediction mode of a current block by using the mode index; and, performing, by the processor, intra prediction on the current block using the intra prediction mode of the current block. |