# US 2022/0353534 A1 · Transform Kernel Selection and Entropy Coding

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

- Number: US 2022/0353534 A1
- Document ID: US20220353534A1
- Status: Published application
- Kind: A1
- Application number: 17/866,612
- Filed: 2022-07-18
- Published: 2022-11-03
- Earliest claimed: 2017-02-28
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Yaowu Xu; Jingning Han; Ching-Han Chiang
- Web page: https://patentgrep.com/patent/US20220353534A1

## CPC

- H04N 19/60: using transform coding
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- 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/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/463: by compressing encoding parameters before transmission
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N 11/044: {involving transform coding}
- H04N 19/127: Prioritisation of hardware or computational resources
- 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: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Transform kernel candidates including a vertical transform type associated with a vertical motion and a horizontal transform type associated with a horizontal motion can be encoded or decoded. During a decoding operation, a probability model for decoding encoded bitstream video data associated with a transform kernel candidate for an encoded transform block is identified based on one or both of a first transform kernel candidate selected for an above neighbor transform block of the encoded transform block or a second transform kernel candidate selected for a left neighbor transform block of the encoded transform block. The encoded bitstream video data associated with the transform kernel candidate is decoded using the probability model.

## Claims

### Claim 1

A method, comprising:
identifying a probability model for decoding encoded bitstream video data associated with a transform kernel candidate for an encoded transform block based on one or both of a first transform kernel candidate selected for an above neighbor transform block of the encoded transform block or a second transform kernel candidate selected for a left neighbor transform block of the encoded transform block; and
decoding the encoded bitstream video data associated with the transform kernel candidate using the probability model.

### Claim 2 (depends on 1)

The method of claim 1, wherein decoding the encoded bitstream video data associated with the transform kernel candidate using the probability model comprises:
decoding encoded data associated with a vertical transform type of the transform kernel candidate using a vertical context of the probability model; and
decoding encoded data associated with a horizontal transform type of the transform kernel candidate using a horizontal context of the probability model.

### Claim 3 (depends on 1)

The method of claim 1, wherein the encoded transform block is associated with an encoded video frame, the method comprising:
updating the probability model based on a number of times encoded transform blocks associated with the encoded video frame are decoded using the transform kernel candidate.

### Claim 4 (depends on 1)

The method of claim 1, comprising:
determining that at least one quantized transform coefficient of the encoded transform block is a non-zero coefficient,
wherein the probability model is identified responsive to determining that the at least one quantized transform coefficient of the encoded transform block is a non-zero coefficient.

### Claim 5 (depends on 1)

The method of claim 1, comprising:
decoding, from a bitstream including the encoded bitstream video data, a skip flag for a second encoded transform block using a second probability model.

### Claim 6 (depends on 1)

The method of claim 1, wherein the transform kernel candidate is from a plurality of transform kernel candidates, at least some of the plurality of available transform candidates based on respective shapes of vertical motion and horizontal motion of a residual block.

### Claim 7 (depends on 1)

The method of claim 1, wherein the transform kernel candidate is based on a shape of vertical motion of a residual block corresponding to the encoded transform block and a shape of horizontal motion of the residual block.

### Claim 8 (depends on 1)

The method of claim 1, wherein at least one of the first transform kernel candidate or the second transform kernel candidate is one of a DCT, an ADST, a flipped ADST, or an identity transform.

### Claim 9

An apparatus, comprising:
a processor configured to:
identify a probability model for decoding encoded bitstream video data associated with a transform kernel candidate for an encoded transform block based on one or both of a first transform kernel candidate selected for an above neighbor transform block of the encoded transform block or a second transform kernel candidate selected for a left neighbor transform block of the encoded transform block; and
decode the encoded bitstream video data associated with the transform kernel candidate using the probability model.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein to decode the encoded bitstream video data associated with the transform kernel candidate using the probability model comprises to:
decode encoded data associated with a vertical transform type of the transform kernel candidate using a vertical context of the probability model; and
decode encoded data associated with a horizontal transform type of the transform kernel candidate using a horizontal context of the probability model.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the encoded transform block is associated with an encoded video frame, and the processor is configured to:
update the probability model based on a number of times encoded transform blocks associated with the encoded video frame are decoded using the transform kernel candidate.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein the processor is configured to:
determine that at least one quantized transform coefficient of the encoded transform block is a non-zero coefficient,
wherein the probability model is identified responsive to determining that the at least one quantized transform coefficient of the encoded transform block is a non-zero coefficient.

### Claim 13 (depends on 9)

The apparatus of claim 9, wherein the processor is configured to:
decode, from a bitstream including the encoded bitstream video data, a skip flag for a second encoded transform block using a second probability model.

### Claim 14 (depends on 9)

The apparatus of claim 9, wherein the transform kernel candidate is based on a shape of vertical motion of a residual block corresponding to the encoded transform block and a shape of horizontal motion of the residual block.

### Claim 15 (depends on 9)

The apparatus of claim 9, wherein at least one of the first transform kernel candidate or the second transform kernel candidate is one of a DCT, an ADST, a flipped ADST, or an identity transform.

### Claim 16

An apparatus, comprising:
a processor configured to:
identify a probability model for decoding encoded bitstream video data associated with a transform kernel candidate for an encoded transform block based on one or both of a first transform kernel candidate selected for an above neighbor transform block of the encoded transform block or a second transform kernel candidate selected for a left neighbor transform block of the encoded transform block; and
decode the encoded bitstream video data associated with the transform kernel candidate using the probability model, wherein the transform kernel candidate is from a plurality of transform kernel candidates, at least some of the plurality of transform candidates based on respective shapes of vertical motion and horizontal motion of a residual block.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the transform kernel candidate is based on a shape of vertical motion of a first residual block corresponding to the encoded transform block and a shape of horizontal motion of the first residual block.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein to identify the probability model comprises to:
determine a vertical context based on a first vertical transform type of the first transform kernel candidate and a second vertical transform type of the second transform kernel candidate;
determine a horizontal context based on a first horizontal transform type of the first transform kernel candidate and a second horizontal transform type of the second transform kernel candidate; and
identify the probability model using the vertical context and the horizontal context.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein to decode the encoded bitstream video data comprises to:
decode, based on the probability model, a first index corresponding to a vertical transform type of the transform kernel candidate and a second index corresponding to a horizontal transform type of the transform kernel candidate.

### Claim 20 (depends on 16)

The apparatus of claim 16, wherein to identify the probability model comprises to identify the probability model is responsive to determining that at least one quantized transform coefficient of the encoded transform block is a non-zero coefficient.
