# US 2023/0276074 A1 · Methods and apparatus for improved entropy encoding and decoding

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

- Number: US 2023/0276074 A1
- Document ID: US20230276074A1
- Status: Published application
- Kind: A1
- Application number: 18/142,635
- Filed: 2023-05-03
- Published: 2023-08-31
- Earliest claimed: 2010-10-14
- Assignees: InterDigital VC Holdings, Inc.
- Applicants: Interdigital Vc Holdings, Inc.
- Inventors: Yang HU; Joel SOLE; Xiaoan LU; Peng YIN; Yunfei ZHENG
- Web page: https://patentgrep.com/patent/US20230276074A1

## CPC

- H04N 19/60: using transform coding
- H03M 7/4006: {Conversion to or from arithmetic code}
- H03M 7/4018: {Context adapative binary arithmetic codes [CABAC]}
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/61: in combination with predictive coding
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

Methods and apparatus are provided for improved entropy encoding and decoding. An apparatus includes a video encoder (200) for encoding at least a block in a picture by transforming a residue of the block to obtain transform coefficients, quantizing the transform coefficients to obtain quantized transform coefficients, and entropy coding the quantized transform coefficients. The quantized transform coefficients are encoded using a flag to indicate that a current one of the quantized transform coefficients being processed is a last non-zero coefficient for the block having a value greater than or equal to a specified value.

## Claims

### Claim 1

A method, comprising:
encoding at least a block in a picture by transforming a residue of the block to obtain transform coefficients,
quantizing the transform coefficients to obtain quantized transform coefficients, and
entropy coding the quantized transform coefficients, wherein the quantized transform coefficients are encoded using a first flag syntax element indicative of a current one of the quantized transform coefficients being processed being a last non-zero coefficient for the block in a given scanning order having a value greater than or equal to a specified value, a second flag syntax element indicative of whether a current one of the quantized transform coefficients known to be non-zero has an absolute value of one or larger than one, a sig flag syntax element indicative of whether the current one of the quantized transform coefficients has a non-zero value, a last flag syntax element indicative of whether the current one of the quantized transform coefficients having a non-zero value is a last quantized transform coefficient having the non-zero value in the block in the given scanning order, a level syntax element indicative of an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and a sign flag syntax element indicative of a corresponding sign of the current one of the quantized transform coefficients wherein the specified value is one of a plurality of values, said specified value is explicitly signaled for the block and wherein the first flag syntax element, the second flag syntax element, the sig flag syntax element, the last flag syntax element, the level syntax element, and the sign flag syntax element are encoded in the given scanning order.

### Claim 2 (depends on 1)

The method of claim 1, wherein subsequent non-zero coefficients from among the quantized transform coefficients having a value less than the specified value are encoded by encoding only the respective signs of the subsequent non-zero coefficients having the value less than the specified value.

### Claim 3 (depends on 1)

The method of claim 1, wherein the picture is one of a plurality of pictures comprised in a video sequence, and the specified value is adaptively selected responsive to derived statistics from previously processed blocks in the picture or in one or more other pictures from among the plurality of pictures in the video sequence.

### Claim 4 (depends on 1)

The method of claim 1, wherein a level of the current one of the quantized transform coefficients is encoded by subtracting the specified value from an actual value of the current one of the quantized transform coefficients to obtain a difference value and encoding the difference value as the level, in order to reproduce the level at a corresponding decoder by adding the difference value to the specified value.

### Claim 5 (depends on 1)

The method of claim 1, wherein at least a sig_flag syntax element, the flag, a last_flag syntax element, a Bin_1 syntax element, a level syntax element, and a sign syntax element are encoded in a same scanning order, the sig_flag syntax element for indicating whether the current one of the quantized transform coefficients has a non-zero value, the last_flag for indicating whether the current one of the quantized transform coefficients having the non-zero value is a last quantized transform coefficient having the non-zero value in the block in a given scanning order, the Bin_1 syntax element for indicating that an absolute value of the current one of the quantized transform coefficients has a currently unknown non-zero value, the level syntax element for indicating an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and the sign syntax element for indicating a corresponding sign of the current one of the quantized transform coefficients.

### Claim 6

