# US 2020/0404274 A1 · Intra-prediction mode for screen content coding of video coding

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

- Number: US 2020/0404274 A1
- Document ID: US20200404274A1
- Status: Published application
- Kind: A1
- Application number: 16/893,200
- Filed: 2020-06-04
- Published: 2020-12-24
- Earliest claimed: 2019-06-24
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Marta Karczewicz; Yu Han; Muhammed Zeyd Coban; Yung-Hsuan Chao; Hongtao Wang
- Web page: https://patentgrep.com/patent/US20200404274A1

## CPC

- 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/124: Quantisation
- 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/18: the unit being a set of transform coefficients
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An example video decoder is configured to decode a first value for a first syntax element of a current block of video data, the first value indicating that the current block is encoded using an intra-prediction mode; after decoding the first value, decode a second value for a second syntax element of the current block, the second value indicating that the current block is encoded using intra mapping mode. In the intra mapping mode, the video decoder is configured to generate a prediction block for the current block using the intra-prediction mode and decode a residual block. To decode the residual block, the video decoder is configured to determine predictors for quantized residual values of the residual block and map decoded mapping values to the quantized residual values using the predictors. The video decoder combines the prediction block with the residual block to decode the current block.

## Claims

### Claim 1

A method of decoding video data, the method comprising:
decoding a first value for a first syntax element of a current block of video data, the first value indicating that the current block is encoded using an intra-prediction mode;
after decoding the first value, decoding a second value for a second syntax element of the current block, the second value indicating that the current block is encoded using intra mapping mode;
generating a prediction block for the current block using the intra-prediction mode;
in response to decoding the second value indicating the current block is encoded using intra mapping mode, decoding a residual block for the current block, comprising, for each quantized residual value for the current block:
determining a predictor for a current quantized residual value from a neighboring quantized residual value to the current quantized residual value, the predictor being separate from the prediction block;
entropy decoding a mapping value for the current quantized residual value;
when the mapping value is equal to one, setting the current quantized residual value equal to the predictor; and
when the mapping value is not equal to one, setting the current quantized residual value equal to the mapping value or the mapping value minus one; and
combining the prediction block with the residual block to decode the current block.

### Claim 2 (depends on 1)

The method of claim 1, wherein when the mapping value is not equal to one, setting the current quantized residual value comprises:
when the mapping value is less than or equal to the predictor, setting the current quantized residual value equal to the mapping value minus one; or
when the mapping value is greater than the predictor, setting the current quantized residual value equal to the mapping value.

### Claim 3 (depends on 1)

The method of claim 1, wherein entropy decoding the mapping value comprises:
entropy decoding a significant coefficient flag for the mapping value;
entropy decoding one or more absolute level greater than N flags, N being a positive integer value, for the mapping value;
entropy decoding a parity flag for the mapping value; and
when each of the absolute level greater than N flags has a value of one, entropy decoding an absolute remainder value for the mapping value.

### Claim 4 (depends on 1)

The method of claim 1, further comprising determining that the first value for the first syntax element indicates that the intra-prediction mode comprises one of a horizontal intra-prediction mode or a vertical intra-prediction mode.

### Claim 5 (depends on 1)

The method of claim 1, wherein decoding the residual block comprises, in response to decoding the second value, avoiding application of residual differential pulse code modulation (RDPCM) mode to the residual block.

### Claim 6 (depends on 1)

The method of claim 1, wherein decoding the residual block comprises, in response to decoding the second value, avoiding residual level prediction for the residual block.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the prediction block comprises generating the prediction block using unfiltered neighboring pixels to the current block.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining the predictor comprises calculating the predictor as a sum of an absolute value of an above-neighboring quantized residual value to the current quantized residual value and an absolute value of a left-neighboring quantized residual value to the current quantized residual value and bitwise right-shifting the sum.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining the predictor comprises:
when an absolute value of an above-neighboring quantized residual value to the current quantized residual value is greater than an absolute value of a left-neighboring quantized residual value to the current quantized residual value, setting the predictor equal to the absolute value of the above-neighboring quantized residual value; or
when the absolute value of the above-neighboring quantized residual value is not greater than the absolute value of the left-neighboring quantized residual value, setting the predictor equal to the absolute value of the left-neighboring quantized residual value.

