# US 2021/0289224 A1 · Inter prediction method and related apparatus

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

- Number: US 2021/0289224 A1
- Document ID: US20210289224A1
- Status: Published application
- Kind: A1
- Application number: 17/337,556
- Filed: 2021-06-03
- Published: 2021-09-16
- Earliest claimed: 2018-12-03
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Haitao YANG; Fan MU; Lian ZHANG; Xiang MA
- Web page: https://patentgrep.com/patent/US20210289224A1

## CPC

- H04N 19/51: Motion estimation or motion compensation
- H04N 19/52: by predictive encoding
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/463: by compressing encoding parameters before transmission
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

This application provides an inter prediction method and a related apparatus. The method includes: parsing a bitstream to determine prediction information of a to-be-processed picture block, where when the prediction information indicates that a prediction direction of the to-be-processed picture block is bidirectional prediction, the bitstream does not include target identification information, where the target identification information is used to indicate to perform local illumination compensation LIC on the to-be-processed picture block; and obtaining a prediction value of the to-be-processed picture block based on the prediction information. According to the foregoing technical solutions, a video decoding speed can be accelerated without greatly affecting video quality.

## Claims

### Claim 1

An inter prediction method, wherein the method comprises:
parsing a bitstream to determine prediction information of a to-be-processed picture block, wherein when the prediction information indicates that a prediction direction of the to-be-processed picture block is bidirectional prediction, the bitstream does not comprise target identification information, and wherein the target identification information indicates to perform local illumination compensation (LIC) on the to-be-processed picture block; and
obtaining a prediction value of the to-be-processed picture block based on the prediction information.

### Claim 2 (depends on 1)

The method according to claim 1, wherein in response to the prediction information of the to-be-processed picture block indicating that a prediction mode of the to-be-processed picture block is a merge mode, before obtaining the prediction value of the to-be-processed picture block based on the prediction information, the method further comprises:
determining at least one first information group, wherein each first information group comprises a motion vector, a prediction direction, and an LIC identifier; and
in response to a quantity of the at least one first information group being less than a target preset value, determining at least one second information group based on the at least one first information group, wherein each second information group comprises a motion vector, a prediction direction, and an LIC identifier, and wherein
obtaining the prediction value of the to-be-processed picture block based on the prediction information comprises:
obtaining the prediction value of the to-be-processed picture block based on the prediction information, the at least one first information group, and the at least one second information group.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the at least one first information group comprises a first selection information group and a second selection information group, the at least one second information group comprises a first synthetic information group, and determining the at least one second information group based on the at least one first information group comprises:
using an average value of a motion vector in the first selection information group and a motion vector in the second selection information group as a motion vector in the first synthetic information group.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the prediction direction comprises either the bidirectional prediction or unidirectional prediction, the unidirectional prediction comprises first-directional prediction and second-directional prediction, the at least one first information group comprises a first selection information group and a second selection information group, the at least one second information group comprises a first synthetic information group, and determining the at least one second information group based on the at least one first information group comprises:
determining a prediction direction in the first synthetic information group based on a prediction direction in the first selection information group and a prediction direction in the second selection information group.

### Claim 5 (depends on 4)

The method according to claim 4, wherein in response to the LIC being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a first value, or in response to the LIC not being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a second value, and wherein
determining the at least one second information group based on the at least one first information group comprises one of:
in response to the prediction direction in the first synthetic information group being the bidirectional prediction, determining that an LIC identifier in the first synthetic information group is the second value;
in response to the prediction direction in the first synthetic information group being the unidirectional prediction, and an LIC identifier in the first selection information group and an LIC identifier in the second selection information group each being the second value, determining that an LIC identifier in the first synthetic information group is the second value; or
in response to the prediction direction in the first synthetic information group being the unidirectional prediction, and at least one of an LIC identifier in the first selection information group or an LIC identifier in the second selection information group being the first value, determining that an LIC identifier in the first synthetic information group is the first value.

### Claim 6 (depends on 1)

