# US 2023/0056351 A1 · Coded-block-flag coding and derivation

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

- Number: US 2023/0056351 A1
- Document ID: US20230056351A1
- Status: Published application
- Kind: A1
- Application number: 17/982,623
- Filed: 2022-11-08
- Published: 2023-02-23
- Earliest claimed: 2012-06-22
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Bin Li; Jizheng Xu
- Web page: https://patentgrep.com/patent/US20230056351A1

## CPC

- H04N 19/18: the unit being a set of transform coefficients
- 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/463: by compressing encoding parameters before transmission
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Techniques for coding and deriving (e.g., determining) one or more coded-block-flags associated with video content are described herein. A coded-block-flag of a last node may be determined when coded-block-flags of preceding nodes are determined to be a particular value and when a predetermined condition is satisfied. In some instances, the predetermined condition may be satisfied when log2(size of current transform unit) is less than log2(size of maximum transform unit) or log2(size of current coding unit) is less than or equal to log2(size of maximum transform unit)+1. The preceding nodes may be nodes that precede the last node on a particular level in a residual tree.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

A computer system comprising one or more processing units and memory, wherein the computer system implements a video encoder configured to perform operations comprising:
encoding video content to produce compressed data, including, for a given coding unit (“CU”) of the video content:
determining that a root transform unit (“TU”) of a residual quadtree for the given CU includes residual information;
determining a value of a coded block flag (“CBF”) for the root TU, the value of the CBF for the root TU indicating the root TU includes residual information;
signaling, as part of the compressed data, the value of the CBF for the root TU;
determining whether to split the root TU into multiple nodes, each of the multiple nodes being associated with a block, including determining that a predetermined condition is satisfied, the predetermined condition relating to a predetermined maximum TU size, wherein the determining that the predetermined condition is satisfied includes determining that log2(a TU size)<log2(the predetermined maximum TU size);
determining values of multiple preceding CBFs for multiple blocks, the values of the multiple preceding CBFs indicating the multiple blocks, respectively, do not include residual information; and
based at least in part on the values of the multiple preceding CBFs indicating the multiple blocks, respectively, do not include residual information, determining a value of a CBF for a given block, the value of the CBF for the given block indicating that the given block includes residual information, and refraining from signaling, as part of the compressed data, the value of the CBF for the given block; and
outputting the compressed data as part of a bitstream, wherein the compressed data includes the value of the CBF for the root TU but not the value of the CBF for the given block, the value of the CBF for the root TU being signaled for the given CU.

### Claim 22 (depends on 21)

The computer system of claim 21, wherein the given CU is encoded using inter-prediction.

### Claim 23 (depends on 21)

The computer system of claim 21, wherein the compressed data includes a tree structure for the residual quadtree, the tree structure including:
one or more values of split flags for TUs of the residual quadtree;
zero or more values of CBFs for the TUs of the residual quadtree; and
for each un-split TU of the residual quadtree that includes residual information, residual information for that un-split TU of the residual quadtree.

### Claim 24 (depends on 21)

The computer system of claim 21, wherein, within the bitstream, any values of CBFs for the multiple nodes are signaled in a tree structure for the residual quadtree.

### Claim 25 (depends on 21)

The computer system of claim 21, wherein the multiple blocks and the given block are on a same level of the residual quadtree.

### Claim 26 (depends on 21)

The computer system of claim 21, wherein the encoding the video content further includes, for the given CU:
performing prediction operations to produce predicted values for the given CU; and
based on differences between pixel values for the given CU and the predicted values, generating the residual information for the given CU.

### Claim 27 (depends on 21)

The computer system of claim 21, wherein the given block is for a luma component.

### Claim 28

