# US 2026/0075222 A1 · Coding Unit Prediction Using Template Matching Costs

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

- Number: US 2026/0075222 A1
- Document ID: US20260075222A1
- Status: Published application
- Kind: A1
- Application number: 19/395,972
- Filed: 2025-11-20
- Published: 2026-03-12
- Earliest claimed: 2022-12-09
- Assignees: Comcast Cable Communications, LLC
- Applicants: Comcast Cable Communications, LLC
- Inventors: Alexey Konstantinovich Filippov; Vasily Alexeevich Rufitskiy; Esmael Hejazi Dinan
- Web page: https://patentgrep.com/patent/US20260075222A1

## CPC

- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/156: Availability of hardware or computational resources, e.g. encoding based on power-saving criteria
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/50: using predictive coding (H04N19/61 takes precedence)
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Template matching (TM) costs for a coding unit (CU) may be used to determine a bi-directional prediction with CU weights (BCW) weights to predict the CU. The TM cost may be determined based on templates of a block (e.g., a current block and/or a reference block). The TM cost may be determined based on one or more color component (e.g., collocated luma and chroma components) of the CU by calculating the TM cost as a weighted sum that may use the one or more color components.

## Claims

### Claim 1

A method comprising:
determining, by a computing device, a template matching (TM) cost for a current block of content based on two or more color components of the current block; and
decoding the current block using a bidirectional prediction with coding unit weights (BCW) weight determined based on the determined TM cost.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining a plurality of TM costs for a plurality of BCW weights for the current block; and
based on the determined plurality of TM costs, selecting the BCW weight from the plurality of BCW weights.

### Claim 3 (depends on 1)

The method of claim 1, wherein the current block is of a YCbCr type, and wherein the determining the TM cost comprises:
selecting, based on a chroma format of the current block, weighting coefficients for the TM cost; and
calculating, based on the weighting coefficients, the TM cost.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
based on respective similarities between each of a first reference block and a second reference block, and the current block, determining respective weighting factors for the first reference block and the second reference block.

### Claim 5 (depends on 1)

The method of claim 1, wherein the two or more color components comprise a luma component and a chroma component.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining, based on the BCW weight, a prediction block, wherein the decoding comprises decoding, based on the prediction block, the current block.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
determining a plurality of BCW weights comprising:
an initial BCW weight;
a first BCW weight that is immediately lower than the initial BCW weight in a list of candidate BCW weights; and
a second BCW weight that is immediately higher than the initial BCW weight in the list of candidate BCW weights.

### Claim 8

A computing device comprising:
one or more processors; and
memory storing instructions that, when executed by the one or more processors, cause the computing device to:
determine a template matching (TM) cost for a current block of content based on two or more color components of the current block; and
decode the current block using a bidirectional prediction with coding unit weights (BCW) weight determined based on the determined TM cost.

### Claim 9 (depends on 8)

The computing device of claim 8, wherein the instructions, when executed by the one or more processors, further cause the computing device to:
determine a plurality of TM costs for a plurality of BCW weights for the current block; and
based on the determined plurality of TM costs, select the BCW weight from the plurality of BCW weights.

### Claim 10 (depends on 8)

The computing device of claim 8, wherein the current block is of a YCbCr type, and wherein the instructions, when executed, further cause the computing device to determine the TM cost by:
selecting, based on a chroma format of the current block, weighting coefficients for the TM cost; and
calculating, based on the weighting coefficients, the TM cost.

### Claim 11 (depends on 8)

The computing device of claim 8, wherein the instructions, when executed by the one or more processors, further cause the computing device to:
based on respective similarities between each of a first reference block and a second reference block, and the current block, determine respective weighting factors for the first reference block and the second reference block.

### Claim 12 (depends on 8)

The computing device of claim 8, wherein the two or more color components comprise a luma component and a chroma component.

### Claim 13 (depends on 8)

The computing device of claim 8, wherein the instructions, when executed by the one or more processors, further cause the computing device to:
determine, based on the BCW weight, a prediction block, and
decode the current block by decoding, based on the prediction block, the current block.

