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/186 (2014.11); H04N 19/46 (2014.11)] | 3 Claims |
1. An image decoding method performed by a decoding apparatus, the image decoding method comprising:
obtaining image information including prediction mode information and residual information from a bitstream;
deriving an L0 motion vector and an L1 motion vector of a current block based on the prediction mode information;
deriving a minimum sum of absolute difference (SAD) based on the L0 motion vector and the L1 motion vector of the current block by applying a decoder-side motion vector refinement (DMVR) to the current block based on DMVR flag information;
deriving a refined L0 motion vector and a refined L1 motion vector based on the minimum SAD;
deriving prediction samples for the current block based on the refined L0 motion vector and the refined L1 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 DMVR flag information is related to whether to apply DMVR to the current block, and
wherein 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 case where a distance between a current picture and the L0 reference picture is equal to a distance between the current picture and the L1 reference picture, a case where a value of L0 luma weight prediction flag information and a value of L1 luma weight prediction flag information are both equal to 0, a case where a value of L0 chroma weight prediction flag information and a value of L1 chroma weight prediction flag information are both equal to 0, a case where a value of bi-prediction weight index information is equal to 0, and a case where a height of the current block is greater than or equal to 8, the DMVR flag information related to applying the DMVR to the current block is derived.
|