Method and an apparatus for processing a video signal
The present invention includes determining a motion vector candidate set of a current block, obtaining motion vector indication information of a current block from a video signal, extracting a motion vector candidate corresponding to a motion vector indication information from a motion vector candidate set, determining a predicted motion vector of a current block based on the extracted motion vector candidate, and performing motion compensation on a current block based on a predicted motion vector.
1. A method of decoding a video signal with a decoding apparatus, comprising:
determining, with the decoding apparatus, a motion vector candidate set of a current block, the motion vector candidate set including a plurality of motion vector candidates, the plurality of motion vector candidates including at least one of a spatial motion vector and a temporal motion vector;
obtaining, with the decoding apparatus, motion vector indication information of the current block from the video signal, the motion vector indication information indicating a motion vector candidate used for inter prediction of the current block among the plurality of motion vector candidates;
extracting, with the decoding apparatus, the motion vector candidate corresponding to the motion vector indication information from the motion vector candidate set;
determining, with the decoding apparatus, a predicted motion vector of the current block based on the extracted motion vector candidate; and
performing, with the decoding apparatus, motion compensation on the current block based on the predicted motion vector,
wherein the determining the motion vector candidate set comprises:
scaling, with the decoding apparatus, a motion vector of a neighboring block by considering a temporal distance between a current picture including the current block and a reference picture of the current block; and
setting, with the decoding apparatus, the scaled motion vector to the spatial motion vector.
2. The method of claim 1 , wherein the temporal motion vector is a motion vector of a co-located block with the current block in a frame other than the current picture including the current block.