CPC H04N 19/52 (2014.11) [H04N 19/105 (2014.11); H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/577 (2014.11); H04N 19/70 (2014.11)] | 17 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 refined L0 motion vector and a refined L1 motion vector based on whether a decoder-side motion vector refinement (DMVR) is applied to the current block;
deriving prediction samples for the current block based on L0 prediction using the refined L0 motion vector and L1 prediction using 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 image information includes bi-prediction weight index information, luma weight L0 flag information and luma weight L1 flag information,
wherein whether the DMVR is applied to the current block is determined based on a value of bi-prediction weight index information being equal to 0, and a value of the luma weight L0 flag information and a value of the luma weight L1 flag information being both equal to 0,
wherein the prediction samples for the current block are derived based on whether a bi-directional optical flow (BDOF) is applied to the current block, and
wherein whether the BDOF is applied to the current block is determined based on the value of the bi-prediction weight index information being equal to 0, and the value of the luma weight L0 flag information and the value of the luma weight L1 flag information being both equal to 0.
|