摘要 |
Embodiments of the present invention provide a method and an apparatus for processing an intra prediction mode. The method includes: determining whether an intra prediction mode of each neighboring block in multiple neighboring blocks of a current block is applicable to the current block; and obtaining multiple mapped intra prediction modes of the current block according to a result of the determining, if it is determined that an intra prediction mode of a neighboring block is applicable to the current block, setting the intra prediction mode of the neighboring block as a mapped intra prediction mode of the current block, and if it is determined that the intra prediction mode of the neighboring block is not applicable to the current block, setting a specific intra prediction mode as the mapped intra prediction mode of the current block. In the embodiments of the present invention, if it is determined that the intra prediction mode of the neighboring block is not applicable to the current block, a specific intra prediction mode may be set as the mapped intra prediction mode of the current block, so that it is unnecessary to look up an LUT table in a mapping process, thereby simplifying software and hardware implementation. |