# US 2025/0159182 A1 · Transform Coefficient Coding Method and Device Therefor

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

- Number: US 2025/0159182 A1
- Document ID: US20250159182A1
- Status: Published application
- Kind: A1
- Application number: 19/026,773
- Filed: 2025-01-17
- Published: 2025-05-15
- Earliest claimed: 2018-10-05
- Assignees: Rosedale Dynamics LLC
- Applicants: Rosedale Dynamics LLC
- Inventors: Sunmi YOO; Seunghwan KIM; Jungah CHOI; Jangwon CHOI; Jin HEO
- Web page: https://patentgrep.com/patent/US20250159182A1

## CPC

- 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/134: characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/167: Position within a video image, e.g. region of interest [ROI]
- 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/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/129: Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image decoding method performed by a decoding device according to the present document comprises a step of receiving a bitstream containing residual information, and a step of deriving a quantized transform coefficient for a current block on the basis of the residual information contained in the bitstream, wherein the residual information includes a context syntax element coded on the basis of the context, and if the size of a transformation block is changed as much as a sub-block region having a predetermined size and the current block is the last sub-block in the sub-block region and the last quantized transform coefficient is in the current block, then the step of deriving a quantized transform coefficient includes context-based decoding of the context syntax element on the basis of a predetermined maximum value for the context syntax element, wherein the maximum value is determined on the basis of the size of the sub-block region.

## Claims

### Claim 1

(canceled)

### Claim 2

An image encoding method performed by an encoding apparatus, the method comprising:
obtaining a current block of image data;
deriving residual samples for the current block;
deriving transform coefficients based on residual samples for the current block;
generating residual information corresponding to the transform coefficients for the current block, wherein generating the residual information comprises:
determining a maximum value in a context model of context-coded bins for the current block; and
encoding context syntax elements corresponding to the current block based on the maximum value; and
generating a bitstream comprising the residual information.

### Claim 3 (depends on 2)

The method of claim 2, wherein each of a plurality of the context syntax elements includes a significant coefficient flag indicating whether the transform coefficient is a non-zero significant coefficient, a parity level flag indicating a parity of a transform coefficient level for the transform coefficient, a first transform coefficient level flag indicating whether the transform coefficient level is greater than a first threshold value, and a second transform coefficient level flag indicating whether the transform coefficient level for the transform coefficient is greater than a second threshold value.

### Claim 4 (depends on 3)

The method of claim 3, wherein the maximum value is a maximum value of a sum of a plurality of the significant coefficient flags, a plurality of the parity level flags, a plurality of the first transform coefficient level flags, and a plurality of the second transform coefficient level flags.

### Claim 5 (depends on 4)

The method of claim 4, wherein the sum is derived based on a 0th transform coefficient to an nth transform coefficient determined by a coefficient scan order, the method further comprising:
when the sum corresponds to the maximum value, then explicit signaling of a significant coefficient flag, a first transform coefficient level flag, a parity level flag, and a second transform coefficient level flag is omitted for a (n+1) th transform coefficient determined by the coefficient scan order, and a value of the (n+1) th transform coefficient is derived based on a value of coefficient level information included in the residual information.

### Claim 6 (depends on 4)

The method of claim 4, wherein the plurality of the significant coefficient flags, the plurality of the first transform coefficient level flags, the plurality of the parity level flags, and the plurality of the second transform coefficient level flags included in the residual information are context-based coded, and coefficient level information is bypass-based coded.

### Claim 7 (depends on 4)

The method of claim 4, wherein the current block is a transform block, and wherein a specific region of the image includes a plurality of complete sub-blocks.

### Claim 8 (depends on 7)

The method of claim 7, wherein the maximum value (CurrNumTBRegBin) is determined based on the following equation:
CurrNumTBRegBin
=
NumToBeCodedSBB
subblock
⁢
number
⁢
of
⁢
current
⁢
⁢
TB
×
NumTURegBin
[
width
]
[
height
]
|
where NumTURegBin[width][height] designates a maximum number of context-encoded bins that may be used in one transform block based on the size of the transform block, and NumToBeCodedSBB designates a number of the sub-blocks within the specific region.

### Claim 9 (depends on 3)

