| CPC H04N 19/52 (2014.11) [H04N 19/44 (2014.11)] | 3 Claims |

|
1. An apparatus of decoding a motion vector, the apparatus comprising:
an obtainer configured to obtain, from a bitstream, information indicating a motion vector resolution of a current block among a plurality of motion vector resolutions; and
a prediction decoder configured to:
when information about a previously decoded block indicates first information, determine locations, including a first location, of a plurality of candidate blocks corresponding to the plurality of motion vector resolutions based on the first information, wherein the locations of the plurality of candidate blocks are different from each other;
when the information about the previously decoded block indicates second information, determine locations, including a second location, of a plurality of candidate blocks corresponding to the plurality of motion vector resolutions based on the second information, wherein the second location is different from the first location;
determine whether a motion vector of one candidate block corresponding to the motion vector resolution of the current block among the plurality of candidate blocks is available;
when the motion vector of the one candidate block is available, obtain a motion vector predictor of the current block using the motion vector of the one candidate block;
upscale a residual motion vector using the information indicating the motion vector resolution of the current block; and
obtain a motion vector of the current block by using the motion vector predictor and the upscaled residual motion vector.
|