# US 2021/0176493 A1 · Devices and methods for image and video coding

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

- Number: US 2021/0176493 A1
- Document ID: US20210176493A1
- Status: Published application
- Kind: A1
- Application number: 17/170,065
- Filed: 2021-02-08
- Published: 2021-06-10
- Earliest claimed: 2018-10-09
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Biao WANG; Jianle CHEN; Semih ESENLIK; Anand Meher KOTRA; Han GAO; Zhijie ZHAO
- Web page: https://patentgrep.com/patent/US20210176493A1

## CPC

- H04N 19/593: involving spatial prediction techniques
- 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/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: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The disclosure relates to a method of decoding implemented by a decoding device, comprising: obtaining a value of a reference line index for a current block; constructing a most probable mode, MPM, list for the current block; obtaining a value of intra-prediction mode index for the current block; when the value of the reference line index is not equal to 0, obtaining an intra prediction mode of the current block according to the MPM list for the current block and the value of the intra-prediction mode index for the current block, wherein the value of the intra-prediction mode index indicates a position that corresponds to the intra prediction mode of the current block among angular intra-prediction modes in the MPM list. The disclosure also relates to a coding apparatus and a non-transitory machine-readable medium.

## Claims

### Claim 1

A method of video decoding implemented by a decoding device, the method comprising:
obtaining a value of a reference line index for a current block;
constructing a most probable mode (MPM) list for the current block;
obtaining a value of intra-prediction mode index for the current block;
when the value of the reference line index is not equal to 0,
obtaining an intra prediction mode of the current block according to the MPM list for the current block and the value of the intra-prediction mode index for the current block, wherein the value of the intra-prediction mode index indicates a position that corresponds to the intra prediction mode of the current block among angular intra-prediction modes in the MPM list;
obtaining prediction values for the current block according to the intra prediction mode of the current block and reference samples of neighboring blocks adjacent to the current block; and
obtaining reconstructed sample values of the current block according to the prediction values for the current block.

### Claim 2 (depends on 1)

The method of claim 1, wherein
the MPM list comprises a value corresponding to a planar intra-prediction mode, a value corresponding to DC intra-prediction mode, and a plurality of values corresponding to a plurality of angular intra-prediction modes;
obtaining the intra prediction mode of the current block comprises:
removing the planar intra-prediction mode and the DC intra-prediction mode from the MPM list to obtain an updated MPM list; and
obtaining the intra prediction mode of the current block according to the updated MPM list and the value of the intra-prediction mode index for the current block, wherein the intra prediction mode of the current block corresponds to a value of intra-prediction mode index in the updated MPM list.

### Claim 3 (depends on 1)

The method of claim 1, wherein
the MPM list comprises a value corresponding to a DC intra-prediction mode, a value corresponding to a planar intra-prediction mode, and a plurality of values correspond to a plurality of angular intra-prediction modes;
the intra prediction mode of the current block is obtained according to the following:
unsigned ipred_idx_without_planar_DC = 0;
unsigned i;
for (i = 0; i < numMPMs; i++)
{
if (mpm_pred[i] >= 2)
{
if (ipred_idx_without_planar_DC == mpm_idx)
{
mpm_idx = i;
break;
}
else
{
ipred_idx_without_planar_DC++;
}
}
}
wherein numMPMs is a quantity of values corresponding to intra-prediction modes in the MPM list, and mpm_pred[i] is a value corresponding to an index i in the MPM list.

### Claim 4 (depends on 1)

The method of claim 1, wherein
the MPM list comprises a value corresponding to a DC intra-prediction mode, a value corresponding to a planar intra-prediction mode, and a plurality of values corresponding to a plurality of angular intra-prediction modes;
obtaining the intra prediction mode of the current block comprises:
obtaining an angular mode position list according to the plurality of values corresponding to the plurality of angular intra-prediction modes in the MPM list;
obtaining the intra prediction mode of the current block according to the angular mode position list and the value of the intra-prediction mode index for the current block, wherein a value corresponding to the intra prediction mode of the current block is equal to a value corresponding to a position i in the angular mode position list, i is equal to the value of the intra-prediction mode index for the current block.

### Claim 5

A non-transitory machine-readable medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising:
obtaining a value of a reference line index for a current block;
constructing a most probable mode (MPM) list for the current block;
obtaining a value of intra-prediction mode index for the current block;
when the value of the reference line index is not equal to 0,
obtaining an intra prediction mode of the current block according to the MPM list for the current block and the value of the intra-prediction mode index for the current block, wherein the value of the intra-prediction mode index indicates a position that corresponds to the intra prediction mode of the current block among angular intra-prediction modes in the MPM list;
obtaining prediction values for the current block according to the intra prediction mode of the current block and reference samples of neighboring blocks adjacent to the current block; and
obtaining reconstructed sample values of the current block according to the prediction values for the current block.

### Claim 6 (depends on 5)