### Claim 10

A device for decoding video data, the device comprising:
a memory configured to store video data; and
one or more processors implemented in circuitry and configured to:
decode a first value for a first syntax element of a current block of the video data, the first value indicating that the current block is encoded using an intra-prediction mode;
after decoding the first value, decode a second value for a second syntax element of the current block, the second value indicating that the current block is encoded using intra mapping mode;
generate a prediction block for the current block using the intra-prediction mode;
in response to decoding the second value, decode a residual block for the current block, wherein to decode the residual block, the one or more processors are configured to, for each quantized residual value for the current block:
determine a predictor for a current quantized residual value from a neighboring quantized residual value to the current quantized residual value, the predictor being separate from the prediction block;
entropy decode a mapping value for the current quantized residual value;
when the mapping value is equal to one, set the current quantized residual value equal to the predictor; and
when the mapping value is not equal to one, set the current quantized residual value equal to the mapping value or the mapping value minus one; and
combine the prediction block with the residual block to decode the current block.

### Claim 11 (depends on 10)

The device of claim 10, wherein when the mapping value is not equal to one, the one or more processors are configured to:
when the mapping value is less than or equal to the predictor, set the current quantized residual value equal to the mapping value minus one; or
when the mapping value is greater than the predictor, set the current quantized residual value equal to the mapping value.

### Claim 12 (depends on 10)

The device of claim 10, wherein to entropy decode the mapping value, the one or more processors are configured to:
entropy decode one or more absolute level greater than N flags, N being a positive integer value, for the mapping value;
entropy decode a parity flag for the mapping value; and
when each of the absolute level greater than N flags has a value of one, entropy decode an absolute remainder value for the mapping value.

### Claim 13 (depends on 10)

The device of claim 10, wherein the one or more processors are further configured to determine that the first value for the first syntax element indicates that the intra-prediction mode comprises one of a horizontal intra-prediction mode or a vertical intra-prediction mode.

### Claim 14 (depends on 10)

The device of claim 10, wherein the one or more processors are configured to, in response to decoding the second value, avoid application of residual differential pulse code modulation (RDPCM) mode to the residual block.

### Claim 15 (depends on 10)

The device of claim 10, wherein the one or more processors are configured to, in response to decoding the second value, avoid residual level prediction for the residual block.

### Claim 16 (depends on 10)

The device of claim 10, the one or more processors are configured to generate the prediction block using unfiltered neighboring pixels to the current block.

### Claim 17 (depends on 10)

The device of claim 10, wherein the one or more processors are configured to calculate the predictor as a sum of an absolute value of an above-neighboring quantized residual value to the current quantized residual value and an absolute value of a left-neighboring quantized residual value to the current quantized residual value and bitwise right-shift the sum.

### Claim 18 (depends on 10)

The device of claim 10, wherein to determine the predictor, the one or more processors are configured to:
when an absolute value of an above-neighboring quantized residual value to the current quantized residual value is greater than an absolute value of a left-neighboring quantized residual value to the current quantized residual value, set the predictor equal to the absolute value of the above-neighboring quantized residual value; or
when the absolute value of the above-neighboring quantized residual value is not greater than the absolute value of the left-neighboring quantized residual value, set the predictor equal to the absolute value of the left-neighboring quantized residual value.

### Claim 19 (depends on 10)

The device of claim 10, further comprising a display configured to display decoded video data.

### Claim 20 (depends on 10)

The device of claim 10, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

### Claim 21

A computer-readable storage medium having stored thereon instructions that, when executed, cause a processor to:
decode a first value for a first syntax element of a current block of video data, the first value indicating that the current block is encoded using an intra-prediction mode;
after decoding the first value, decode a second value for a second syntax element of the current block, the second value indicating that the current block is encoded using intra mapping mode;
generate a prediction block for the current block using the intra-prediction mode;
in response to decoding the second value, decode a residual block for the current block, comprising instructions that cause the processor to, for each quantized residual value for the current block:
determine a predictor for a current quantized residual value from a neighboring quantized residual value to the current quantized residual value, the predictor being separate from the prediction block;
entropy decode a mapping value for the current quantized residual value;
when the mapping value is equal to one, set the current quantized residual value equal to the predictor; and
when the mapping value is not equal to one, set the current quantized residual value equal to the mapping value or the mapping value minus one; and
combine the prediction block with the residual block to decode the current block.