An apparatus, comprising:
a memory, and
a processor, configured to perform:
encoding at least a block in a picture by transforming a residue of the block to obtain transform coefficients,
quantizing the transform coefficients to obtain quantized transform coefficients, and
entropy coding the quantized transform coefficients, wherein the quantized transform coefficients are encoded using a first flag syntax element indicative of a current one of the quantized transform coefficients being processed being a last non-zero coefficient for the block in a given scanning order having a value greater than or equal to a specified value, a second flag syntax element indicative of whether a current one of the quantized transform coefficients known to be non-zero has an absolute value of one or larger than one, a sig flag syntax element indicative of whether the current one of the quantized transform coefficients has a non-zero value, a last flag syntax element indicative of whether the current one of the quantized transform coefficients having a non-zero value is a last quantized transform coefficient having the non-zero value in the block in the given scanning order, a level syntax element indicative of an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and a sign flag syntax element indicative of a corresponding sign of the current one of the quantized transform coefficients wherein the specified value is one of a plurality of values, said specified value is explicitly signaled for the block and wherein the first flag syntax element, the second flag syntax element, the sig flag syntax element, the last flag syntax element, the level syntax element, and the sign flag syntax element are encoded in the given scanning order.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein subsequent non-zero coefficients from among the quantized transform coefficients having a value less than the specified value are encoded by encoding only the respective signs of the subsequent non-zero coefficients having the value less than the specified value.

### Claim 8 (depends on 6)

The apparatus of claim 6, wherein the picture is one of a plurality of pictures comprised in a video sequence, and the specified value is adaptively selected responsive to derived statistics from previously processed blocks in the picture or in one or more other pictures from among the plurality of pictures in the video sequence.

### Claim 9 (depends on 6)

The apparatus of claim 6, wherein a level of the current one of the quantized transform coefficients is encoded by subtracting the specified value from an actual value of the current one of the quantized transform coefficients to obtain a difference value and encoding the difference value as the level, in order to reproduce the level at a corresponding decoder by adding the difference value to the specified value.

### Claim 10 (depends on 6)

The apparatus of claim 6, wherein at least a sig_flag syntax element, the flag, a last_flag syntax element, a Bin_1 syntax element, a level syntax element, and a sign syntax element are encoded in a same scanning order, the sig_flag syntax element for indicating whether the current one of the quantized transform coefficients has a non-zero value, the last_flag for indicating whether the current one of the quantized transform coefficients having the non-zero value is a last quantized transform coefficient having the non-zero value in the block in a given scanning order, the Bin_1 syntax element for indicating that an absolute value of the current one of the quantized transform coefficients has a currently unknown non-zero value, the level syntax element for indicating an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and the sign syntax element for indicating a corresponding sign of the current one of the quantized transform coefficients.

### Claim 11

A method, comprising:
decoding at least a block in a picture by entropy decoding quantized transform coefficients,
de-quantizing the quantized transform coefficients to obtain transform coefficients, and
inverse transforming the transform coefficients to obtain a reconstructed residue of the block for use in reconstructing the block,
wherein the quantized transform coefficients are decoded using a first flag syntax element indicative of a current one of the quantized transform coefficients being processed is a last non-zero coefficient for the block in a given scanning order having a value greater than or equal to a specified value, a second flag syntax element indicative of whether a current one of the quantized transform coefficients known to be non-zero has an absolute value of one or larger than one, a sig flag syntax element indicative of whether the current one of the quantized transform coefficients has a non-zero value, a last flag syntax element indicative of whether the current one of the quantized transform coefficients having a non-zero value is a last quantized transform coefficient having the non-zero value in the block in the given scanning order, a level syntax element indicative of an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and a sign flag syntax element indicative of a corresponding sign of the current one of the quantized transform coefficients wherein the specified value is one of a plurality of values, said specified value is explicitly signaled for the block and wherein the first flag syntax element, the second flag syntax element, the sig flag syntax element, the last flag syntax element, the level syntax element, and the sign flag syntax element are encoded in the given scanning order.

### Claim 12 (depends on 11)

The method of claim 11, wherein subsequent non-zero coefficients from among the quantized transform coefficients having a value less than the specified value are decoded by decoding only the respective signs of the subsequent non-zero coefficients having the value less than the specified value.

### Claim 13 (depends on 11)

