Methods and apparatuses for signaling of merge modes in video coding
A method for video coding is provided. The method includes: determining a signaling of merge modes for deriving motion information of a current block, where the merge modes include: regular merge mode and extended merge modes; and deriving motion information of the current block using the regular merge mode, upon determining that the signaling of merge modes includes a positive signal of regular merge mode.
1 . A method for video decoding, comprising:
obtaining, by a decoder, a plurality of variables for determining enablement statuses of a plurality of merge modes in a second group of merge modes;
in response to determining, by the decoder, from the plurality of variables that no merge mode in the second group of merge modes is enabled, determining, by the decoder, information of merge modes for deriving motion information of a current block, wherein the information of merge modes comprises a flag indicating whether to apply a merge mode in a first group of merge modes;
in response to determining, by the decoder, that a certain merge mode is enabled but a corresponding flag is not signaled, inferring, by the decoder, a value of the corresponding flag as opposite to an explicitly signaled merge mode flag for the current block; and
in response to determining, by the decoder, from the plurality of variables that a plurality of merge modes in the second group of merge modes are enabled, determining, by the decoder, information of merge modes for deriving motion information of the current block, wherein the information of merge modes comprises a flag indicating whether to apply one of the plurality of enabled merge modes in the second group of merge modes,
wherein the first group of merge modes comprises a regular merge mode, and the second group of merge modes comprises a combined inter and intra prediction (CIIP) merge mode.
2 . The method of claim 1 , further comprising:
in response to determining, by the decoder, that the information of merge modes comprises a flag indicating application of a merge mode in the first group of merge modes, deriving, by the decoder, motion information of the current block using a merge mode in the first group of merge modes.
3 . The method of claim 1 , further comprising:
in response to determining, by the decoder, that the information of merge modes comprises a flag indicating non-application of a merge mode in the first group of merge modes, deriving, by the decoder, motion information of the current block using a merge mode in the second group of merge modes.
4 . The method of claim 1 , wherein the flag indicating whether to apply one of the plurality of enabled merge modes in the second group of merge modes is derived according to a sequence parameter set (SPS) flag, and size constraints of the one of the plurality of enabled merge modes.
5 . The method of claim 1 , wherein the regular merge mode is signaled using Context-Adaptive Binary Arithmetic Coding (CABAC) with multiple context models and selection of the multiple context models is based on a skip flag of the current block.
6 . An apparatus for video decoding, comprising:
one or more processors; and
a memory configured to store instructions executable by the one or more processors;
wherein the one or more processors, upon execution of the instructions, are configured to:
obtain a plurality of variables for determining enablement statuses of a plurality of merge modes in a second group of merge modes;
in response to determining from the plurality of variables that no merge mode in the second group of merge modes is enabled, determine information of merge modes for deriving motion information of a current block, wherein the information of merge modes comprises a flag indicating whether to apply a merge mode in a first group of merge modes;
in response to determining that a certain merge mode is enabled but a corresponding flag is not signaled, infer a value of the corresponding flag as opposite to an explicitly signaled merge mode flag for the current block; and
in response to determining from the plurality of variables that a plurality of merge modes in the second group of merge modes are enabled, determine information of merge modes for deriving motion information of the current block, wherein the information of merge modes comprises a flag indicating whether to apply one of the plurality of enabled merge modes in the second group of merge modes,
wherein the first group of merge modes comprises a regular merge mode, and the second group of merge modes comprises a combined inter and intra prediction (CIIP) merge mode.
7 . The apparatus of claim 6 , wherein the one or more processors are further configured to:
in response to determining that the information of merge modes comprises a flag indicating application of a merge mode in the first group of merge modes, derive motion information of the current block using a merge mode in the first group of merge modes.
8 . The apparatus of claim 6 , wherein the one or more processors are further configured to:
in response to determining that the information of merge modes comprises a flag indicating non-application of a merge mode in the first group of merge modes, derive motion information of the current block using a merge mode in the second group of merge modes.
9 . The apparatus of claim 6 , wherein the flag indicating whether to apply one of the plurality of enabled merge modes in the second group of merge modes is derived according to a sequence parameter set (SPS) flag, and size constraints of the one of the plurality of enabled merge modes.
10 . The apparatus of claim 6 , wherein the regular merge mode is signaled using Context-Adaptive Binary Arithmetic Coding (CABAC) with multiple context models and selection of the multiple context models is based on a skip flag of the current block.
11 . A non-transitory computer readable storage medium having a bitstream stored therein, wherein the bitstream is to be decoded by a method for video decoding comprising:
obtaining, by a decoder, a plurality of variables for determining enablement statuses of a plurality of merge modes in a second group of merge modes;
in response to determining, by the decoder, from the plurality of variables that no merge mode in the second group of merge modes is enabled, determining, by the decoder, information of merge modes for deriving motion information of a current block, wherein the information of merge modes comprises a flag indicating whether to apply a merge mode in a first group of merge modes;
in response to determining, by the decoder, that a certain merge mode is enabled but a corresponding flag is not signaled, inferring, by the decoder, a value of the corresponding flag as opposite to an explicitly signaled merge mode flag for the current block; and
in response to determining, by the decoder, from the plurality of variables that the plurality of merge modes in the second group of merge modes are enabled, determining, by the decoder, information of merge modes for deriving motion information of the current block, wherein the information of merge modes comprises a flag indicating whether to apply one of the plurality of enabled merge modes in the second group of merge modes,
wherein the first group of merge modes comprises a regular merge mode, and the second group of merge modes comprises a combined inter and intra prediction (CIIP) merge mode.
12 . The non-transitory computer readable storage medium of claim 11 , wherein the method further comprises:
in response to determining, by the decoder, that the information of merge modes comprises a flag indicating application of a merge mode in the first group of merge modes, deriving, by the decoder, motion information of the current block using a merge mode in the first group of merge modes.
13 . The non-transitory computer readable storage medium of claim 11 , wherein the method further comprises:
in response to determining, by the decoder, that the information of merge modes comprises a flag indicating non-application of a merge mode in the first group of merge modes, deriving, by the decoder, motion information of the current block using a merge mode in the second group of merge modes.
14 . The non-transitory computer readable storage medium of claim 11 , wherein the flag indicating whether to apply one of the plurality of enabled merge modes in the second group of merge modes is derived according to a sequence parameter set (SPS) flag, and size constraints of the one of the plurality of enabled merge modes.
15 . The non-transitory computer readable storage medium of claim 11 , wherein the regular merge mode is signaled using Context-Adaptive Binary Arithmetic Coding (CABAC) with multiple context models and selection of the multiple context models is based on a skip flag of the current block.