### Claim 22 (depends on 21)

The computer-readable storage medium of claim 21, wherein the instructions that cause the processor to set the current quantized residual value comprise instructions that cause the processor to, when the mapping value is not equal to one:
when the mapping value is less than or equal to the predictor, set the current quantized residual value equal to the mapping value minus one; or
when the mapping value is greater than the predictor, set the current quantized residual value equal to the mapping value.

### Claim 23 (depends on 21)

The computer-readable storage medium of claim 21, wherein the instructions that cause the processor to entropy decode the mapping value comprise instructions that cause the processor to:
entropy decode a significant coefficient flag for the mapping value;
entropy decode one or more absolute level greater than N flags, N being a positive integer value, for the mapping value;
entropy decode a parity flag for the mapping value; and
when each of the absolute level greater than N flags has a value of one, entropy decode an absolute remainder value for the mapping value.

### Claim 24 (depends on 21)

The computer-readable storage medium of claim 21, further comprising instructions that cause the processor to determine that the first value for the first syntax element indicates that the intra-prediction mode comprises one of a horizontal intra-prediction mode or a vertical intra-prediction mode.

### Claim 25 (depends on 21)

The computer-readable storage medium of claim 21, wherein the instructions that cause the processor to decode the residual block comprise instructions that cause the processor to, in response to decoding the second value, avoid application of residual differential pulse code modulation (RDPCM) mode to the residual block.

### Claim 26 (depends on 21)

The computer-readable storage medium of claim 21, wherein the instructions that cause the processor to decode the residual block comprise instructions that cause the processor to, in response to decoding the second value, avoid residual level prediction for the residual block.

### Claim 27 (depends on 21)

The computer-readable storage medium of claim 21, wherein the instructions that cause the processor to generate the prediction block comprise instructions that cause the processor to generate the prediction block using unfiltered neighboring pixels to the current block.

### Claim 28 (depends on 21)

The computer-readable storage medium of claim 21, wherein the instructions that cause the processor to determine the predictor comprise instructions that cause the processor to calculate the predictor as a sum of an absolute value of an above-neighboring quantized residual value to the current quantized residual value and an absolute value of a left-neighboring quantized residual value to the current quantized residual value and bitwise right-shifting the sum.

### Claim 29 (depends on 21)

The computer-readable storage medium of claim 21, wherein the instructions that cause the processor to determine the predictor comprise instructions that cause the processor to:
when an absolute value of an above-neighboring quantized residual value to the current quantized residual value is greater than an absolute value of a left-neighboring quantized residual value to the current quantized residual value, set the predictor equal to the absolute value of the above-neighboring quantized residual value; or
when the absolute value of the above-neighboring quantized residual value is not greater than the absolute value of the left-neighboring quantized residual value, set the predictor equal to the absolute value of the left-neighboring quantized residual value.

### Claim 30

A device for decoding video data, the device comprising:
means for decoding a first value for a first syntax element of a current block of video data, the first value indicating that the current block is encoded using an intra-prediction mode;
means for decoding a second value for a second syntax element of the current block after decoding the first value, the second value indicating that the current block is encoded using intra mapping mode;
means for generating a prediction block for the current block using the intra-prediction mode;
means for decoding a residual block for the current block in response to decoding the second value, comprising:
means for determining a predictor for a current quantized residual value from a neighboring quantized residual value to the current quantized residual value, the predictor being separate from the prediction block;
means for entropy decoding a mapping value for the current quantized residual value;
means for setting the current quantized residual value equal to the predictor when the mapping value is equal to one; and
means for setting the current quantized residual value equal to the mapping value or the mapping value minus one when the mapping value is not equal to one; and
means for combining the prediction block with the residual block to decode the current block.
