# US 2025/0097437 A1 · Chroma block prediction method and apparatus

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

- Number: US 2025/0097437 A1
- Document ID: US20250097437A1
- Status: Published application
- Kind: A1
- Application number: 18/902,428
- Filed: 2024-09-30
- Published: 2025-03-20
- Earliest claimed: 2018-12-13
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiang MA; Jianle CHEN; Haitao YANG
- Web page: https://patentgrep.com/patent/US20250097437A1

## CPC

- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- 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/149: by estimating the code amount by means of a model, e.g. mathematical model or statistical model
- 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/593: involving spatial prediction techniques
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

This application provides a chroma block prediction method and apparatus. The method includes: obtaining a maximum luma value and a minimum luma value based on luma samples corresponding to neighboring samples of a target chroma block, and calculating a first difference between the maximum luma value and the minimum luma value; if the first difference is not equal to 0, processing the first difference based on a quantity of significant bits of the first difference and a first preset bit depth to obtain a second difference; and determining, based on a first chroma value, a second chroma value, and the second difference, an intra prediction model parameter corresponding to the target chroma block, and determining prediction information of the target chroma block based on the intra prediction model parameter and luma reconstruction information corresponding to the target chroma block.

## Claims

### Claim 1

A chroma block prediction method, comprising:
determining that linear model intra prediction is enabled for a target chroma block;
obtaining a first luma value and a second luma value based on luma samples corresponding to neighboring samples of the target chroma block;
if a first difference between the first luma value and the second luma value is greater than 0, shifting the first difference to obtain a second difference based on a quantity of significant bits of the first difference, wherein the quantity of significant bits of the first difference is obtained by log 2 of the first difference;
determining an intra prediction model parameter corresponding to the target chroma block based on the second difference; and
determining prediction information of the target chroma block based on the intra prediction model parameter and luma reconstruction information corresponding to the target chroma block.

### Claim 2 (depends on 1)

The method according to claim 1, the method comprises:
determine, based on a first chroma value, a second chroma value, and the second difference, the intra prediction model parameter corresponding to the target chroma block, wherein the first chroma value and the second chroma value are determined based on the neighboring samples of the target chroma block.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the quantity of significant bits of the first difference is obtained by Floor(Log 2(Abs(A)), wherein A represents the first difference.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the shifting the first difference to obtain a second difference based on a quantity of significant bits of the first difference comprises:
shifting the first difference to the right to obtain the second difference based on the quantity of significant bits of the first difference.

### Claim 5 (depends on 1)

The method according to claim 1, wherein shifting the first difference to obtain the second difference based on the quantity of significant bits of the first difference and a first preset bit depth.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the first preset bit depth is 1 bit, 3 bits, 4 bits, or 6 bits.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the shifting the first difference to obtain the second difference based on the quantity of significant bits of the first difference and a first preset bit depth comprises:
determining a third difference between the quantity of significant bits of the first difference and the first preset bit depth; and
shifting the first difference to the right by bits of the third difference to obtain the second difference, wherein the third difference is greater than 0.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the second difference normDiff=((diff<<4)>>x) & 15, x represents the quantity of significant bits of the first difference, diff represents the first difference, 4 represents the first preset bit depth.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the luma reconstruction information corresponding to the target chroma block comprises downsampling information of a luma reconstruction block corresponding to the target chroma block.

### Claim 10 (depends on 2)

The method according to claim 2, wherein the first chroma value corresponds to the first luma value, and the second chroma value corresponds to the second luma value.

### Claim 11

A chroma block prediction apparatus, comprising:
a computer-readable storage medium storing instructions; and
one or more processors in communication with the computer-readable storage medium and upon execution of the instructions, causes the apparatus to:
determine that linear model intra prediction is enabled for a target chroma block;
obtain a first luma value and a second luma value based on luma samples corresponding to neighboring samples of the target chroma block; and
if a first difference between the first luma value and the second luma value is greater than 0, shift the first difference to obtain a second difference based on a quantity of significant bits of the first difference, wherein the quantity of significant bits of the first difference is obtained by log 2 of the first difference;
determine an intra prediction model parameter corresponding to the target chroma block based on the second difference; and
determine prediction information of the target chroma block based on the intra prediction model parameter and luma reconstruction information corresponding to the target chroma block.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein the intra prediction model parameter corresponding to the target chroma block is determined based on a first chroma value, a second chroma value, and the second difference, wherein the first chroma value and the second chroma value are determined based on the neighboring samples of the target chroma block.

### Claim 13 (depends on 11)

The apparatus according to claim 11, wherein the quantity of significant bits of the first difference is obtained by Floor(Log 2(Abs(A)), wherein A represents the first difference.

### Claim 14 (depends on 11)

The apparatus according to claim 11, wherein the shifting the first difference to obtain a second difference based on a quantity of significant bits of the first difference comprises:
shifting the first difference to the right to obtain the second difference based on the quantity of significant bits of the first difference.

### Claim 15 (depends on 11)

The apparatus according to claim 11, wherein shifting the first difference obtain the second difference based on the quantity of significant bits of the first difference and a first preset bit depth to.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the first preset bit depth is 1 bit, 3 bits, 4 bits, or 6 bits.

### Claim 17 (depends on 15)

The apparatus according to claim 15, wherein the shifting the first difference to obtain the second difference based on the quantity of significant bits of the first difference and a first preset bit depth comprises:
determining a third difference between the quantity of significant bits of the first difference and the first preset bit depth; and
shifting the first difference to the right by bits of the third difference to obtain the second difference, wherein the third difference is greater than 0.

### Claim 18 (depends on 15)

The apparatus according to claim 15, wherein the second difference normDiff=((diff<<4)>>x) & 15, x represents the quantity of significant bits of the first difference, diff represents the first difference, 4 represents the first preset bit depth.

### Claim 19 (depends on 11)

The apparatus according to claim 11, wherein a first chroma value corresponds to the first luma value, and a second chroma value corresponds to the second luma value.

### Claim 20

A non-transitory computer-readable storage medium for storing bit string of a video, comprising: a bit string stored in the non-transitory computer-readable medium, the bit string comprising an encoded sequence of frames of a video, wherein the encoded sequence of frames is encoded into the bit string based on a plurality of operations comprising:
determining that linear model intra prediction is enabled for a target chroma block;
obtaining a first luma value and a second luma value based on luma samples corresponding to neighboring samples of the target chroma block;
if a first difference between the first luma value and the second luma value is greater than 0, shifting the first difference to obtain a second difference based on a quantity of significant bits of the first difference, wherein the quantity of significant bits of the first difference is obtained by log 2 of the first difference;
determining an intra prediction model parameter corresponding to the target chroma block based on the second difference; and
determining prediction information of the target chroma block based on the intra prediction model parameter and luma reconstruction information corresponding to the target chroma block.