One or more non-transitory computer-readable media having stored thereon compressed data as part of a bitstream, the compressed data including a value of a coded block flag (“CBF”) for a root transform unit (“TU”) of a residual quadtree for a given coding unit (“CU”) of video content, the value of the CBF for the root TU being signaled for the given CU, and wherein the compressed data is produced by encoding the video content with operations that include, for the given CU:
determining that the root TU of the residual quadtree for the given CU includes residual information;
determining the value of the CBF for the root TU, the value of the CBF for the root TU indicating the root TU includes residual information;
signaling, as part of the compressed data, the value of the CBF for the root TU;
determining whether to split the root TU into multiple nodes, each of the multiple nodes being associated with a block, including determining that a predetermined condition is satisfied, the predetermined condition relating to a predetermined maximum TU size, wherein the determining that the predetermined condition is satisfied includes determining that log2(a TU size)<log2(the predetermined maximum TU size);
determining values of multiple preceding CBFs for multiple blocks, the values of the multiple preceding CBFs indicating the multiple blocks, respectively, do not include residual information; and
based at least in part on the values of the multiple preceding CBFs indicating the multiple blocks, respectively, do not include residual information, determining a value of a CBF for a given block, the value of the CBF for the given block indicating that the given block includes residual information, and refraining from signaling, as part of the compressed data, the value of the CBF for the given block.

### Claim 29 (depends on 28)

The one or more computer-readable media of claim 28, wherein the given CU is encoded using inter-prediction.

### Claim 30 (depends on 28)

The one or more computer-readable media of claim 28, wherein the compressed data includes a tree structure for the residual quadtree, the tree structure including:
one or more values of split flags for TUs of the residual quadtree;
zero or more values of CBFs for the TUs of the residual quadtree; and
for each un-split TU of the residual quadtree that includes residual information, residual information for that un-split TU of the residual quadtree.

### Claim 31 (depends on 28)

The one or more computer-readable media of claim 28, wherein, within the bitstream, any values of CBFs for the multiple nodes are signaled in a tree structure for the residual quadtree.

### Claim 32 (depends on 28)

The one or more computer-readable media of claim 28, wherein the multiple blocks and the given block are on a same level of the residual quadtree.

### Claim 33 (depends on 28)

The one or more computer-readable media of claim 28, wherein the operations further include, for the given CU:
performing prediction operations to produce predicted values for the given CU; and
based on differences between pixel values for the given CU and the predicted values, generating the residual information for the given CU.

### Claim 34

In a computer system that implements a video decoder, a method comprising:
receiving compressed data as part of a bitstream; and
decoding the compressed data to reconstruct video content, including, for a given coding unit (“CU”) of the video content:
determining a value of a coded block flag (“CBF”) for a root transform unit (“TU”) of a residual quadtree for the given CU, the value of the CBF for the root TU indicating the root TU includes residual information, wherein the compressed data includes the value of the CBF for the root TU, the value of the CBF for the root TU being signaled for the given CU;
determining, based on the value of the CBF for the root TU, that the root TU includes residual information;
determining whether the root TU is split into multiple nodes, each of the multiple nodes being associated with a block, including determining that a predetermined condition is satisfied, the predetermined condition relating to a predetermined maximum TU size, wherein the determining that the predetermined condition is satisfied includes determining that log2(a TU size)<log2(the predetermined maximum TU size);
determining values of multiple preceding CBFs for multiple blocks, the values of the multiple preceding CBFs indicating the multiple blocks, respectively, do not include residual information; and
based at least in part on the values of the multiple preceding CBFs indicating the multiple blocks, respectively, do not include residual information, determining a value of a CBF for a given block, the value of the CBF for the given block indicating that the given block includes residual information, wherein the compressed data does not include the value of the CBF for the given block.

### Claim 35 (depends on 34)

The method of claim 34, wherein the given CU is decoded using inter-prediction.

### Claim 36 (depends on 34)

The method of claim 34, wherein the compressed data includes a tree structure for the residual quadtree, the tree structure including:
one or more values of split flags for TUs of the residual quadtree;
zero or more values of CBFs for the TUs of the residual quadtree; and
for each un-split TU of the residual quadtree that includes residual information, residual information for that un-split TU of the residual quadtree.

### Claim 37 (depends on 34)

The method of claim 34, wherein the multiple blocks and the given block are on a same level of the residual quadtree.

### Claim 38 (depends on 34)

The method of claim 34, further comprising, for the given CU:
performing prediction operations to produce predicted values for the given CU; and
combining the predicted values and the residual information for the given CU to reconstruct pixel values for the given CU.

### Claim 39 (depends on 34)

The method of claim 34, wherein, within the bitstream, any values of CBFs for the multiple nodes are signaled in a tree structure for the residual quadtree.

### Claim 40 (depends on 34)

The method of claim 34, wherein the given block is for a luma component.
