# US 2020/0221082 A1 · Reference sample padding and filtering for intra prediction in video compression

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

- Number: US 2020/0221082 A1
- Document ID: US20200221082A1
- Status: Published application
- Kind: A1
- Application number: 16/795,773
- Filed: 2020-02-20
- Published: 2020-07-09
- Earliest claimed: 2018-07-16
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Liang ZHAO; Xin ZHAO; Xiang LI; Shan LIU
- Web page: https://patentgrep.com/patent/US20200221082A1

## CPC

- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/463: by compressing encoding parameters before transmission
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/593: involving spatial prediction techniques
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of and an apparatus for controlling intra prediction for decoding of a video sequence are provided. The method includes setting a table including a plurality of intra prediction modes respectively corresponding to a plurality of intra prediction angles, the plurality of intra prediction angles including diagonal intra prediction angles respectively corresponding to diagonal directions of all shapes of coding units, and selecting, for decoding the video sequence, one of the plurality of intra prediction modes, from the set table.

## Claims

### Claim 1

A method of controlling intra prediction for decoding of a video sequence, the method being performed by at least one processor, and the method comprising:
setting a table including a plurality of intra prediction modes respectively corresponding to a plurality of intra prediction angles; and
selecting, for decoding the video sequence, one of the plurality of intra prediction modes, from the set table,
wherein a number of the plurality of intra prediction modes included in the set table is 67, the set table including:
predModeIntra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
intraPredAngle
—
32
29
26
23
20
18
16
14
12
10
8
6
4
3
2
1
predModeIntra
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
intraPredAngle
0
−1
−2
−3
−4
−6
−8
−10
−12
−14
−16
−18
−20
−23
−26
−29
−32
predModeIntra
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
intraPredAngle
−29
−26
−23
−20
−18
−16
−14
−12
−10
−8
−6
−4
−3
−2
−1
0
1
predModeIntra
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
intraPredAngle
2
3
4
6
8
10
12
14
16
18
20
23
26
29
32
where predModelntra comprises the plurality of intra prediction modes and intraPredAngle comprises the plurality of intra prediction angles.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the diagonal intra prediction angles is denoted by α, and tan(α) is equal to {1/32, 2/32, 4/32, 8/32, 16/32, 32/32}.

### Claim 3 (depends on 1)

The method of claim 1, wherein a number of a subset of intra prediction modes included in the set table is 35, and
the set table corresponding to the subset includes:
predModeIntra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
intraPredAngle
—
32
26
20
16
12
8
4
2
0
−2
−4
−8
−12
−16
−20
−26
predModeIntra
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
intraPredAngle
−32
−26
−20
−16
−12
−8
−4
−2
0
2
4
8
12
16
20
26
32
where predModeIntra comprises the plurality of intra prediction modes, and intraPredAngle comprises the plurality of intra prediction angles.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining a ratio of a width to a height of a coding unit; and
based on the determined ratio being greater than or equal to 4 or less than or equal to 1/4, removing, from the set table, a first number of multiple intra prediction modes such that the set table after the removing the first number of multiple intra prediction modes corresponds to the subset of intra prediction modes,
wherein the first number corresponds to the determined ratio and a shorter side among the width and the height, and
wherein the selecting the one of the plurality of intra prediction modes comprises selecting, for decoding the video sequence, the one of the plurality of intra prediction modes, from the set table after the removing.

### Claim 5 (depends on 4)

The method of claim 4, wherein the removing the first number of multiple intra prediction modes comprises, based on a second number of the plurality of intra prediction modes included in the set table being 35:
based on the determined ratio being 4, 8, 16 or 32, removing, from the set table, the first number of the multiple intra prediction modes, the first number being 5, 6, 7 or 8, respectively; and
based on the determined ratio being 1/4, 1/8, 1/16 or 1/32, removing, from the set table, the first number of the multiple intra prediction modes, the first number being 5, 6, 7 or 8, respectively.

### Claim 6 (depends on 4)

The method of claim 4, wherein the removing the first number of multiple intra prediction modes comprises, based on a second number of the plurality of intra prediction modes included in the set table being 67:
based on the determined ratio being 4, 8, 16 or 32, removing, from the set table, the first number of the multiple intra prediction modes, the first number being 10, 12, 14 or 16, respectively; and
based on the determined ratio being 1/4, 1/8, 1/16 or 1/32, removing, from the set table, the first number of the multiple intra prediction modes, the first number being 10, 12, 14 or 16, respectively.

### Claim 7 (depends on 4)

The method of claim 4, further comprising, for each of the plurality of intra prediction modes included in the set table from which the first number of the multiple intra prediction modes is removed, based on a respective one of the plurality of intra prediction angles being greater than a diagonal direction of the coding unit, mapping the respective one of the plurality of intra prediction angles to the diagonal direction.

