# US 2020/0404328 A1 · Method of reducing context models for entropy coding of transform coefficient significant flag

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

- Number: US 2020/0404328 A1
- Document ID: US20200404328A1
- Status: Published application
- Kind: A1
- Application number: 16/904,000
- Filed: 2020-06-17
- Published: 2020-12-24
- Earliest claimed: 2019-06-19
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Cheung Auyeung; Xin Zhao; Xiang Li; Shan Liu
- Web page: https://patentgrep.com/patent/US20200404328A1

## CPC

- H04N 19/60: using transform coding
- H04N 19/124: Quantisation
- H04N 19/136: Incoming video signal characteristics or properties
- 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 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/167: Position within a video image, e.g. region of interest [ROI]
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of video decoding performed in a video decoder includes receiving a coded video bitstream including a current picture and at least one syntax element that corresponds to transform coefficients of a transform block in the current picture. The method further includes determining an offset value based on an output of a monotonic non-decreasing f(x) function performed on a sum (x) of a group of partially reconstructed transform coefficients. The method further includes determining a context model index based on a sum of the determined offset value and a base value. The method further includes selecting, for the at least one syntax of a current transform coefficient, a context model from a plurality of context models based on the determined context model index.

## Claims

### Claim 1

A method of video decoding performed in a video decoder, the method comprising:
receiving a coded video bitstream including a current picture and at least one syntax element that corresponds to transform coefficients of a transform block in the current picture;
determining an offset value based on an output of a monotonic non-decreasing f(x) function performed on a sum (x) of a group of partially reconstructed transform coefficients;
determining a context model index based on a sum of the determined offset value and a base value;
selecting, for the at least one syntax of a current transform coefficient, a context model from a plurality of context models based on the determined context model index.

### Claim 2 (depends on 1)

The method of claim 1, wherein one of the base value and offset value is determined based on a number of context models included in the plurality of context models.

### Claim 3 (depends on 2)

The method according to claim 2, the method further comprising:
determining whether dependent quantization is enabled for the current coefficient, and
in response to the determination that dependent quantization is enabled for the current coefficient, the base value is based on a state of a quantizer.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the current coefficient is located in a luma region, and the base value is based on a comparison of a distance of the current coefficient from a top left corner the transform block with a first diagonal position threshold.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the base value is further based on a comparison of the distance with a second diagonal position threshold.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the current coefficient is located in a chroma region, and the base value is based on a comparison of a distance of the current coefficient from a top left corner the transform block with a first diagonal position threshold.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the monotonic non-decreasing function is defined as x−(x>>2).

### Claim 8 (depends on 1)

The method according to claim 1, wherein the monotonic non-decreasing function is defined as (x+1)>>1.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the current coefficient and the group of partially reconstructed transform coefficients form a template that constitutes a contiguous set of transform coefficients.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the at least one syntax element is a transform coefficient significant flag (sig_coeff_flag).

### Claim 11 (depends on 1)

The method of claim 1, wherein the bit stream includes a plurality of syntax elements that include the at least one syntax element, and wherein the sum (x) of the group of partially reconstructed transform coefficients is based on one or more syntax elements from the plurality of syntax elements.

### Claim 12

A method of video decoding performed in a video decoder, the method comprising:
receiving a coded video bitstream including a current picture and at least one syntax element that corresponds to transform coefficients of a transform block in the current picture;
determining, for each context model region from a plurality of context model regions, an output of a monotonic non-decreasing function performed on a sum (x) of a group of partially reconstructed transform coefficients and a number of context models associated with a respective context model region;
determining a context model index based on the output of the monotonic non-decreasing function of each context model region; and
selecting, for the at least one syntax of a current transform coefficient, a context model from a plurality of context models based on the determined context model index.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the determining of the context model index is further based on a comparison of a distance of the current coefficient from a top left corner the transform block with a first diagonal position threshold and a second diagonal position threshold.

### Claim 14 (depends on 12)

The method according to claim 12, wherein the determining of the context model index is further based on a comparison of a distance of the current coefficient from a top left corner the transform block with a first diagonal position.

### Claim 15

A video decoder for video decoding, comprising:
processing circuitry configured to:
receive a coded video bitstream including a current picture and at least one syntax element that corresponds to transform coefficients of a transform block in the current picture,
determine an offset value based on an output of a monotonic non-decreasing f(x) function performed on a sum (x) of a group of partially reconstructed transform coefficients,
determine a context model index based on a sum of the determined offset value and a base value, and
select, for the at least one syntax of a current transform coefficient, a context model from a plurality of context models based on the determined context model index.

### Claim 16 (depends on 15)

The video decoder according to claim 15, wherein one of the base value and offset value is determined based on a number of context models included in the plurality of context models.

### Claim 17 (depends on 16)

The video decoder according to claim 16, wherein the processing circuitry is further configured to:
determine whether dependent quantization is enabled for the current coefficient, and
in response to the determination that dependent quantization is enabled for the current coefficient, the base value is based on a state of a quantizer.

### Claim 18 (depends on 17)

The video decoder according to claim 17, wherein the current coefficient is located in a luma region, and the base value is based on a comparison of a distance of the current coefficient from a top left corner the transform block with a first diagonal position threshold.

### Claim 19 (depends on 18)

The video decoder according to claim 18, wherein the base value is further based on a comparison of the distance with a second diagonal position threshold.

### Claim 20

A video decoder apparatus for video decoding, comprising:
processing circuitry configured to:
receive a coded video bitstream including a current picture and at least one syntax element that corresponds to transform coefficients of a transform block in the current picture,
determine, for each context model region from a plurality of context model regions, an output of a monotonic non-decreasing function performed on a sum (x) of a group of partially reconstructed transform coefficients and a number of context models associated with a respective context model region,
determine a context model index based on the output of the monotonic non-decreasing function of each context model region, and
select, for the at least one syntax of a current transform coefficient, a context model from a plurality of context models based on the determined context model index.