The non-transitory machine-readable medium of claim 5, wherein
the MPM list comprises a value corresponding to a planar intra-prediction mode, a value corresponding to a DC intra-prediction mode, and a plurality of values corresponding to a plurality of angular intra-prediction modes;
obtaining the intra prediction mode of the current block comprises:
removing the planar intra-prediction mode and the DC intra-prediction mode from the MPM list to obtain an updated MPM list; and
obtaining the intra prediction mode of the current block according to the updated MPM list and the value of the intra-prediction mode index for the current block, wherein the intra prediction mode of the current block corresponds to a value of intra-prediction mode index in the updated MPM list.

### Claim 7 (depends on 5)

The non-transitory machine-readable medium of claim 5, wherein
the MPM list comprises a value corresponding to a DC intra-prediction mode, a value corresponding to a planar intra-prediction mode, and a plurality of values corresponding to a plurality of angular intra-prediction modes;
the intra prediction mode of the current block is obtained according to the following:
unsigned ipred_idx_without_planar_DC = 0;
unsigned i;
for (i = 0; i < numMPMs; i++)
{
if (mpm_pred[i] >= 2)
{
if (ipred_idx_without_planar_DC == mpm_idx)
{
mpm_idx = i;
break;
}
else
{
ipred_idx_without_planar_DC++;
}
}
}
wherein numMPMs is a quantity of values corresponding to intra-prediction modes in the MPM list, and mpm_pred[i] is a value correspond to an index i in the MPM list.

### Claim 8 (depends on 5)

The non-transitory machine-readable medium of claim 5, wherein
the MPM list comprises a value corresponding to a DC intra-prediction mode, a value corresponding to a planar intra-prediction mode, and a plurality of values corresponding to a plurality of angular intra-prediction modes;
obtaining the intra prediction mode of the current block comprises:
obtaining an angular mode position list according to the plurality of values corresponding to the plurality of angular intra-prediction modes in the MPM list;
obtaining the intra prediction mode of the current block according to the angular mode position list and the value of the intra-prediction mode index for the current block, wherein a value corresponding to the intra prediction mode of the current block is equal to a value corresponding to a position i in the angular mode position list, i is equal to the value of the intra-prediction mode index for the current block.

### Claim 9

A decoder, comprising:
one or more processors; and
a non-transitory computer-readable storage medium coupled to the processors to store instructions, which when executed by the processors, cause the processors to perform operations, the operations including:
obtaining a value of a reference line index for a current block;
constructing a most probable mode (MPM) list for the current block;
obtaining a value of intra-prediction mode index for the current block;
when the value of the reference line index is not equal to 0,
obtaining an intra prediction mode of the current block according to the MPM list for the current block and the value of the intra-prediction mode index for the current block, wherein the value of the intra-prediction mode index indicates a position that corresponds to the intra prediction mode of the current block among angular intra-prediction modes in the MPM list;
obtaining prediction values for the current block according to the intra prediction mode of the current block and reference samples of neighboring blocks adjacent to the current block; and
obtaining reconstructed sample values of the current block according to the prediction values for the current block.

### Claim 10 (depends on 9)

The decoder of claim 9, wherein
the MPM list comprises a value corresponding to a planar intra-prediction mode, a value corresponding to a DC intra-prediction mode, and a plurality of values correspond to a plurality of angular intra-prediction modes;
obtaining the intra prediction mode of the current block comprises:
removing the planar intra-prediction mode and the DC intra-prediction mode from the MPM list to obtain an updated MPM list;
obtaining the intra prediction mode of the current block according to the updated MPM list and the value of the intra-prediction mode index for the current block, wherein the intra prediction mode of the current block corresponds to a value of the intra-prediction mode index in the updated MPM list.

### Claim 11 (depends on 9)

The decoder of claim 9, wherein
the MPM list comprises a value corresponding to a DC intra-prediction mode, a value corresponding to a planar intra-prediction mode, and a plurality of values correspond to a plurality of angular intra-prediction modes;
the intra prediction mode of the current block is obtained according to the following:
unsigned ipred_idx_without_planar_DC = 0;
unsigned i;
for (i = 0; i < numMPMs; i++)
{
if (mpm_pred[i] >= 2)
{
if (ipred_idx_without_planar_DC == mpm_idx)
{
mpm_idx = i;
break;
}
else
{
ipred_idx_without_planar_DC++;
}
}
}
wherein numMPMs is a quantity of values corresponding to intra-prediction modes in the MPM list, and mpm_pred[i] is a value corresponding to an index i in the MPM list.

### Claim 12 (depends on 9)

The decoder of claim 9, wherein the obtaining an intra prediction mode of the current block according to the MPM list for the current block and the value of the intra-prediction mode index for the current block, wherein the value of the intra-prediction mode index indicates a position, the position is corresponded to the intra prediction mode of the current block among angular intra-prediction modes in the MPM list, comprises:
wherein the MPM list comprises a value correspond to DC intra-prediction mode and a value correspond to Planar intra-prediction mode, and a plurality of values correspond to a plurality of angular intra-prediction modes;
obtaining an angular mode position list according to the plurality of values correspond to the plurality of angular intra-prediction modes in the MPM list;
obtaining the intra prediction mode of the current block according to the angular mode position list and the value of the intra-prediction mode index for the current block, wherein the value correspond to the intra prediction mode of the current block is equal to an value correspond to position i in the angular mode position list, the value of i is equal to the value of the intra-prediction mode index for the current block.
