Non-Patent Document 2: VCEG-AZ05 (E. Alshina, et al., Known tools performance investigation for next generation video coding, ITU-T SG 16 Question 6, Video Coding Experts Group (VCEG), 52nd Meeting: 19-26 Jun. 2015, Warsaw, Poland)
It is an object of the present disclosure to reduce degradation of an image quality while reducing computation complexity of a bidirectional optical flow (BIO).
In accordance with one aspect of the present disclosure, provided is a method for motion compensation using a bidirectional optical flow (BIO) in video encoding or decoding, the method including generating a first reference block by a first motion vector referring to a first reference picture and generating a second reference block by a second motion vector referring to a second reference picture; calculating a texture complexity of a current block using the first and second reference blocks; and generating a prediction block of the current block based on the first and second reference blocks by selectively applying or skipping the BIO process based on the texture complexity.