CPC H04N 19/137 (2014.11) [H04N 19/105 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/46 (2014.11)] | 14 Claims |
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining information on a prediction mode and residual information from a bitstream;
deriving a motion vector of a current block based on the information on the prediction mode;
deriving prediction samples for the current block based on the motion vector;
deriving residual samples for the current block based on the residual information; and
generating reconstructed samples for the current block based on the prediction samples and the residual samples,
wherein the deriving of the motion vector includes determining whether to apply a decoder-side motion vector refinement (DMVR) to the motion vector of the current block, based on a case where bi-prediction performed based on an L0 reference picture and an L1 reference picture is applied to the current block, a distance between a current picture and the L0 reference picture and a distance between the current picture and the L1 reference picture are equal, a value of merge mode with motion vector difference (MMVD) flag information related to whether or not MMVD is applied to the current block is equal to 0, and a value of bi-prediction weight index information of the current block is equal to 0,
wherein the deriving of the prediction samples includes determining whether to apply Bi-directional optical flow (BDOF) to the prediction samples, based on a case where the bi-prediction performed based on the L0 reference picture and the L1 reference picture is applied to the current block, a distance between the current picture and the L0 reference picture and a distance between the current picture and the L1 reference picture are equal, and a value of the bi-prediction weight index information of the current block is equal to 0.
|