| CPC H04N 19/513 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11)] | 4 Claims |

|
1. An image decoding method performed by an image decoding apparatus, the image decoding method comprising:
obtaining inter prediction information of a current block and wraparound information from a bitstream; and
generating a prediction block of the current block based on the inter prediction information and the wraparound information,
wherein the wraparound information comprises a first flag specifying whether wraparound motion compensation is enabled for a current picture including the current block,
wherein, based on at least one of subpictures included in the current picture being treated as a picture and having a width different from a value being derived based on information on a maximum width of a picture in a current video sequence including the current picture, the first flag has a first value specifying that the wraparound motion compensation is disabled for the current picture,
wherein, based on the first flag having a second value specifying that the wraparound motion compensation is enabled for the current picture, the wraparound information further comprises a wraparound offset being used for performing the wraparound motion compensation,
wherein the wraparound motion compensation is performed based on either boundaries of a current subpicture including the current block or boundaries of a reference picture of the current block, based on whether the current subpicture is treated as a picture, and
wherein the wraparound motion compensation for the current block is performed by modifying a x-coordinate of a reference block in the reference picture based on the wraparound offset, the reference block being specified by a motion vector of the current block.
|