Method and apparatus for encoding/decoding an image signal
View Patent ↗Disclosed are an image encoding/decoding method and apparatus. The image decoding method includes decoding coding mode information of a current coding block, dividing the current coding block into at least one prediction block, and generating prediction samples of the at least one prediction block on the basis of the decoded coding mode, in which the coding mode information is information indicating any one mode among intra mode, inter mode, and hybrid mode.
1. An image decoding method comprising:
deriving an initial motion vector of a current block from a merge candidate list including a plurality of merge candidates, the initial motion vector including an L0 initial motion vector and an L1 initial motion vector, the plurality of merge candidates being obtained based on neighboring blocks of the current block;
deriving a final motion vector of the current block by modifying the initial motion vector of the current block based on a predetermined offset vector, the final motion vector including an L0 final motion vector and an L1 final motion vector, the predetermined offset vector being obtained based on a position where a difference between an L0 block in an L0 reference picture and an L1 block in an L1 reference picture is minimum; and
generating a prediction block of the current block based on the final motion vector of the current block.
2. The method of claim 1 , wherein,
the prediction block is generated by averaging an L0 prediction block indicated by the L0 final motion vector and an L1 prediction block indicated by the L1 final motion vector.
3. The method of claim 1 , wherein,
whether to modify the initial motion vector of the current block based on the predetermined offset vector is adaptively determined based on a flag signaled from a bitstream.
4. The method of claim 1 , wherein,
the modification of the initial motion vector of the current block is performed in response to an inter prediction mode of the current block being a merge mode the DMID mode.
5. The method of claim 1 , wherein,
the current block is divided into sub-blocks, and
the final motion vector of the current block is derived in units of the sub-blocks, using the initial motion vector of the current block.
6. An image encoding method comprising:
deriving an initial motion vector of a current block from a merge candidate list including a plurality of merge candidates, the initial motion vector including an L0 initial motion vector and an L1 initial motion vector, the plurality of merge candidates being obtained based on neighboring blocks of the current block;
deriving a final motion vector of the current block by modifying the initial motion vector of the current block based on a predetermined offset vector, the final motion vector including an L0 final motion vector and an L1 final motion vector, the predetermined offset vector being obtained based on a position where a difference between an L0 block in an L0 reference picture and an L1 block in an L1 reference picture is minimum; and
generating a prediction block of the current block based on the final motion vector of the current block.
7. The method of claim 6 , wherein,
the prediction block is generated by averaging an L0 prediction block indicated by the L0 final motion vector and an L1 prediction block indicated by the L1 final motion vector.
8. The method of claim 6 , wherein,
a flag is encoded, into a bitstream, to determine whether to modify the initial motion vector of the current block based on the predetermined offset vector.
9. The method of claim 6 , wherein,
the modification of the initial motion vector of the current block is performed in response to an inter prediction mode of the current block being a merge mode the DMID mode.
10. The method of claim 6 , wherein,
the current block is divided into sub-blocks, and
the final motion vector of the current block is derived in units of the sub-blocks, using the initial motion vector of the current block.
11. A non-transitory computer-readable recording medium storing a bitstream generated by an encoding method,
the method comprising:
deriving an initial motion vector of a current block from a merge candidate list including a plurality of merge candidates, the initial motion vector including an L0 initial motion vector and an L1 initial motion vector, the plurality of merge candidates being obtained based on neighboring blocks of the current block;
deriving a final motion vector of the current block by modifying the initial motion vector of the current block based on a predetermined offset vector, the final motion vector including an L0 final motion vector and an L1 final motion vector, the predetermined offset vector being obtained based on a position where a difference between an L0 block in an L0 reference picture and an L1 block in an L1 reference picture is minimum; and
generating a prediction block of the current block based on the final motion vector of the current block.