Method and device for removing redundant syntax from merge data syntax
A decoding method performed by a decoding device according to the present document comprises the steps of: determining a prediction mode of a current block on the basis of information about a prediction mode obtained from a bitstream; constructing a merge candidate list on the basis of the prediction mode; deriving motion information of the current block on the basis of the merge candidate list; and generating prediction samples of the current block on the basis of the motion information, wherein the bitstream includes information about a combined inter-picture merge and intra-picture prediction (CIIP) available flag indicating whether the CLIP is available, and the determination step may include a step of acquiring a regular merge flag from the bitstream on the basis of the CIIP available flag.
1. A decoding method performed by a decoding apparatus, the method comprising:
determining a prediction mode of a current block based on information on the prediction mode obtained from a bitstream;
configuring a merge candidate list based on the prediction mode;
deriving motion information of the current block based on the merge candidate list; and
generating prediction samples of the current block based on the motion information,
wherein the bitstream includes information on a combined inter-picture merge and intra-picture prediction (CIIP) enabled flag representing whether a CIIP is enabled, and
wherein the determining includes obtaining a regular merge flag from the bitstream based on the CIIP enabled flag.
2. An encoding method performed by an encoding apparatus, the method comprising:
determining a prediction mode of a current block;
configuring a merge candidate list based on the prediction mode;
deriving motion information of the current block based on the merge candidate list;
deriving prediction samples of the current block based on the motion information;
deriving residual samples based on the prediction samples; and
encoding image information including information on the prediction mode generated based on the prediction mode, and residual information generated based on the residual samples,
wherein the image information includes information on a combined inter-picture merge and intra-picture prediction (CIIP) enabled flag representing whether a CIIP is enabled, and
wherein the image information includes a regular merge flag based on the CIIP enabled flag.
3. A non-transitory computer-readable digital storage medium storing a bitstream generated by the method of claim 2 .
4. A transmission method of data for image, the transmission method comprising:
obtaining a bitstream, wherein the bitstream is generated by performing determining a prediction mode of a current block, configuring a merge candidate list based on the prediction mode, deriving motion information of the current block based on the merge candidate list, deriving prediction samples of the current block based on the motion information, deriving residual samples based on the prediction samples and generating the bitstream by encoding image information including information on the prediction mode generated based on the prediction mode, and residual information generated based on the residual samples; and
transmitting the data comprising the bitstream,
wherein the image information includes information on a combined inter-picture merge and intra-picture prediction (CIIP) enabled flag representing whether a CIIP is enabled, and
wherein the image information includes a regular merge flag based on the CIIP enabled flag.