摘要 |
The present invention provides a method for encoding intra-frame prediction mode. The method comprises: obtaining an intra-frame prediction mode of a current intra-frame encoding block from a preset prediction mode set; obtaining a reference prediction mode of the current intra-frame encoding block, the reference prediction mode being an intra-frame prediction mode of available adjacent blocks of the current intra-frame encoding block or a prediction mode of a preset spare reference mode set; writing a first identifier bit into a code stream according to the reference prediction mode and the intra-frame prediction mode; and when the intra-frame prediction mode and the reference prediction mode of the encoding block are different, obtaining a prediction mode encoding value according to a size relationship between the intra-frame prediction mode and the reference prediction mode, and encoding the prediction mode encoding value. By adopting the encoding method provided by the present invention, the judgment logic of an encoding end can be saved, and the encoding efficiency can be improved. The present invention further provides a corresponding decoding method and encoding/decoding apparatus. |