# US 2024/0187638 A1 · Picture prediction method and picture prediction apparatus

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

- Number: US 2024/0187638 A1
- Document ID: US20240187638A1
- Status: Published application
- Kind: A1
- Application number: 18/494,259
- Filed: 2023-10-25
- Published: 2024-06-06
- Earliest claimed: 2015-07-03
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Sixin LIN; Ruopu HUANG; Haitao YANG
- Web page: https://patentgrep.com/patent/US20240187638A1

## CPC

- H04N 19/52: by predictive encoding
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/513: Processing of motion vectors
- H04N 19/523: with sub-pixel accuracy
- H04N 19/537: Motion estimation other than block-based
- H04N 19/56: Motion estimation with initialisation of the vector search, e.g. estimating a good candidate to initiate a search
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A picture prediction method includes: determining motion vectors of W control points in a current picture block; obtaining motion vectors of P pixel units of the current picture block by using a motion model and the motion vectors of the W control points, where precision of the determined motion vectors of the W control points is 1/n of pixel precision, precision of the motion vector of each of the P pixel units is 1/N of the pixel precision, the motion vector of each of the P pixel units is used to determine a corresponding reference pixel unit in a reference picture of a corresponding pixel unit; and performing interpolation filtering on a pixel of the corresponding reference pixel unit by using an interpolation filter with a phase of Q, to obtain a predicted pixel value of each of the P pixel units.

## Claims

### Claim 1

A video decoding method, comprising:
obtaining a predicted residual of a current picture block and differences of motion vectors with precision of 1/n of a pixel precision from a video bitstream;
determining motion vectors of W control points of the current picture block, wherein the motion vectors of the W control points are determined based on predictors with precision of 1/n of the pixel precision and the differences of motion vectors with precision of 1/n of the pixel precision;
obtaining, by calculation, motion vectors of P pixel units of the current picture block by using a motion model and the motion vectors of the W control points, wherein, precision of the motion vector of each of the P pixel units is 1/N of the pixel precision, the motion vector of each of the P pixel units is used to determine a corresponding reference pixel unit in a reference picture of a corresponding pixel unit, W, n, and N are integers greater than 1, N is greater than n. and P is a positive integer;
performing interpolation filtering on a pixel of the corresponding reference pixel unit by using an interpolation filter with Q phases, to obtain a predicted pixel value of each of the P pixel units, wherein Q is an integer greater than n, and
generating reconstructed pixel values of the current picture block based on the predicted residual of the current picture block and predicted pixel values of the current picture block, wherein the predicted pixel values of the current picture block comprise the predicted pixel values of the P pixel units of the current picture block.

### Claim 2 (depends on 1)

The method according to claim 1, wherein a value of N is a preset fixed value, and Q is less than or equal to N; or n=4 and Q=N=16.

### Claim 3 (depends on 1)

The method according to claim 1, wherein a horizontal component or a vertical component of one of the motion vectors of the W control points is amplified N times in the motion model, or a component difference between motion vectors of any two of the W control points is amplified N times in the motion model.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the performing interpolation filtering comprises:
obtaining, by calculation, a phase of each of the P pixel units by using the motion vector of each of the P pixel units;
determining, based on the phase of each of the P pixel units, the interpolation filter that is corresponding to the pixel unit, wherein a filter coefficient used by the interpolation filter is corresponding to the phase; and
performing interpolation filtering on the pixel of the corresponding pixel unit, in the reference picture, of each pixel unit by using the determined interpolation filter that is corresponding to the pixel unit.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the phase comprises a horizontal phase and a vertical phase; and the determining the interpolation filter with the phase of Q comprises:
determining, based on the horizontal phase of each pixel unit, a horizontal interpolation filter that is corresponding to the pixel unit; and
determining, based on the vertical phase of each pixel unit, a vertical interpolation filter that is corresponding to the pixel unit, wherein a filter coefficient used by the horizontal interpolation filter is corresponding to the horizontal phase, and a filter coefficient used by the vertical interpolation filter is corresponding to the vertical phase.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the performing interpolation filtering comprises:
performing horizontal interpolation filtering on a pixel of a corresponding reference pixel unit, in the reference picture, of a pixel unit i by using a determined horizontal interpolation filter that is corresponding to the pixel unit i, to obtain a horizontal interpolation filtering result; and
performing vertical interpolation filtering on the horizontal interpolation filtering result by using a determined vertical interpolation filter that is corresponding to the pixel unit i, to obtain a predicted pixel value of the pixel unit i, wherein the pixel unit i is any one of the P pixel units.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the performing interpolation filtering comprises:
performing vertical interpolation filtering on a pixel of a corresponding pixel unit, in the reference picture, of a pixel unit j by using a determined vertical interpolation filter that is corresponding to the pixel unit j, to obtain a vertical interpolation filtering result; and
performing horizontal interpolation filtering on the vertical interpolation filtering result by using a determined horizontal interpolation filter that is corresponding to the pixel unit j, to obtain a predicted pixel value of the pixel unit j, wherein the pixel unit j is any one of the P pixel units.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the motion model is a translational motion model, an affine motion model, a rotational motion model, a parabolic motion model, a shearing motion model, a zooming motion model, a perspective motion model, or a bilinear motion model.

