| CPC H04N 19/517 (2014.11) [H04N 19/176 (2014.11); H04N 19/182 (2014.11); H04N 19/184 (2014.11)] | 8 Claims |

|
1. A method of decoding an image, the method comprising: decoding, from a bitstream, motion vector refinement information indicating enablement of motion vector refinement in a current sequence; determining whether a merge mode is applied to a current block in the current sequence; constructing a merge candidate list of the current block in response to the merge mode being applied to the current block, the merge candidate list comprising at least one of a spatial merge candidate derived from a spatial neighboring block of the current block or a temporal merge candidate derived from a temporal neighboring block of the current block; decoding, from the bitstream, a merge index of the current block; determining a motion vector of the current block based on a merge candidate selected from the merge candidate list based on the merge index; determining whether to refine the motion vector of the current block or not; and refining the motion vector of the current block when it is determined to refine the motion vector, wherein refining the motion vector is performed in response to a size of the current block being greater than a threshold value.
|