### Claim 8

An apparatus for controlling intra prediction for decoding of a video sequence, the apparatus comprising:
at least one memory configured to store computer program code; and
at least one processor configured to access the at least one memory and operate according to the computer program code, the computer program code comprising:
setting code configured to cause the at least one processor to set a table including a plurality of intra prediction modes respectively corresponding to a plurality of intra prediction angles; and
selecting code configured to cause the at least one processor to select, for decoding the video sequence, one of the plurality of intra prediction modes, from the set table,
wherein a number of the plurality of intra prediction modes included in the set table is 67, the set table including:
predModeIntra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
intraPredAngle
—
32
29
26
23
20
18
16
14
12
10
8
6
4
3
2
1
predModeIntra
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
intraPredAngle
0
−1
−2
−3
−4
−6
−8
−10
−12
−14
−16
−18
−20
−23
−26
−29
−32
predModeIntra
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
intraPredAngle
−29
−26
−23
−20
−18
−16
−14
−12
−10
−8
−6
−4
−3
−2
−1
0
1
predModeIntra
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
intraPredAngle
2
−3
4
6
8
10
12
14
16
18
20
23
26
29
32
where predModeIntra comprises the plurality of intra prediction modes, and intraPredAngle comprises the plurality of intra prediction angles.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein each of the diagonal intra prediction angles is denoted by α, and tan(α) is equal to {1/32, 2/32, 4/32, 8/32, 16/32, 32/32}.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein a number of a subset of intra prediction modes included in the set table is 35, and
the set table corresponding to the subset includes:
predModeIntra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
intraPredAngle
—
32
26
20
16
12
8
4
2
0
−2
−4
−8
−12
−16
−20
−26
predModeIntra
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
intraPredAngle
−32
−26
−20
−16
−12
−8
−4
−2
0
2
4
8
12
16
20
26
32
where predModelntra comprises the plurality of intra prediction modes, and intraPredAngle comprises the plurality of intra prediction angles.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the computer program code further comprises:
determining code configured to cause the at least one processor to determine a ratio of a width to a height of a coding unit; and
removing code configured to cause the at least one processor to, based on the determined ratio being greater than or equal to 4 or less than or equal to 1/4, remove, from the set table, a first number of multiple intra prediction modes such that the set table after the removing the first number of multiple intra prediction modes corresponds to the subset of intra prediction modes,
wherein the first number corresponding to the determined ratio and a shorter side among the width and the height, and
wherein the selecting code is further configured to cause the at least one processor to select, for decoding the video sequence, the one of the plurality of intra prediction modes, from the set table after the removing.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the removing code is further configured to cause the at least one processor to, based on a second number of the plurality of intra prediction modes included in the set table being 35:
based on the determined ratio being 4, 8, 16 or 32, remove, from the set table, the first number of the multiple intra prediction modes, the first number being 5, 6, 7 or 8, respectively; and
based on the determined ratio being 1/4, 1/8, 1/16 or 1/32, remove, from the set table, the first number of the multiple intra prediction modes, the first number being 5, 6, 7 or 8, respectively.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the removing code is further configured to cause the at least one processor to, based on a second number of the plurality of intra prediction modes included in the set table being 67:
based on the determined ratio being 4, 8, 16 or 32, remove, from the set table, the first number of the multiple intra prediction modes, the first number being 10, 12, 14 or 16, respectively; and
based on the determined ratio being 1/4, 1/8, 1/16 or 1/32, remove, from the set table, the first number of the multiple intra prediction modes, the first number being 10, 12, 14 or 16, respectively.

### Claim 14

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
set a table including a plurality of intra prediction modes respectively corresponding to a plurality of intra prediction angles; and
select, for decoding a video sequence, one of the plurality of intra prediction modes, from the set table,
wherein a number of the plurality of intra prediction modes included in the set table is 67, the set table including:
predModeIntra
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
intraPredAngle
—
32
29
26
23
20
18
16
14
12
10
8
6
4
3
2
1
predModeIntra
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
intraPredAngle
0
−1
−2
−3
−4
−6
−8
−10
−12
−14
−16
−18
−20
−23
−26
−29
−32
predModeIntra
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
intraPredAngle
−29
−26
−23
−20
−18
−16
−14
−12
−10
−8
−6
−4
−3
−2
−1
0
1
predModeIntra
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
intraPredAngle
2
3
4
6
8
10
12
14
16
18
20
23
26
29
32
where predModeIntra comprises the plurality of intra prediction modes, and intraPredAngle comprises the plurality of intra prediction angles.
