# US 2022/0295099 A1 · Context modeling of reduced secondary transforms in video

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

- Number: US 2022/0295099 A1
- Document ID: US20220295099A1
- Status: Published application
- Kind: A1
- Application number: 17/400,464
- Filed: 2021-08-12
- Published: 2022-09-15
- Earliest claimed: 2019-05-10
- Assignees: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Inventors: Li ZHANG; Kai ZHANG; Hongbin LIU; Yue WANG
- Web page: https://patentgrep.com/patent/US20220295099A1

## CPC

- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/11: among a plurality of spatial predictive coding modes
- 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/124: Quantisation
- 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/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- 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/593: involving spatial prediction techniques
- H04N 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video processing method is provided to include: performing a conversion between a current video block of a video and a coded representation of the video, wherein the performing of the conversion includes configuring, based on a characteristic of the current video block of a video, a context model for coding a bin or bypass coding the bin of a bin string corresponding to an index of a secondary transform tool, wherein the index indicates an applicability of the secondary transform tool and/or a kernel information of the secondary transform tool, and wherein the secondary transform tool includes applying, during encoding, a forward secondary transform to an output of a forward primary transform applied to a residual of a video block prior to quantization, or wherein the secondary transform tool includes applying, during decoding, an inverse secondary transform to an output of dequantization to the video block before applying an inverse primary transform.

## Claims

### Claim 1

A method of processing video data, comprising:
performing a conversion between a current video block of a video and a bitstream of the video,
wherein the performing of the conversion includes configuring, based on characteristics of the current video block of the video, a context model for coding a bin of a bin string corresponding to an index of a secondary transform tool,
wherein the index indicates an applicability of the secondary transform tool and/or a kernel information of the secondary transform tool, and
wherein the secondary transform tool includes applying, during encoding, a forward secondary transform to an output of a forward primary transform applied to a residual of a video block prior to quantization, or
wherein the secondary transform tool includes applying, during decoding, an inverse secondary transform to an output of dequantization to the video block before applying an inverse primary transform.

### Claim 2 (depends on 1)

The method of claim 1, wherein the context model allows a second bin to be coded with only one context.

### Claim 3 (depends on 1)

The method of claim 1, wherein the characteristics include a splitting scheme of a partitioning process for the current video block.

### Claim 4 (depends on 3)

The method of claim 3, wherein the characteristics further include a color component of the current video block.

### Claim 5 (depends on 1)

The method of claim 1, wherein the characteristics exclude an intra prediction mode of the current video block.

### Claim 6 (depends on 5)

The method of claim 5, wherein the characteristics further exclude an index of a multiple transform selection (MTS) process for the current video block.

### Claim 7 (depends on 1)

The method of claim 1, wherein the bin string corresponding to the index of a secondary transform tool index of a secondary transform tool is present in the bitstream based on whether a transform skip mode is applied to the current video block.

### Claim 8 (depends on 1)

The method of claim 1, wherein, in response to the transform skip mode is applied, the bin string is not present in the bitstream.

### Claim 9 (depends on 7)

The method of claim 7, wherein the bin string is present in the bitstream further based on at least one coded block flag, wherein the at least one coded block flag indicates whether one or more transform coefficient levels are not equal to 0.

### Claim 10 (depends on 9)

The method of claim 9, wherein the at least one coded block flag is present in the bitstream before the bin string.

### Claim 11 (depends on 1)

The method of claim 1, wherein the secondary transform tool corresponds to a low frequency non-separable transform (LFNST) tool.

### Claim 12 (depends on 1)

The method of claim 1, wherein the conversion includes encoding the current video block into the bitstream.

### Claim 13 (depends on 1)

The method of claim 1, wherein the conversion includes decoding the current video block from the bitstream.

### Claim 14

An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
perform a conversion between a current video block of a video and a bitstream of the video,
wherein the performing of the conversion includes configuring, based on characteristics of the current video block of the video, a context model for coding a bin of a bin string corresponding to an index of a secondary transform tool,
wherein the index indicates an applicability of the secondary transform tool and/or a kernel information of the secondary transform tool, and
wherein the secondary transform tool includes applying, during encoding, a forward secondary transform to an output of a forward primary transform applied to a residual of a video block prior to quantization, or
wherein the secondary transform tool includes applying, during decoding, an inverse secondary transform to an output of dequantization to the video block before applying an inverse primary transform.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the context model allows a second bin to be coded with only one context.

### Claim 16 (depends on 14)

The apparatus of claim 14, wherein the characteristics further exclude an index of a multiple transform selection (MTS) process for the current video block.

### Claim 17 (depends on 14)

The apparatus of claim 14, wherein the bin string corresponding to the index of a secondary transform tool index of a secondary transform tool is present in the bitstream based on whether a transform skip mode is applied to the current video block.

### Claim 18 (depends on 14)

The apparatus of claim 14, wherein, in response to the transform skip mode is applied, the bin string is not present in the bitstream.

### Claim 19

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
perform a conversion between a current video block of a video and a bitstream of the video,
wherein the performing of the conversion includes configuring, based on characteristics of the current video block of the video, a context model for coding a bin of a bin string corresponding to an index of a secondary transform tool,
wherein the index indicates an applicability of the secondary transform tool and/or a kernel information of the secondary transform tool, and
wherein the secondary transform tool includes applying, during encoding, a forward secondary transform to an output of a forward primary transform applied to a residual of a video block prior to quantization, or
wherein the secondary transform tool includes applying, during decoding, an inverse secondary transform to an output of dequantization to the video block before applying an inverse primary transform.

### Claim 20

A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:
generating the bitstream for a current video block of the video,
wherein the generating the bitstream includes configuring, based on characteristics of the current video block of the video, a context model for coding a bin of a bin string corresponding to an index of a secondary transform tool,
wherein the index indicates an applicability of the secondary transform tool and/or a kernel information of the secondary transform tool, and
wherein the secondary transform tool includes applying, during encoding, a forward secondary transform to an output of a forward primary transform applied to a residual of a video block prior to quantization, or
wherein the secondary transform tool includes applying, during decoding, an inverse secondary transform to an output of dequantization to the video block before applying an inverse primary transform.
