Patent ID: 11917160
Assignee: LG ELECTRONICS INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 7:
8. An image encoding method performed by an encoding apparatus, the method comprising:
deriving a prediction mode for a current block;
deriving a motion vector of the current block based on the prediction mode;
deriving prediction samples for the current block based on the motion vector;
deriving residual samples based on the prediction samples;
generating residual information based on the residual samples; and
encoding image information including information on the prediction mode and the residual information,
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.