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;
generating a prediction block of the current block based on the refined motion vector of the current block; and
reconstructing the current block based on the prediction block,
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,
wherein the refinement of the motion vector of the current block is performed with sub-pel precision.
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 a width or a height of the current block is greater than or equal to a predetermined value.
4. An inter prediction method comprising:
determining a prediction mode of a current block as an inter prediction mode;
generating a motion vector of the current block;
determining motion vector refinement information of the current block based on the motion vector of the current block;
generating a prediction block of the current block based on the refined motion vector of the current block;
reconstructing the current block based on the prediction block; and
encoding the motion vector refinement information,
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,
wherein the refinement of the motion vector of the current block is performed when bidirectional prediction is performed on the current block, and
wherein the refinement of the motion vector of the current block is performed with sub-pel precision.
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:
determining a prediction mode of a current block as an inter prediction mode;
generating a motion vector of the current block;
determining motion vector refinement information of the current block based on the motion vector of the current block;
generating a prediction block of the current block based on the refined motion vector of the current block;
reconstructing the current block based on the prediction block; and
encoding the motion vector refinement information,
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,
wherein the refinement of the motion vector of the current block is performed when bidirectional prediction is performed on the current block, and
wherein the refinement of the motion vector of the current block is performed with sub-pel precision.