Patent ID: 10819999

Abstract:
A method for decoding an intra-frame prediction mode includes determining a first mode set comprising intra-frame prediction modes of available neighborhood reconstruction units in preset positions of the current to-be-decoded unit and at least one non-directional prediction mode, and parsing the bitstream to obtain a second identifier used to indicate a candidate intra-frame prediction mode in the first mode set that is used as the intra-frame prediction mode of the current to-be-decoded unit, and a codeword length of the second identifier indicating one of the at least one non-directional prediction mode as the intra-frame prediction mode of the current to-be-decoded unit is not less than a codeword length of any second identifier indicating an intra-frame prediction mode of an available neighborhood reconstruction unit in a preset position of the current to-be-decoded unit as the intra-frame prediction mode of the current to-be-decoded unit.