# US 2021/0084325 A1 · Motion Compensation Method and Device Using Bi-directional Optical Flow

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084325 A1
- Document ID: US20210084325A1
- Status: Published application
- Kind: A1
- Application number: 16/642,164
- Filed: 2018-08-29
- Published: 2021-03-18
- Earliest claimed: 2017-08-29
- Assignees: SK Telecom Co., Ltd.
- Applicants: SK Telecom Co., Ltd.
- Inventors: Jeong-yeon LIM; Hyo Song KIM; Hyeong-duck KIM; Se-hoon SON; Jae-seob SHIN; Gyeong-taek LEE; Sun-young LEE
- Web page: https://patentgrep.com/patent/US20210084325A1

## CPC

- H04N 19/52: by predictive encoding
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/127: Prioritisation of hardware or computational resources
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/54: using feature points or meshes
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

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.

## Claims

### Claim 1

A method for motion compensation using a bidirectional optical flow (BIO) in video encoding or decoding, the method comprising:
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.

### Claim 2 (depends on 1)

The method of claim 1, wherein the texture complexity is calculated based on horizontal gradients and vertical gradients of pixels in the first and second reference blocks.

### Claim 3 (depends on 2)

The method of claim 2, wherein the texture complexity is one of a minimum value, a maximum value, or an average between a horizontal complexity calculated based on the horizontal gradients of the respective pixels in the first and second reference blocks and a vertical complexity calculated based on the vertical gradients of the respective pixels in the first and second reference blocks.

### Claim 4 (depends on 2)

The method of claim 2, wherein the generating of a prediction block of the current block comprises:
when the texture complexity is greater than a threshold, generating a prediction block of the current block using the first and second reference blocks according to the BIO process; and
when the texture complexity is less than the threshold, generating a prediction block of the current block using the first and second reference blocks without applying the BIO process.

### Claim 5 (depends on 2)

The method of claim 2, wherein the texture complexity comprises a horizontal complexity calculated based on the horizontal gradients of the pixels in the first and second reference blocks and a vertical complexity calculated based on the vertical gradients of the pixels in the first and second reference blocks.

### Claim 6 (depends on 5)

The method of claim 5, wherein the prediction block of the current block is generated by skipping a BIO process for a direction having a complexity less than a threshold and applying a BIO process for a direction having a complexity greater than the threshold.

### Claim 7

A device for performing motion compensation using a bidirectional optical flow (BIO) in video encoding or decoding, the device comprising:
a reference block generator configured to generate a first reference block by a first motion vector referring to a first reference picture and generate a second reference block by a second motion vector referring to a second reference picture;
a skip determiner configured to calculate a texture complexity of a current block using the first and second reference blocks and determine whether to skip a BIO process by comparing the texture complexity with a threshold; and
a prediction block generator configured to generate 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 determination of the skip determiner.

### Claim 8 (depends on 7)

The device of claim 7, wherein the skip determiner calculates the texture complexity based on horizontal gradients and vertical gradients of pixels in the first and second reference blocks.

### Claim 9 (depends on 8)

The device of claim 8, wherein the texture complexity is one of a minimum value, a maximum value, or an average between a horizontal complexity calculated based on the horizontal gradients of the respective pixels in the first and second reference blocks and a vertical complexity calculated based on the vertical gradients of the respective pixels in the first and second reference blocks.

### Claim 10 (depends on 8)

The device of claim 8, wherein the prediction block generator is configured to:
generate, when the texture complexity is greater than a threshold, a prediction block of the current block using the first and second reference blocks according to the BIO process; and
generate, when the texture complexity is less than the threshold, a prediction block of the current block using the first and second reference blocks without applying the BIO process.

### Claim 11 (depends on 8)

The device of claim 8, wherein the texture complexity comprises a horizontal complexity calculated based on the horizontal gradients of the respective pixels in the first and second reference blocks and a vertical complexity calculated based on the vertical gradients of the respective pixels in the first and second reference blocks.

### Claim 12 (depends on 11)

The device of claim 11, wherein the prediction block generator generates the prediction block of the current block by skipping a BIO process for a direction having a complexity less than a threshold and applying a BIO process for a direction having a complexity greater than the threshold.
