CPC H04N 19/52 (2014.11) [H04N 19/44 (2014.11)] | 3 Claims |
1. A method of decoding a motion vector, the method comprising:
obtaining, from a bitstream, information indicating a motion vector resolution of a current block among a plurality of motion vector resolutions;
when information about a previously decoded block indicates first information, determining 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, determining 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;
determining 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, obtaining a motion vector predictor of the current block using the motion vector of the one candidate block;
adjusting the motion vector predictor of the current block using the information indicating the motion vector resolution of the current block; and
obtaining a motion vector of the current block by using the adjusted motion vector predictor and a residual motion vector.
|