The method according to claim 1, wherein in response to the prediction information of the to-be-processed picture block indicating that a prediction mode of the to-be-processed picture block is a merge mode, before obtaining the prediction value of the to-be-processed picture block based on the prediction information, the method further comprises:
determining at least one third information group, wherein each third information group comprises a motion vector and an LIC identifier; and
in response to a quantity of the at least one third information group being less than a target preset value, determining at least one fourth information group based on the at least one third information group, wherein each fourth information group comprises a motion vector and an LIC identifier, and wherein
obtaining the prediction value of the to-be-processed picture block based on the prediction information comprises:
obtaining the prediction value of the to-be-processed picture block based on the prediction information, the at least one third information group, and the at least one fourth information group.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the prediction direction comprises either the bidirectional prediction or unidirectional prediction, the unidirectional prediction comprises first-directional prediction and second-directional prediction, the at least one third information group comprises a third selection information group and a fourth selection information group, the at least one fourth information group comprises a second synthetic information group, and determining the at least one fourth information group based on the at least one third information group comprises:
using a motion vector that is of the first-directional prediction and that corresponds to the third selection information group as a motion vector that is of the first-directional prediction and that corresponds to the second synthetic information group, and using a motion vector that is of the second-directional prediction and that corresponds to the fourth selection information group as a motion vector that is of the second-directional prediction and that corresponds to the second synthetic information group; or
using a motion vector that is of the second-directional prediction and that corresponds to the third selection information group as a motion vector that is of the first-directional prediction and that corresponds to the second synthetic information group, and using a motion vector that is of the first-directional prediction and that corresponds to the fourth selection information group as a motion vector that is of the second-directional prediction and that corresponds to the second synthetic information group.

### Claim 8 (depends on 6)

The method according to claim 6, wherein in response to the LIC being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a first value, or in response to the LIC not being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a second value, and wherein
determining the at least one fourth information group based on the at least one third information group comprises: determining that an LIC identifier in each of the at least one fourth information group is the second value.

### Claim 9 (depends on 5)

The method according to claim 5, wherein the at least one first information group comprises a fifth selection information group, and determining the at least one first information group comprises:
determining a target picture block in a reconstructed picture frame temporarily adjacent to a picture frame in which the to-be-processed picture block is located;
determining a prediction direction in the fifth selection information group based on the target picture block; and
in response to the prediction direction in the fifth selection information group being the bidirectional prediction, determining that an LIC identifier in the fifth selection information group is the second value.

### Claim 10 (depends on 5)

The method according to claim 5, wherein in response to a sum of the quantity of the at least one first information group and a quantity of the at least one second information group being less than the target preset value, before obtaining the prediction value of the to-be-processed picture block based on the prediction information, the method further comprises:
determining at least one fifth information group, wherein an LIC identifier in the fifth information group is the second value, and a sum of the quantity of the at least one first information group, the quantity of the at least one second information group, and a quantity of the at least one fifth information group is equal to the target preset value, and wherein
obtaining the prediction value of the to-be-processed picture block based on the prediction information comprises:
obtaining the prediction value of the to-be-processed picture block based on the prediction information, the at least one first information group, the at least one second information group, and the at least one fifth information group.

### Claim 11 (depends on 8)

The method according to claim 8, wherein in response to a sum of a quantity of the at least one third information group and a quantity of the at least one fourth information group being less than the target preset value, before obtaining the prediction value of the to-be-processed picture block based on the prediction information, the method further comprises:
determining at least one sixth information group, wherein an LIC identifier in the sixth information group is the second value, and a sum of the quantity of the at least one third information group, the quantity of the at least one fourth information group, and a quantity of the at least one sixth information group is equal to the target preset value, and wherein
obtaining the prediction value of the to-be-processed picture block based on the prediction information comprises:
obtaining the prediction value of the to-be-processed picture block based on the prediction information, the at least one third information group, the at least one fourth information group, and the at least one sixth information group.

### Claim 12

A decoding apparatus, comprising:
at least one processor;
a non-transitory computer-readable storage medium coupled to the at least one processor and storing programming instructions for execution by the at least one processor, wherein the programming instructions instruct the at least one processor to:
obtain a bitstream;
parse a bitstream to determine prediction information of a to-be-processed picture block, wherein when the prediction information indicates that a prediction mode of the to-be-processed picture block is inter prediction and a prediction direction of the to-be-processed picture block is bidirectional prediction, the bitstream does not comprise target identification information, and wherein the target identification information indicates to perform local illumination compensation (LIC) on the to-be-processed picture block; and
obtain a prediction value of the to-be-processed picture block based on the prediction information.

### Claim 13 (depends on 12)

The decoding apparatus according to claim 12, wherein the programming instructions further instruct the at least one processor to:
in response to the prediction information of the to-be-processed picture block indicating that the prediction mode of the to-be-processed picture block is a merge mode, determine at least one first information group, wherein each first information group comprises a motion vector, a prediction direction, and an LIC identifier;
in response to a quantity of the at least one first information group being less than a target preset value, determine at least one second information group based on the at least one first information group, wherein each second information group comprises a motion vector, a prediction direction, and an LIC identifier; and
obtain the prediction value of the to-be-processed picture block based on the prediction information, the at least one first information group, and the at least one second information group.