The method of claim 11, wherein a level of the current one of the quantized transform coefficients is decoded by decoding a difference value previously determined between an actual value of the current one of the quantized transform coefficients and the specified value, and adding the difference value to the specified value to obtain the level.

### Claim 14 (depends on 11)

The method of claim 11, wherein at least a sig_flag syntax element, the flag, a last_flag syntax element, a Bin_1 syntax element, a level syntax element, and a sign syntax element are encoded in a same scanning order, the sig_flag syntax element for indicating whether the current one of the quantized transform coefficients has a non-zero value, the last_flag for indicating whether the current one of the quantized transform coefficients having the non-zero value is a last quantized transform coefficient having the non-zero value in the block in a given scanning order, the Bin_1 syntax element for indicating that an absolute value of the current one of the quantized transform coefficients has a currently unknown non-zero value, the level syntax element for indicating an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and the sign syntax element for indicating a corresponding sign of the current one of the quantized transform coefficients.

### Claim 15

An apparatus, comprising:
a memory, and
a processor, configured to perform:
decoding at least a block in a picture by entropy decoding quantized transform coefficients,
de-quantizing the quantized transform coefficients to obtain transform coefficients, and
inverse transforming the transform coefficients to obtain a reconstructed residue of the block for use in reconstructing the block,
wherein the quantized transform coefficients are decoded using a first flag syntax element indicative of a current one of the quantized transform coefficients being processed is a last non-zero coefficient for the block in a given scanning order having a value greater than or equal to a specified value, a second flag syntax element indicative of whether a current one of the quantized transform coefficients known to be non-zero has an absolute value of one or larger than one, a sig flag syntax element indicative of whether the current one of the quantized transform coefficients has a non-zero value, a last flag syntax element indicative of whether the current one of the quantized transform coefficients having a non-zero value is a last quantized transform coefficient having the non-zero value in the block in the given scanning order, a level syntax element indicative of an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and a sign flag syntax element indicative of a corresponding sign of the current one of the quantized transform coefficients wherein the specified value is one of a plurality of values, said specified value is explicitly signaled for the block and wherein the first flag syntax element, the second flag syntax element, the sig flag syntax element, the last flag syntax element, the level syntax element, and the sign flag syntax element are encoded in the given scanning order.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein subsequent non-zero coefficients from among the quantized transform coefficients having a value less than the specified value are decoded by decoding only the respective signs of the subsequent non-zero coefficients having the value less than the specified value.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein a level of the current one of the quantized transform coefficients is decoded by decoding a difference value previously determined between an actual value of the current one of the quantized transform coefficients and the specified value, and adding the difference value to the specified value to obtain the level.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein at least a sig_flag syntax element, the flag, a last_flag syntax element, a Bin_1 syntax element, a level syntax element, and a sign syntax element are encoded in a same scanning order, the sig_flag syntax element for indicating whether the current one of the quantized transform coefficients has a non-zero value, the last_flag for indicating whether the current one of the quantized transform coefficients having the non-zero value is a last quantized transform coefficient having the non-zero value in the block in a given scanning order, the Bin_1 syntax element for indicating that an absolute value of the current one of the quantized transform coefficients has a currently unknown non-zero value, the level syntax element for indicating an absolute value of the current one of the quantized transform coefficients when the current one of the quantized transform coefficients has the absolute value greater than the specified value, and the sign syntax element for indicating a corresponding sign of the current one of the quantized transform coefficients.

### Claim 19

A computer readable storage media having instructions stored therein, which when executed by a processor, implement a method comprising:
decoding at least a block in a picture by entropy decoding quantized transform coefficients,
de-quantizing the quantized transform coefficients to obtain transform coefficients, and
inverse transforming the transform coefficients to obtain a reconstructed residue of the block for use in reconstructing the block, and wherein a flag is indicative of a current one of the quantized transform coefficients being processed being a last non-zero coefficient for the block having a value greater than or equal to a specified value, wherein the specified value is one of a plurality of values, said specified value remains fixed for the block, and said flag is a syntax element.

### Claim 20 (depends on 19)

The computer readable storage medium of claim 19, wherein subsequent non-zero coefficients from among the quantized transform coefficients having a value less than the specified value are decoded by decoding only the respective signs of the subsequent non-zero coefficients having the value less than the specified value.
