| CPC H04N 19/147 (2014.11) [H04N 19/176 (2014.11)] | 4 Claims |

|
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining prediction related information for a current block;
deriving a prediction mode of the current block as a merge mode based on the prediction related information;
determining whether a spatial neighboring block of the current block is available as a spatial merge candidate of the current block based on a prediction mode of the spatial neighboring block;
based on the spatial neighboring block being available as the spatial merge candidate, deriving the spatial merge candidate of the current block based on motion information of the spatial neighboring block;
generating a merge candidate list based on the spatial merge candidate of the current block;
deriving motion information of the current block based on the merge candidate list; and
deriving a prediction sample of the current block based on the motion information,
wherein based on the prediction mode of the spatial neighboring block of the current block being a current picture referencing (CPR) mode, the spatial neighboring block of the current block is not available as the spatial merge candidate, and
wherein the CPR mode is a prediction mode in which a current picture including the current block is used as a reference picture.
|