# US 2021/0176468 A1 · Residual coding selection and low-level signaling based on quantization parameter

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

- Number: US 2021/0176468 A1
- Document ID: US20210176468A1
- Status: Published application
- Kind: A1
- Application number: 17/109,958
- Filed: 2020-12-02
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Alican Nalci; Hongtao Wang; Muhammed Zeyd Coban; Marta Karczewicz
- Web page: https://patentgrep.com/patent/US20210176468A1

## CPC

- H04N 19/12: Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/124: Quantisation
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video coder may determine a quantization parameter (QP) value for a block of video data, determine a residual coding method from a plurality of residual coding methods based on the QP value, wherein the plurality of residual coding methods include transform skip (TS) residual coding and regular residual coding, and code a residual of the block of video data using the determined residual coding method.

## Claims

### Claim 1

A method of decoding video data, the method comprising:
determining a quantization parameter (QP) value for a block of video data;
determining a residual coding method from a plurality of residual coding methods based on the QP value, wherein the plurality of residual coding methods includes transform skip (TS) residual coding and regular residual coding; and
decoding a residual of the block of video data using the determined residual coding method.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value comprises:
comparing the QP value to a threshold; and
determining that the residual coding method is TS residual coding in the case that the QP value is greater than the threshold.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value comprises:
comparing the QP value to a threshold; and
determining that the residual coding method is regular residual coding in the case that the QP value is less than or equal to the threshold.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value comprises:
determining the residual coding method from the plurality of residual coding methods based on the QP value and a value of a transform skip flag.

### Claim 5 (depends on 4)

The method of claim 4, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value and the value of the transform skip flag comprises:
determining that the residual coding method is regular residual coding in the case that the QP value is less than or equal to the threshold and the value of the transform skip flag indicates that a transform is not applied.

### Claim 6 (depends on 4)

The method of claim 4, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value and the value of the transform skip flag comprises:
determining that the residual coding method is TS residual coding in the case that the QP value is greater than the threshold and the value of the transform skip flag indicates that a transform is not applied.

### Claim 7 (depends on 1)

The method of claim 1, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value comprises:
determining the residual coding method from the plurality of residual coding methods based on the QP value and a value of a block-based differential pulse code modulation (BDPCM) flag.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value and the value of the BDPCM flag comprises:
determining that the residual coding method is regular residual coding in the case that the QP value is less than or equal to the threshold and the value of the BDPCM flag indicates that BPCM coding is used.

### Claim 9 (depends on 7)

The method of claim 7, wherein determining the residual coding method from the plurality of residual coding methods based on the QP value and the value of the BDPCM flag comprises:
determining that the residual coding method is TS residual coding in the case that the QP value is greater than the threshold and the value of the BDPCM flag indicates that BPCM coding is used.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
determining additional operations to perform on the residual of the block of video data based on the QP value, wherein the additional operations include one or more of a residual rotation or a prediction of transform residuals.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
disabling decoding of a last position of a transform coefficient signaling based on a transform skip flag indicating that a transform is skipped and the determined residual coding method is regular residual coding.

### Claim 12 (depends on 1)

The method claim 1, further comprising:
determining a context for bins of syntax elements indicating the values of the residual of the block of video data based on the QP value; and
entropy decoding the bins of the syntax elements indicating the values of the residual of the block of video data using the determined context.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
decoding a flag based on the QP value, wherein the flag indicates one or more of a residual coding method or if the block of video data is lossy, near lossless, or lossless coded.

### Claim 14 (depends on 1)

The method of claim 1, further comprising:
displaying a picture that is formed using the decoded residual.

### Claim 15

An apparatus configured to decode video data, the apparatus comprising:
a memory configured to store video data; and
one or more processors implemented in circuitry and in communication with the memory, the one or more processors configured to:
determine a quantization parameter (QP) value for a block of video data;
determine a residual coding method from a plurality of residual coding methods based on the QP value, wherein the plurality of residual coding methods includes transform skip (TS) residual coding and regular residual coding; and
decode a residual of the block of video data using the determined residual coding method.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value, the one or more processors are further configured to:
compare the QP value to a threshold; and
determine that the residual coding method is TS residual coding in the case that the QP value is greater than the threshold.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value, the one or more processors are further configured to:
compare the QP value to a threshold; and
determine that the residual coding method is regular residual coding in the case that the QP value is less than or equal to the threshold.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value, the one or more processors are further configured to:
determine the residual coding method from the plurality of residual coding methods based on the QP value and a value of a transform skip flag.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value and the value of the transform skip flag, the one or more processors are further configured to:
determine that the residual coding method is regular residual coding in the case that the QP value is less than or equal to the threshold and the value of the transform skip flag indicates that a transform is not applied.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value and the value of the transform skip flag, the one or more processors are further configured to:
determine that the residual coding method is TS residual coding in the case that the QP value is greater than the threshold and the value of the transform skip flag indicates that a transform is not applied.

### Claim 21 (depends on 15)

The apparatus of claim 15, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value, the one or more processors are further configured to:
determine the residual coding method from the plurality of residual coding methods based on the QP value and a value of a block-based differential pulse code modulation (BDPCM) flag.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value and the value of the BDPCM flag, the one or more processors are further configured to:
determine that the residual coding method is regular residual coding in the case that the QP value is less than or equal to the threshold and the value of the BDPCM flag indicates that BPCM coding is used.

### Claim 23 (depends on 21)

The apparatus of claim 21, wherein to determine the residual coding method from the plurality of residual coding methods based on the QP value and the value of the BDPCM flag, the one or more processors are further configured to:
determine that the residual coding method is TS residual coding in the case that the QP value is greater than the threshold and the value of the BDPCM flag indicates that BPCM coding is used.

### Claim 24 (depends on 15)

The apparatus of claim 15, wherein the one or more processors are further configured to:
determine additional operations to perform on the residual of the block of video data based on the QP value, wherein the additional operations include one or more of a residual rotation or a prediction of transform residuals.

### Claim 25 (depends on 15)

The apparatus of claim 15, wherein the one or more processors are further configured to:
disable decoding of a last position of a transform coefficient signaling based on a transform skip flag indicating that a transform is skipped and the determined residual coding method is regular residual coding.

### Claim 26 (depends on 15)

The apparatus claim 15, wherein the one or more processors are further configured to:
determine a context for bins of syntax elements indicating the values of the residual of the block of video data based on the QP value; and
entropy decode the bins of the syntax elements indicating the values of the residual of the block of video data using the determined context.

### Claim 27 (depends on 15)

The apparatus of claim 15, wherein the one or more processors are further configured to:
decode a flag based on the QP value, wherein the flag indicates one or more of a residual coding method or if the block of video data is lossy, near lossless, or lossless coded.

### Claim 28 (depends on 15)

The apparatus of claim 15, further comprising:
a display configured to display a picture that is formed using the decoded residual.

### Claim 29

An apparatus configured to decode video data, the apparatus comprising:
means for determining a quantization parameter (QP) value for a block of video data;
means for determining a residual coding method from a plurality of residual coding methods based on the QP value, wherein the plurality of residual coding methods includes transform skip (TS) residual coding and regular residual coding; and
means for decoding a residual of the block of video data using the determined residual coding method.

### Claim 30

A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device configured to decode video data to:
determine a quantization parameter (QP) value for a block of video data;
determine a residual coding method from a plurality of residual coding methods based on the QP value, wherein the plurality of residual coding methods includes transform skip (TS) residual coding and regular residual coding; and
decode a residual of the block of video data using the determined residual coding method.