### Claim 14 (depends on 8)

The computing device of claim 8, wherein the instructions, when executed by the one or more processors, further cause the computing device to:
determine a plurality of BCW weights comprising:
an initial BCW weight;
a first BCW weight that is immediately lower than the initial BCW weight in a list of candidate BCW weights; and
a second BCW weight that is immediately higher than the initial BCW weight in the list of candidate BCW weights.

### Claim 15

One or more non-transitory computer-readable media storing instructions that, when executed, cause a computing device to:
determine a template matching (TM) cost for a current block of content based on two or more color components of the current block; and
decode the current block using a bidirectional prediction with coding unit weights (BCW) weight determined based on the determined TM cost.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the instructions, when executed, cause the computing device to:
determine a plurality of TM costs for a plurality of BCW weights for the current block; and
based on the determined plurality of TM costs, select the BCW weight from the plurality of BCW weights.

### Claim 17 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the current block is of a YCbCr type, and wherein the instructions, when executed, cause the computing device to determine the TM cost by:
selecting, based on a chroma format of the current block, weighting coefficients for the TM cost; and
calculating, based on the weighting coefficients, the TM cost.

### Claim 18 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the instructions, when executed, cause the computing device to:
based on respective similarities between each of a first reference block and a second reference block, and the current block, determine respective weighting factors for the first reference block and the second reference block.

### Claim 19 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the two or more color components comprise a luma component and a chroma component.

### Claim 20 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the instructions, when executed, further cause the computing device to:
determine, based on the BCW weight, a prediction block; and
decode the current block by decoding, based on the prediction block, the current block.

### Claim 21 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the instructions, when executed, further cause the computing device to:
determine a plurality of BCW weights comprising:
an initial BCW weight;
a first BCW weight that is immediately lower than the initial BCW weight in a list of candidate BCW weights; and
a second BCW weight that is immediately higher than the initial BCW weight in the list of candidate BCW weights.

### Claim 22

A system comprising:
a first computing device comprising:
one or more first processors; and
first memory storing first instructions that, when executed by the one or more first processors, cause the first computing device to:
determine a template matching (TM) cost for a current block of content based on two or more color components of the current block; and
decode the current block using a bidirectional prediction with coding unit weights (BCW) weight determined based on the determined TM cost; and
a second computing device comprising:
one or more second processors; and
second memory storing second instructions that, when executed by the one or more second processors, cause the second computing device to encode the current block.

### Claim 23 (depends on 22)

The system of claim 22, wherein the first instructions, when executed by the one or more first processors, further cause the first computing device to:
determine a plurality of TM costs for a plurality of BCW weights for the current block; and
based on the determined plurality of TM costs, select the BCW weight from the plurality of BCW weights.

### Claim 24 (depends on 22)

The system of claim 22, wherein the current block is of a YCbCr type, and wherein the first instructions, when executed by the one or more first processors, further cause the first computing device to determine the TM cost by:
selecting, based on a chroma format of the current block, weighting coefficients for the TM cost; and
calculating, based on the weighting coefficients, the TM cost.

### Claim 25 (depends on 22)

The system of claim 22, wherein the first instructions, when executed by the one or more first processors, further cause the first computing device to:
based on respective similarities between each of a first reference block and a second reference block, and the current block, determine respective weighting factors for the first reference block and the second reference block.

### Claim 26 (depends on 22)

The system of claim 22, wherein the two or more color components comprise a luma component and a chroma component.

### Claim 27 (depends on 22)

The system of claim 22, wherein the first instructions, when executed by the one or more first processors, further cause the first computing device to:
determine, based on the BCW weight, a prediction block; and
decode the current block by decoding, based on the prediction block, the current block.

### Claim 28 (depends on 22)

The system of claim 22, wherein the first instructions, when executed by the one or more first processors, further cause the first computing device to:
determine a plurality of BCW weights comprising:
an initial BCW weight;
a first BCW weight that is immediately lower than the initial BCW weight in a list of candidate BCW weights; and
a second BCW weight that is immediately higher than the initial BCW weight in the list of candidate BCW weights.