### Claim 14 (depends on 13)

The decoding apparatus according to claim 13, wherein the at least one first information group comprises a first selection information group and a second selection information group, the at least one second information group comprises a first synthetic information group, and the programming instructions further instruct the at least one processor to:
use an average value of a motion vector in the first selection information group and a motion vector in the second selection information group as a motion vector in the first synthetic information group.

### Claim 15 (depends on 13)

The decoding apparatus according to claim 13, wherein the prediction direction comprises either the bidirectional prediction or unidirectional prediction, the unidirectional prediction comprises first-directional prediction and second-directional prediction, the at least one first information group comprises a first selection information group and a second selection information group, the at least one second information group comprises a first synthetic information group, and the programming instructions further instruct the at least one processor to:
determine a prediction direction in the first synthetic information group based on a prediction direction in the first selection information group and a prediction direction in the second selection information group.

### Claim 16 (depends on 15)

The decoding apparatus according to claim 15, wherein in response to the LIC being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a first value, or in response to the LIC not being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a second value, and wherein
the programming instructions further instruct the at least one processor to:
in response to determining that the prediction direction in the first synthetic information group is the bidirectional prediction, determine that an LIC identifier in the first synthetic information group is the second value;
in response to determining that the prediction direction in the first synthetic information group is the unidirectional prediction, and an LIC identifier in the first selection information group and an LIC identifier in the second selection information group each are the second value, determine that an LIC identifier in the first synthetic information group is the second value; or
in response to determining that the prediction direction in the first synthetic information group is the unidirectional prediction, and at least one of an LIC identifier in the first selection information group or an LIC identifier in the second selection information group is the first value, determine that an LIC identifier in the first synthetic information group is the first value.

### Claim 17 (depends on 12)

The decoding apparatus according to claim 12, wherein in response to the prediction information of the to-be-processed picture block indicating that the prediction mode of the to-be-processed picture block is a merge mode, the programming instructions further instruct the at least one processor to:
determine at least one third information group, wherein each third information group comprises a motion vector and an LIC identifier;
in response to a quantity of the at least one third information group being less than a target preset value, determine at least one fourth information group based on the at least one third information group, wherein each fourth information group comprises a motion vector and an LIC identifier; and
obtain the prediction value of the to-be-processed picture block based on the prediction information, the at least one third information group, and the at least one fourth information group.

### Claim 18 (depends on 17)

The decoding apparatus according to claim 17, wherein the prediction direction comprises either the bidirectional prediction or unidirectional prediction, the unidirectional prediction comprises first-directional prediction and second-directional prediction, the at least one third information group comprises a third selection information group and a fourth selection information group, the at least one fourth information group comprises a second synthetic information group, and the programming instructions further instruct the at least one processor to:
use a motion vector that is of the first-directional prediction and that corresponds to the third selection information group as a motion vector that is of the first-directional prediction and that corresponds to the second synthetic information group, and use a motion vector that is of the second-directional prediction and that corresponds to the fourth selection information group as a motion vector that is of the second-directional prediction and that corresponds to the second synthetic information group; or
use a motion vector that is of the second-directional prediction and that corresponds to the third selection information group as a motion vector that is of the first-directional prediction and that corresponds to the second synthetic information group, and use a motion vector that is of the first-directional prediction and that corresponds to the fourth selection information group as a motion vector that is of the second-directional prediction and that corresponds to the second synthetic information group.

### Claim 19 (depends on 17)

The decoding apparatus according to claim 17, wherein in response to the LIC being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a first value, or in response to the LIC not being performed on the to-be-processed picture block, an LIC identifier of the to-be-processed picture block is a second value, and the programming instructions further instruct the at least one processor to:
determine that an LIC identifier in each of the at least one fourth information group is the second value.

### Claim 20 (depends on 16)

The decoding apparatus according to claim 16, wherein the at least one first information group comprises a fifth selection information group, and the programming instructions further instruct the at least one processor to:
determine a target picture block in a reconstructed picture frame temporarily adjacent to a picture frame in which the to-be-processed picture block is located;
determine a prediction direction in the fifth selection information group based on the target picture block; and
in response to the prediction direction in the fifth selection information group being the bidirectional prediction, determine that an LIC identifier in the fifth selection information group is the second value.
