Disclosed herein is a method for adaptive bidirectional optical flow estimation for inter-screen prediction compensation during video encoding. The method aims to reduce complexity and/or cost of bidirectional optical flow (BIO) at a pixel level or a subblock level.
where bk denotes a k-th subblock in the current block, and Ω(x, y) denotes a mask for a pixel having coordinates (x, y) in the k-th subblock. s1 to s6, which are used for calculation of an optical flow (vx, vy), is modified as in Equation 13.