| CPC H04N 19/46 (2014.11) [H04N 19/137 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 20 Claims |

|
1. A method for decoding a prediction mode comprising:
in response to determining that a merge mode is enabled for a current block and a current candidate prediction mode is allowed for the current block:
acquiring enablement states of one or more to-be-traversed prediction modes, wherein the one or more to-be-traversed prediction modes comprise at least one candidate prediction mode used for predicting the current block, the at least one candidate prediction mode being different than the current candidate prediction mode;
at a first time in response to determining that a candidate prediction mode being allowed is present in the one or more to-be-traversed prediction modes, decoding indication information of the current candidate prediction mode from a code stream, wherein the indication information is configured to indicate whether to enable the current candidate prediction mode for the current block; and
at a second time, in response to determining that none of the one or more to-be-traversed prediction modes is allowed, determining that the current candidate prediction mode is used for the current block without decoding the indication information of the current candidate prediction mode from the code stream,
wherein the method is executed by a processor.
|