### Claim 9 (depends on 1)

The method according to claim 1, wherein W is equal to 2 and the motion model is represented as follows:
{
v
Nx
=
(
(
v
1
⁢
x
-
v
0
⁢
x
)
×
N
L
⁢
x
-
(
v
1
⁢
y
-
v
0
⁢
y
)
×
N
L
⁢
y
+
Nv
0
⁢
x
)
/
n
v
Ny
=
(
(
v
1
⁢
y
-
v
0
⁢
y
)
×
N
L
⁢
x
+
(
v
1
⁢
x
-
v
0
⁢
x
)
×
N
L
⁢
y
+
Nv
0
⁢
y
)
/
n
;
or
⁢
{
v
Nx
=
(
v
1
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
L
⁢
x
+
(
v
1
⁢
y
-
v
0
⁢
y
)
×
(
N
/
n
)
L
⁢
y
+
(
N
/
n
)
⁢
v
ox
v
Ny
=
(
v
1
⁢
y
-
v
0
⁢
y
)
×
(
N
/
n
)
L
⁢
x
+
(
v
1
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
L
⁢
y
+
(
N
/
n
)
⁢
v
0
⁢
y
,
wherein
L represents a width or a height of the current picture block, (v0x,v0y) and (v1x,v1y) represent motion vectors, whose precision is 1/n of the pixel precision, of two control points, vNx represents a horizontal component of a motion vector, whose precision is 1/N of the pixel precision, of a pixel unit with coordinates of (x, y) in the current picture block, and vNy represents a vertical component of the motion vector, whose precision is 1/N of the pixel precision, of the pixel unit with the coordinates of (x, y) in the current picture block.

### Claim 10 (depends on 1)

The method according to claim 1, wherein W is equal to 3 and the motion model is represented as follows:
{
v
Nx
=
(
(
v
1
⁢
x
-
v
0
⁢
x
)
×
N
w
⁢
x
+
(
v
2
⁢
x
-
v
0
⁢
x
)
×
N
h
⁢
y
+
Nv
0
⁢
x
)
/
n
v
Ny
=
(
(
v
1
⁢
y
-
v
0
⁢
y
)
×
N
w
⁢
x
+
(
v
2
⁢
y
-
v
0
⁢
y
)
×
N
h
⁢
y
+
Nv
0
⁢
y
)
/
n
;
or
⁢
{
v
Nx
=
(
v
1
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
w
⁢
x
+
(
v
2
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
h
⁢
y
+
(
N
/
n
)
⁢
v
ox
v
Ny
=
(
v
1
⁢
y
-
v
0
⁢
y
)
×
(
N
/
n
)
w
⁢
x
+
(
v
2
⁢
y
-
v
0
⁢
y
)
×
(
N
/
n
)
h
⁢
y
+
(
N
/
n
)
⁢
v
0
⁢
y
,
wherein
vNx represents a horizontal component of a motion vector, whose precision is 1/N of the pixel precision, of a pixel unit with coordinates of (x, y) in the current picture block, vNy represents a vertical component of the motion vector, whose precision is 1/N of the pixel precision, of the pixel unit with the coordinates of (x, y) in the current picture block, (v0y,v0x), (v1x,v1y), and (v2x,v2y) represent motion vectors, whose precision is 1/n of the pixel precision, of three control points, w represents a width of the current picture block, and h represents a height of the current picture block.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the motion vectors of the W control points are predicted based on a motion vector, whose precision is 1/n of the pixel precision, of a decoded picture block that surrounds the current picture block.

### Claim 12

A video decoding apparatus, comprising:
a non-transitory memory storage comprising instructions; and
one or more hardware processors in communication with the memory storage, wherein the one or more hardware processors execute the instructions to:
obtain a predicted residual of a current picture block and differences of motion vectors with precision of 1/n of a pixel precision from a video bitstream;
determine motion vectors of W control points of the current picture block, wherein the motion vectors of the W control points are determined based on predictors with precision of 1/n of the pixel precision and the differences of motion vectors with precision of 1/n of the pixel precision;
obtain, by calculation, motion vectors of P pixel units of the current picture block by using a motion model and the motion vectors of the W control points, wherein precision of the motion vector of each of the P pixel units is 1/N of the pixel precision, the motion vector of each of the P pixel units is used to determine a corresponding reference pixel unit in a reference picture of a corresponding pixel unit, W, n, and N are integers greater than 1, N is greater than n, and Pis a positive integer;
perform interpolation filtering on a pixel of the corresponding reference pixel unit by using an interpolation filter with Q phases, to obtain a predicted pixel value of each of the P pixel units, wherein Q is an integer greater than n; and
generate reconstructed pixel values of the current picture block based on the predicted residual of the current picture block and predicted pixel values of the current picture block, wherein the predicted pixel values of the current picture block comprises the predicted pixel values of the P pixel units of the current picture block.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein a value of N is a preset fixed value, and Q is less than or equal to N; or n=4 and Q=N=16.

### Claim 14 (depends on 12)

The apparatus according to claim 12, wherein a horizontal component or a vertical component of one of the motion vectors of the W control points is amplified N times in the motion model, or a component difference between motion vectors of any two of the W control points is amplified N times in the motion model.

### Claim 15 (depends on 12)

The apparatus according to claim 12, wherein the one or more hardware processors is configured to:
obtain, by calculation, a phase of each of the P pixel units by using the motion vector of each of the P pixel units;
determine, based on the phase of each of the P pixel units, the interpolation filter that is corresponding to the pixel unit, wherein a filter coefficient used by the interpolation filter is corresponding to the phase; and
perform interpolation filtering on the pixel of the corresponding pixel unit, in the reference picture, of each pixel unit by using the determined interpolation filter that is corresponding to the pixel unit.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the phase comprises a horizontal phase and a vertical phase; and the one or more hardware processors is configured to:
determine, based on the horizontal phase of cach pixel unit, a horizontal interpolation filter that is corresponding to the pixel unit; and
determine, based on the vertical phase of each pixel unit, a vertical interpolation filter that is corresponding to the pixel unit, wherein a filter coefficient used by the horizontal interpolation filter is corresponding to the horizontal phase, and a filter coefficient used by the vertical interpolation filter is corresponding to the vertical phase.

### Claim 17 (depends on 16)

The apparatus according to claim 16, wherein the one or more hardware processors is configured to:
perform horizontal interpolation filtering on a pixel of a corresponding reference pixel unit, in the reference picture, of a pixel unit i by using a determined horizontal interpolation filter that is corresponding to the pixel unit i, to obtain a horizontal interpolation filtering result; and
perform vertical interpolation filtering on the horizontal interpolation filtering result by using a determined vertical interpolation filter that is corresponding to the pixel unit i, to obtain a predicted pixel value of the pixel unit i, wherein the pixel unit i is any one of the P pixel units.

### Claim 18 (depends on 16)

The apparatus according to claim 16, wherein the one or more hardware processors is configured to:
perform vertical interpolation filtering on a pixel of a corresponding pixel unit, in the reference picture, of a pixel unit j by using a determined vertical interpolation filter that is corresponding to the pixel unit j, to obtain a vertical interpolation filtering result; and
perform horizontal interpolation filtering on the vertical interpolation filtering result by using a determined horizontal interpolation filter that is corresponding to the pixel unit j, to obtain a predicted pixel value of the pixel unit j, wherein the pixel unit j is any one of the P pixel units.

### Claim 19 (depends on 12)

The apparatus according to claim 12, wherein the motion model is a translational motion model, an affine motion model, a rotational motion model, a parabolic motion model, a shearing motion model, a zooming motion model, a perspective motion model, or a bilinear motion model.

### Claim 20 (depends on 12)

The apparatus according to claim 12, wherein W is equal to 2 and the motion model is represented as follows:
{
v
Nx
=
(
(
v
1
⁢
x
-
v
0
⁢
x
)
×
N
L
⁢
x
-
(
v
1
⁢
y
-
v
0
⁢
y
)
×
N
L
⁢
y
+
Nv
0
⁢
x
)
/
n
v
Ny
=
(
(
v
1
⁢
y
-
v
0
⁢
y
)
×
N
L
⁢
x
+
(
v
1
⁢
x
-
v
0
⁢
x
)
×
N
L
⁢
y
+
Nv
0
⁢
y
)
/
n
;
or
⁢
{
v
Nx
=
(
v
1
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
L
⁢
x
+
(
v
1
⁢
y
-
v
0
⁢
x
)
×
(
N
/
n
)
L
⁢
y
+
(
N
/
n
)
⁢
v
ox
v
Ny
=
(
v
1
⁢
y
-
v
0
⁢
y
)
×
(
N
/
n
)
L
⁢
x
+
(
v
1
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
L
⁢
y
+
(
N
/
n
)
⁢
v
0
⁢
y
,
wherein
L represents a width or a height of the current picture block, (v0x,v0y) and (v1x,v1y) represent motion vectors, whose precision is 1/n of the pixel precision, of two control points, vNx represents a horizontal component of a motion vector, whose precision is 1/N of the pixel precision, of a pixel unit with coordinates of (x, y) in the current picture block, and vNy represents a vertical component of the motion vector, whose precision is 1/N of the pixel precision, of the pixel unit with the coordinates of (x, y) in the current picture block.

### Claim 21 (depends on 12)

The apparatus according to claim 12, wherein W is equal to 3 and the motion model is represented as follows:
{
v
Nx
=
(
(
v
1
⁢
x
-
v
0
⁢
x
)
×
N
w
⁢
x
+
(
v
2
⁢
x
-
v
0
⁢
x
)
×
N
h
⁢
y
+
Nv
0
⁢
x
)
/
n
v
Ny
=
(
(
v
1
⁢
y
-
v
0
⁢
y
)
×
N
w
⁢
x
+
(
v
2
⁢
y
-
v
0
⁢
y
)
×
N
h
⁢
y
+
Nv
0
⁢
y
)
/
n
;
or
⁢
{
v
Nx
=
(
v
1
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
w
⁢
x
+
(
v
2
⁢
x
-
v
0
⁢
x
)
×
(
N
/
n
)
h
⁢
y
+
(
N
/
n
)
⁢
v
ox
v
Ny
=
(
v
1
⁢
y
-
v
0
⁢
y
)
×
(
N
/
n
)
w
⁢
x
+
(
v
2
⁢
y
-
v
0
⁢
y
)
×
(
N
/
n
)
h
⁢
y
+
(
N
/
n
)
⁢
v
0
⁢
y
,
wherein
vNx represents a horizontal component of a motion vector, whose precision is 1/N of the pixel precision, of a pixel unit with coordinates of (x, y) in the current picture block, vNy represents a vertical component of the motion vector, whose precision is 1/N of the pixel precision, of the pixel unit with the coordinates of (x, y) in the current picture block, (v0x,v0y), (v1x,v1y), and (v2x,v2y) represent motion vectors, whose precision is 1/n of the pixel precision, of three control points, w represents a width of the current picture block, and h represents a height of the current picture block.

### Claim 22 (depends on 12)

The apparatus according to claim 12, wherein the motion vectors of the W control points are predicted based on a motion vector, whose precision is 1/n of the pixel precision, of a decoded picture block that surrounds the current picture block.

### Claim 23

A non-transitory computer-readable medium storing computer instructions, that when executed by one or more hardware processors, cause the one or more hardware processors to perform operations comprising:
obtaining a predicted residual of a current picture block and differences of motion vectors with precision of 1/n of a pixel precision from a video bitstream;
determining motion vectors of W control points of the current picture block, wherein the motion vectors of the W control points are determined based on predictors with precision of 1/n of the pixel precision and the differences of motion vectors with precision of 1/n of the pixel precision;
obtaining, by calculation, motion vectors of P pixel units of the current picture block by using a motion model and the motion vectors of the W control points, wherein precision of the motion vector of each of the P pixel units is 1/N of the pixel precision, the motion vector of each of the P pixel units is used to determine a corresponding reference pixel unit in a reference picture of a corresponding pixel unit, W, n, and N are integers greater than 1, N is greater than n, and P is a positive integer;
performing interpolation filtering on a pixel of the corresponding reference pixel unit by using an interpolation filter with Q phases, to obtain a predicted pixel value of each of the P pixel units, wherein Q is an integer greater than n; and
generating reconstructed pixel values of the current picture block based on the predicted residual of the current picture block and predicted pixel values of the current picture block, wherein the predicted pixel values of the current picture block comprises the predicted pixel values of the P pixel units of the current picture block.
