Method and apparatus for encoding/decoding video signal
A video encoding/decoding apparatus according to the present invention acquires motion vector refinement information, performs motion compensation on the basis of a motion vector of a current block, refines the motion vector of the current block using at least one or both of the motion vector refinement information and the output of the motion compensation, and performs motion compensation using the refined motion vector.
1. An inter prediction method comprising:
acquiring motion vector refinement information of a current block;
generating a motion vector of the current block;
refining the motion vector of the current block, based on the motion vector refinement information; and
performing motion compensation on the current block using the refined motion vector, and
wherein the refined motion vector of the current block is derived by using a reconstructed block which is previously decoded from the current block,
wherein the refinement of the motion vector of the current block is performed based on a block size of the current block, and
wherein the refinement of the motion vector of the current block is performed when bidirectional prediction is performed on the current block.
2. The inter prediction method of claim 1 , wherein the refined motion vector of the current block is used to determine a motion vector of a picture to be subsequently decoded.
3. The inter prediction method of claim 1 , wherein the refinement of the motion vector is performed when the width or height of the current block is greater than or equal to a predetermined value.
4. An inter prediction method comprising:
generating a motion vector of a current block;
determining motion vector refinement information of the current block based on the motion vector of the current block; and
encoding the motion vector refinement information, and
wherein the motion vector refinement information is used to refine the motion vector of the current block in a decoding process,
wherein the refined motion vector of the current block in the decoding process is derived by using a reconstructed block which is previously decoded from the current block in the decoding process,
wherein the refinement of the motion vector of the current block in the decoding process is performed based on a block size of the current block, and
wherein the refinement of the motion vector of the current block is performed when bidirectional prediction is performed on the current block.
5. A non-transitory computer-readable recording medium storing a bitstream that is generated by an image encoding method with an encoding apparatus, wherein the image encoding method comprises:
generating a motion vector of a current block;
determining motion vector refinement information of the current block based on the motion vector of the current block; and
encoding the motion vector refinement information, and
wherein the motion vector refinement information is used to refine the motion vector of the current block in a decoding process,
wherein the refined motion vector of the current block in the decoding process is derived by using a reconstructed block which is previously decoded from the current block in the decoding process,
wherein the refinement of the motion vector of the current block in the decoding process is performed based on a block size of the current block, and
wherein the refinement of the motion vector of the current block is performed when bidirectional prediction is performed on the current block.