Patent attributes
A video decoding method includes: deriving an L0 motion vector and an L1 motion vector for a current block; deriving a refined L0 motion vector and a refined L1 motion vector, by applying DMVR to the current block based on DMVR flag information; deriving L0 prediction samples of the current block based on the refined L0 motion vector and L1 prediction samples of the current block based on the refined L1 motion vector; deriving prediction samples for the current block based on the L0 prediction samples and the L1 prediction samples, by applying BDOF to the current block based on BDOF flag information; and generating reconstruction samples for the current block based on the prediction samples, in which the DMVR flag information is derived based on a predetermined DMVR application condition, and the BDOF flag information is derived based on a predetermined BDOF application condition.