# US 2023/0054294 A1 · Transform-based image coding method and device for same

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

- Number: US 2023/0054294 A1
- Document ID: US20230054294A1
- Status: Published application
- Kind: A1
- Application number: 17/791,478
- Filed: 2021-01-08
- Published: 2023-02-23
- Earliest claimed: 2020-01-10
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Moonmo KOO; Seunghwan KIM; Jaehyun LIM
- Web page: https://patentgrep.com/patent/US20230054294A1

## CPC

- 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/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- 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/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- 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/186: the unit being a colour or a chrominance component
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image decoding method according to the present document may comprise a step for deriving corrected transform coefficients, wherein the step for deriving corrected transform coefficients may comprise the steps of: determining whether the tree type of the current block is a single tree; deriving a first variable and a second variable for a luma component of the current block and not deriving the first and second variables for a chroma component of the current block if the tree type is the first tree; parsing an LFNST index on the basis of the first variable and the second variable; and deriving the corrected transform coefficients by applying an LFNST kernel derived on the basis of the LFNST index.

## Claims

### Claim 1

An image decoding method performed by a decoding apparatus, comprising:
receiving residual information from a bitstream;
deriving transform coefficients for a current block based on the residual information; and
deriving modified transform coefficients by applying LFNST to the transform coefficients,
wherein the deriving modified transform coefficients comprises:
determining whether or not a tree type of the current block is a single tree;
deriving a first variable and a second variable for a luma component of the current block, and not deriving the first variable and the second variable for a chroma component of the current block when the tree type is a single tree;
parsing an LFNST index based on the first variable and the second variable; and
deriving the modified transform coefficients by applying an LFNST kernel that is derived based on the LFNST index.

### Claim 2 (depends on 1)

The image decoding method of claim 1, wherein the first variable indicates whether or not a significant coefficient is present in a position other than a DC component of the current block,
wherein the second variable indicates whether or not the transform coefficient is present in a second region excluding a top-left first region of the current block,
wherein the first variable and the second variable are initially set to 1,
wherein, when a significant coefficient is present in the position other than the DC component of the current block, the first variable is updated to 0,
wherein, when the transform coefficient is present in the second region, the second variable is updated to 0, and
wherein the LFNST index is parsed based on the first variable being equal to 0 and the second variable being equal to 1.

### Claim 3 (depends on 2)

The image decoding method of claim 2, wherein, when the tree type is a dual tree luma, the first variable and the second variable are derived for a luma component of the current block.

### Claim 4 (depends on 2)

The image decoding method of claim 2, wherein, when the tree type is a dual tree chroma, the first variable and the second variable are derived for a first chroma component and a second chroma component of the current block.

### Claim 5 (depends on 4)

The image decoding method of claim 4, wherein, when the first variable for the first chroma component is updated to 0, the first variable is not changed once again.

### Claim 6 (depends on 3)

The image decoding method of claim 3, wherein, when the tree type is the single tree and the dual tree luma, the first variable is derived based on a transform skip flag value for the luma component.

### Claim 7 (depends on 4)

The image decoding method of claim 4, wherein, when the tree type is the dual tree chroma, the first variable is derived based on a transform skip flag value for the first chroma component and a transform skip flag value for the second chroma component.

### Claim 8

An image encoding method performed by an image encoding apparatus, comprising:
deriving prediction samples for a current block;
deriving residual samples for the current block based on the prediction samples;
deriving transform coefficients for the current block based on a primary transform for the residual samples; and
deriving modified transform coefficients from the transform coefficients by applying LFNST,
wherein the deriving modified transform coefficients comprises:
determining whether or not a tree type of the current block is a single tree;
deriving a first variable and a second variable for a luma component of the current block, and not deriving the first variable and the second variable for a chroma component of the current block when the tree type is a single tree; and
deriving the modified transform coefficients based on the first variable and the second variable.

### Claim 9 (depends on 8)

The image encoding method of claim 8, wherein the first variable indicates whether or not a significant coefficient is present in a position other than a DC component of the current block,
wherein the second variable indicates whether or not the transform coefficient is present in a second region excluding a top-left first region of the current block,
wherein the first variable and the second variable are initially set to 1,
wherein, when a significant coefficient is present in the position other than the DC component of the current block, the first variable is updated to 0,
wherein, when the transform coefficient is present in the second region, the second variable is updated to 0, and
wherein the LFNST index is parsed based on the first variable being equal to 0 and the second variable being equal to 1.

### Claim 10 (depends on 9)

The image encoding method of claim 9, wherein, when the tree type is a dual tree luma, the first variable and the second variable are derived for a luma component of the current block.

### Claim 11 (depends on 9)

The image encoding method of claim 9, wherein, when the tree type is a dual tree chroma, the first variable and the second variable are derived for a first chroma component and a second chroma component of the current block.

### Claim 12 (depends on 11)

The image encoding method of claim 11, wherein, when the first variable for the first chroma component is updated to 0, the first variable is not changed once again.

### Claim 13 (depends on 10)

The image encoding method of claim 10, wherein, when the tree type is the single tree and the dual tree luma, the first variable is derived based on a transform skip flag value for the luma component.

### Claim 14 (depends on 11)

The image encoding method of claim 11, wherein, when the tree type is the dual tree chroma, the first variable is derived based on a transform skip flag value for the first chroma component and a transform skip flag value for the second chroma component.

### Claim 15

A non-transitory computer readable digital recording medium that stores a itstream generated by a method, the method comprising:
deriving prediction samples for a current block;
deriving residual samples for the current block based on the prediction samples;
deriving transform coefficients for the current block based on a primary transform for the residual samples;
deriving modified transform coefficients from the transform coefficients by applying LFNST, and
encoding residual information relate to the modified transform coefficients;
wherein the deriving modified transform coefficients comprises:
determining whether or not a tree type of the current block is a single tree;
deriving a first variable and a second variable for a luma component of the current block, and not deriving the first variable and the second variable for a chroma component of the current block when the tree type is a single tree; and
deriving the modified transform coefficients based on the first variable and the second variable.
