# US 12,113,990 B2 · Method and apparatus for video coding

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

- Number: US 12,113,990 B2
- Document ID: US12113990B2
- Status: Granted
- Kind: B2
- Application number: 17/446,065
- Filed: 2021-08-26
- Published: 2021-12-16
- Granted: 2024-10-08
- Earliest claimed: 2019-04-04
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Xin Zhao; Xiang Li; Shan Liu
- Web page: https://patentgrep.com/patent/US12113990B2

## 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/186: the unit being a colour or a chrominance component
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- 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/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/463: by compressing encoding parameters before transmission
- 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

## Abstract

Aspects of the disclosure provide methods and apparatuses for video encoding/decoding. Processing circuitry in an apparatus decodes coded information of a coding unit (CU) from a coded video bitstream. The coded information indicates a last position of non-zero transform coefficients of a first coding block (CB) of the CU. The processing circuitry determines whether a secondary transform index is signaled in the coded information based at least on comparison to a threshold value and whether to perform a secondary transform on a second CB of the CU based on whether the secondary transform index is determined to be signaled in the coded information. When the secondary transform is determined to be performed, the processing circuitry performs the secondary transform on the second CB and reconstructs the second CB. When the secondary transform is determined not performed, the second CB is reconstructed without performing the secondary transform on the second CB.

## Claims

### Claim 1

A method for video decoding, comprising:
decoding coding information of a coding unit (CU) from a coded video bitstream, the coding information indicating a size of the CU, the CU including at least one chroma block;
determining a maximum transform unit (TU) size in the CU from the coded video bitstream;
determining a CU width threshold and a CU height threshold, the CU width threshold and the CU height threshold being both less than the maximum TU size; and
determining whether a secondary transform is allowed for the CU including the at least one chroma block, wherein
when the secondary transform is allowed and a secondary transform index for the secondary transform is signaled, the size of the CU is less than or equal to the CU width threshold or the CU height threshold.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
when the size of the CU is less than or equal to the CU width threshold or the CU height threshold,
determining a number of non-zero transform coefficients for at least one CB in the CU, a size of each of the at least one CB being larger than or equal to a first threshold; and
when the number of non-zero transform coefficients is less than a second threshold, determining that the secondary transform index is not signaled in the coding information.

### Claim 3 (depends on 2)

The method of claim 2, wherein
the coding information indicates that a color format for the CU is YUV 4:2:0;
the CU includes a luma block and two chroma blocks; and
the method further includes:
determining whether a first dimension of the luma block is 4 and a second dimension of the luma block is N, N being larger than or equal to 4; and
when the first and second dimensions are determined to be 4 and N, respectively, the determining the number of non-zero transform coefficients includes determining the number of non-zero transform coefficients from only the luma block, the at least one CB being the luma block.

### Claim 4 (depends on 2)

The method of claim 2, wherein
the coding information indicates that a color format for the CU is YUV 4:2:2;
the CU includes a luma block and two chroma blocks; and
the method further includes:
determining whether a size of the luma block is 4×N, N being larger than or equal to 4; and
when the size of the luma block is determined to be 4×N, N and 4 being a height and a width of the luma block, respectively, the determining the number of non-zero transform coefficients includes determining the number of non-zero transform coefficients from only the luma block, the at least one CB being the luma block.

### Claim 5

A method for video encoding, comprising:
determining whether a secondary transform is allowed based on a size of a coding unit (CU), a CU width threshold, and a CU height threshold, the CU width threshold and the CU height threshold being both less than a maximum transform unit (TU) size in the CU; and
encoding coding information of the CU in a coded video bitstream based on whether the secondary transform is determined to be allowed, the coding information indicating the size of the CU, wherein
when the size of the CU is less than or equal to the CU width threshold or the CU height threshold, the secondary transform is allowed and a secondary transform index for the secondary transform is signaled in the coding information.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
when the size of the CU is less than or equal to the CU width threshold or the CU height threshold,
determining a number of non-zero transform coefficients for at least one CB in the CU, a size of each of the at least one CB being larger than or equal to a first threshold; and
when the number of non-zero transform coefficients is less than a second threshold, a secondary transform index is not signaled in the coding information.

### Claim 7 (depends on 6)

The method of claim 6, wherein
a color format for the CU is YUV 4:2:0;
the CU includes a luma block and two chroma blocks; and
the method further includes:
determining whether a first dimension of the luma block is 4 and a second dimension of the luma block is N, N being larger than or equal to 4; and
when the first and second dimensions are 4 and N, respectively, the determining the number of non-zero transform coefficients includes determining the number of non-zero transform coefficients from only the luma block, the at least one CB being the luma block.

### Claim 8 (depends on 6)

The method of claim 6, wherein
a color format for the CU is YUV 4:2:2;
the CU includes a luma block and two chroma blocks; and
the method further includes:
determining whether a size of the luma block is 4×N, N being larger than or equal to 4; and
when the size of the luma block is 4×N, N and 4 being a height and a width of the luma block, respectively, the determining the number of non-zero transform coefficients includes determining the number of non-zero transform coefficients from only the luma block, the at least one CB being the luma block.

### Claim 9

A method of processing visual media data, the method comprising:
processing a bitstream of the visual media data according to a format rule, wherein
the bitstream includes coding information of a coding unit (CU), the coding information indicating a size of the CU, the CU including at least one chroma block; and
the format rule specifies that
a maximum transform unit (TU) size in the CU is determined from the bitstream,
a CU width threshold and a CU height threshold are both less than the maximum TU size,
whether a secondary transform is allowed for the CU including the at least one chroma block is determined, and
when the secondary transform is allowed and a secondary transform index for the secondary transform is signaled, the size of the CU is less than or equal to the CU width threshold or the CU height threshold.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
when the size of the CU is less than or equal to the CU width threshold or the CU height threshold,
determining a number of non-zero transform coefficients for at least one CB in the CU, a size of each of the at least one CB being larger than or equal to a first threshold; and
when the number of non-zero transform coefficients is less than a second threshold, the format rule specifies that the secondary transform index is not signaled in the coding information.

### Claim 11 (depends on 10)

The method of claim 10, wherein
the coding information indicates that a color format for the CU is YUV 4:2:0;
the CU includes a luma block and two chroma blocks; and
the format rule specifies that:
whether a first dimension of the luma block is 4 and a second dimension of the luma block is N are determined, N being larger than or equal to 4, and
when the first and second dimensions are 4 and N, respectively, the number of non-zero transform coefficients is determined from only the luma block, the at least one CB being the luma block.

### Claim 12 (depends on 10)

The method of claim 10, wherein
the coding information indicates that a color format for the CU is YUV 4:2:2;
the CU includes a luma block and two chroma blocks; and
the format rule specifies that:
whether a size of the luma block is 4×N is determined, N being larger than or equal to 4; and
when the size of the luma block is 4×N, N and 4 being a height and a width of the luma block, respectively, the number of non-zero transform coefficients is determined from only the luma block, the at least one CB being the luma block.
