Method and device for image encoding/decoding on basis of asymmetric sub-block
The present invention relates to a video encoding/decoding method and apparatus. The video decoding method according to the present invention may comprise dividing a coding unit into a plurality of sub-units according to a block division structure and performing decoding based on the sub-unit, wherein the block division structure is a block division structure in which division is performed so as to include at least one sub-unit having a predetermined block form other than square and rectangle forms.
1. A method of decoding an image, the method comprising:
determining a merge list of a current block for a merge mode;
determining a first initial motion vector and a second initial motion vector of the current block based on the merge list of the current block;
obtaining, based on a minimum SAD (Sum of Absolute Difference) between a first block in a L0 reference picture and a second block in a L1 reference picture, a first refined motion vector and a second refined motion vector of the current block by refining the first initial motion vector and the second initial motion vector; and
predicting the current block based on the first refined motion vector and the second refined motion vector,
wherein the first block and the second block is determined based on the first initial motion vector and the second initial motion vector.
2. The method of claim 1 , wherein the first initial motion vector and the second initial motion vector are respectively determined for the L0 reference picture and the L1 reference picture.
3. The method of claim 2 , wherein a prediction direction of the L0 reference picture is opposite to a prediction direction of the L1 reference picture.
4. The method of claim 1 , wherein the current block is predicted in unit of a sub-block.
5. A method of encoding an image, the method comprising:
determining a merge list of a current block for a merge mode;
determining a first initial motion vector and a second initial motion vector of the current block based on the merge list of the current block;
obtaining, based on a minimum SAD (Sum of Absolute Difference) between a first block in a L0 reference picture and a second block in a L1 reference picture, a first refined motion vector and a second refined motion vector of the current block by refining the first initial motion vector and the second initial motion vector; and
predicting the current block based on the first refined motion vector and the second refined motion vector,
wherein the first block and the second block is determined based on the first initial motion vector and the second initial motion vector.
6. The method of claim 5 , wherein the first initial motion vector and the second initial motion vector are respectively determined for the L0 reference picture and the L1 reference picture.
7. The method of claim 6 , wherein a prediction direction of the L0 reference picture is opposite to a prediction direction of the L1 reference picture.
8. The method of claim 5 , wherein the current block is predicted in unit of a sub-block.
9. A non-transitory computer readable recording medium storing a bitstream generated by an encoding method, the method comprising:
determining a merge list of a current block for a merge mode;
determining a first initial motion vector and a second initial motion vector of the current block based on the merge list of the current block;
obtaining, based on a minimum SAD (Sum of Absolute Difference) between a first block in a L0 reference picture and a second block in a L1 reference picture, a first refined motion vector and a second refined motion vector of the current block by refining the first initial motion vector and the second initial motion vector; and
predicting the current block based on the first refined motion vector and the second refined motion vector,
wherein the first block and the second block is determined based on the first initial motion vector and the second initial motion vector.