The method of claim 3, wherein deriving a transform coefficient comprises:
encoding a first transform coefficient level flag and a parity level flag; and
deriving the transform coefficient based on a value of the encoded parity level flag and a value of the encoded first transform coefficient level flag, and
wherein the encoding of the first transform coefficient level flag is performed prior to the encoding of the parity level flag.

### Claim 10 (depends on 2)

The method of claim 2, wherein the image data corresponds to a picture comprising a plurality of blocks.

### Claim 11

An image encoding apparatus, comprising:
one or more processors; and
memory storing instructions that, when executed, are configured to cause the one or more processors to perform operations comprising:
obtaining a current block of image data;
deriving residual samples for the current block;
deriving transform coefficients based on residual samples for the current block;
generating residual information corresponding to the transform coefficients for the current block, wherein generating the residual information comprises:
determining a maximum value in a context model of context-coded bins for the current block; and
encoding context syntax elements corresponding to the current block based on the maximum value; and
generating a bitstream comprising the residual information.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein each of a plurality of the context syntax elements includes a significant coefficient flag indicating whether the transform coefficient is a non-zero significant coefficient, a parity level flag indicating a parity of a transform coefficient level for the transform coefficient, a first transform coefficient level flag indicating whether the transform coefficient level is greater than a first threshold value, and a second transform coefficient level flag indicating whether the transform coefficient level for the transform coefficient is greater than a second threshold value.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the maximum value is a maximum value of a sum of a plurality of the significant coefficient flags, a plurality of the parity level flags, a plurality of the first transform coefficient level flags, and a plurality of the second transform coefficient level flags.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the sum is derived based on a 0th transform coefficient to an nth transform coefficient determined by a coefficient scan order, the operations further comprising:
when the sum corresponds to the maximum value, then explicit signaling of a significant coefficient flag, a first transform coefficient level flag, a parity level flag, and a second transform coefficient level flag is omitted for a (n+1) th transform coefficient determined by the coefficient scan order, and a value of the (n+1) th transform coefficient is derived based on a value of coefficient level information included in the residual information.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein the plurality of the significant coefficient flags, the plurality of the first transform coefficient level flags, the plurality of the parity level flags, and the plurality of the second transform coefficient level flags included in the residual information are context-based coded, and coefficient level information is bypass-based coded.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the current block is a transform block, and wherein a specific region of the image includes a plurality of complete sub-blocks.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the maximum value (CurrNumTBRegBin) is determined based on the following equation:
CurrNumTBRegBin
=
NumToBeCodedSBB
subblock
⁢
number
⁢
of
⁢
current
⁢
⁢
TB
×
NumTURegBin
[
width
]
[
height
]
|
where NumTURegBin[width][height] designates a maximum number of context-encoded bins that may be used in one transform block based on the size of the transform block, and NumToBeCodedSBB designates a number of the sub-blocks within the specific region.

### Claim 18 (depends on 12)

The apparatus of claim 12, wherein deriving a transform coefficient comprises:
encoding a first transform coefficient level flag and a parity level flag; and
deriving the transform coefficient based on a value of the encoded parity level flag and a value of the encoded first transform coefficient level flag, and
wherein the encoding of the first transform coefficient level flag is performed prior to the encoding of the parity level flag.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein the image data corresponds to a picture comprising a plurality of blocks.

### Claim 20

A non-transitory computer-readable medium storing instructions that, when executed, are configured to cause one or more processors to perform operations comprising:
obtaining a current block of image data;
deriving residual samples for the current block;
deriving transform coefficients based on residual samples for the current block;
generating residual information corresponding to the transform coefficients for the current block, wherein generating the residual information comprises:
determining a maximum value in a context model of context-coded bins for the current block; and
encoding context syntax elements corresponding to the current block based on the maximum value; and
generating a bitstream comprising the residual information.

### Claim 21 (depends on 20)

The non-transitory computer-readable medium of claim 20, wherein each of a plurality of the context syntax elements includes a significant coefficient flag indicating whether the transform coefficient is a non-zero significant coefficient, a parity level flag indicating a parity of a transform coefficient level for the transform coefficient, a first transform coefficient level flag indicating whether the transform coefficient level is greater than a first threshold value, and a second transform coefficient level flag indicating whether the transform coefficient level for the transform coefficient is greater than a second threshold value.
