Method and device for image coding using motion vector
According to embodiments of the present document, symmetric motion vector differences (SMVDs) and merge mode motion vector differences (MMVDs) according to an inter prediction mode may be performed on the basis of reference picture types and, particularly, short term reference pictures may be used. Therefore, prediction performance and coding efficiency in the inter prediction mode can be improved.
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining prediction related information including inter prediction type information and symmetric motion vector differences (SMVD) flag information from a bitstream;
determining a prediction mode for a current block as an inter prediction mode using SMVD based on a value of the SMVD flag information being 1;
deriving motion information of the current block based on the SMVD; and
generating predicted samples of the current block based on the motion information,
generating reconstructed samples of the current block based on the predicted samples and residual samples of the current block,
wherein the prediction related information includes the SMVD flag information based on the inter prediction type information representing bi-prediction is applied to the current block,
wherein the value of the SMVD flag information being 1 represents that the SMVD is applied to the current block,
wherein at least one reference picture index indicating a short-term reference picture among reference picture indices is derived as the motion information, and
wherein the at least one reference picture index is derived based on picture order count (POC) difference between the short-term reference picture and a current picture.
2. An image encoding method performed by an encoding apparatus, the method comprising:
determining a prediction mode for a current block as an inter prediction mode using symmetric motion vector differences (SMVD);
deriving motion information of the current block based on the SMVD;
generating predicted samples of the current block based on the motion information;
generating prediction related information including inter prediction type information and SMVD flag information; and
encoding the prediction related information including the inter prediction type information and the SMVD flag information,
wherein the prediction related information includes the SMVD flag information based on the inter prediction type information representing bi-prediction is applied to the current block,
wherein a value of the SMVD flag information being 1 represents that the SMVD is applied to the current block,
wherein at least one reference picture index indicating a short-term reference picture among reference picture indices is derived as the motion information, and
wherein the at least one reference picture index is derived based on picture order count (POC) difference between the short-term reference picture and a current picture.
3. A transmission method of data for an image, the method comprising:
obtaining a bitstream for the image, wherein the bitstream is generated based on determining a prediction mode for a current block as an inter prediction mode using symmetric motion vector differences (SMVD), deriving motion information of the current block based on the SMVD, generating predicted samples of the current block based on the motion information, generating prediction related information including inter prediction type information and SMVD flag information, and encoding the prediction related information including the inter prediction type information and the SMVD flag information; and
transmitting the data comprising the bitstream,
wherein the prediction related information includes the SMVD flag information based on the inter prediction type information representing bi-prediction is applied to the current block,
wherein a value of the SMVD flag information being 1 represents that the SMVD is applied to the current block,
wherein at least one reference picture index indicating a short-term reference picture among reference picture indices is derived as the motion information, and
wherein the at least one reference picture index is derived based on picture order count (POC) difference between the short-term reference picture and a current picture.