# US 2025/0168365 A1 · Video encoder, video decoder, and corresponding encoding and decoding methods

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

- Number: US 2025/0168365 A1
- Document ID: US20250168365A1
- Status: Published application
- Kind: A1
- Application number: 18/957,874
- Filed: 2024-11-25
- Published: 2025-05-22
- Earliest claimed: 2018-07-16
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiang Ma; Yin Zhao; Haitao Yang; Jianle Chen
- Web page: https://patentgrep.com/patent/US20250168365A1

## CPC

- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/186: the unit being a colour or a chrominance component
- 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 19/176: the region being a block, e.g. a macroblock
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Techniques are described of a linear model prediction mode. A set of reconstructed neighboring luma samples are determined. Two pairs of luma value and chroma value are determined according to N reconstructed neighboring luma samples, N reconstructed neighboring chroma samples, M reconstructed neighboring luma samples, and M reconstructed neighboring chroma samples. The minimum value of the N reconstructed neighboring luma samples is not less than the maximum luma value of the remaining reconstructed neighboring luma samples of the set of reconstructed neighboring luma samples. The maximum value of the M reconstructed neighboring luma samples is not larger than the minimum luma value of the remaining reconstructed neighboring luma samples of the set of reconstructed neighboring luma samples. M>1 and N>1. Linear model parameters are determined based on the two pairs of luma value and chroma value, and a predictive block is determined based on the linear model parameters.

## Claims

### Claim 1

A method of decoding video data implemented by a decoding apparatus, comprising:
performing entropy decoding on a bitstream, to obtain information indicating a selected intra-prediction mode;
determining a luma block that corresponds to a chroma block;
determining a set of down-sampled samples of reconstructed neighboring luma samples, wherein the selected intra-prediction mode is cross-component intra prediction_L (CCIP_L) mode, and in case of the CCIP_L mode, the reconstructed neighboring luma samples comprise a plurality of reconstructed luma samples that are left to the luma block without including a plurality of reconstructed luma samples that are above the luma block;
calculating a first pair of a luma value and a chroma value using N down-sampled neighboring luma samples of the set and N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, wherein N is a positive integer larger than 1, and a minimum value of the N down-sampled neighboring luma samples is not less than respective luma values of first remaining down-sampled neighboring luma samples of the set, and wherein the first remaining down-sampled neighboring luma samples are different from the N down-sampled neighboring luma samples;
calculating a second pair of a luma value and a chroma value using M down-sampled neighboring luma samples of the set and M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples, wherein M is a positive integer larger than 1, and a maximum value of the M down-sampled neighboring luma samples is not larger than respective luma values of second remaining down-sampled neighboring luma samples of the set, and wherein the second remaining down-sampled neighboring luma samples are different from the M down-sampled neighboring luma samples;
determining one or more parameters of one linear model based on the first pair of luma value and chroma value and the second pair of luma value and chroma value;
determining a predictive block of the chroma block based on the one or more parameters of the linear model; and
reconstructing the chroma block based on the predictive block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the set of down-sampled samples of reconstructed neighboring luma samples consists of:
the N down-sampled neighboring luma samples and the M down-sampled neighboring luma samples, and the sum of N and M is equal to the total number of down-sampled neighboring luma samples in the set.

### Claim 3 (depends on 1)

The method of claim 1, wherein
the luma value of the first pair of luma value and chroma value is the mean luma value of the N down-sampled neighboring luma samples, and
the chroma value of the first pair of luma value and chroma value is the mean chroma value of the N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples,
and wherein
the luma value of the second pair of luma value and chroma value is the mean luma value of the M down-sampled neighboring luma samples, and
the chroma value of the second pair of luma value and chroma value is the mean chroma value of the M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples.

### Claim 4 (depends on 1)

The method of claim 1, wherein M and N are equal.

### Claim 5 (depends on 4)

The method of claim 4, wherein M=N=2.

### Claim 6 (depends on 1)

The method of claim 1, wherein the reconstructed neighboring luma samples comprise:
a left-below neighbouring luma sample outside the luma block and luma samples that are below of the left-below neighbouring luma sample outside the luma block.

### Claim 7 (depends on 1)

The method of claim 1, wherein the plurality of reconstructed luma samples that are left to the luma block are reconstructed neighboring luma samples adjacent to the respective left boundary.

### Claim 8 (depends on 1)

The method of claim 1, wherein the reconstructed neighboring luma samples excludes luma samples that are left of a top-left neighbouring luma sample outside the luma block.

### Claim 9 (depends on 1)

The method of claim 1, wherein the set of down-sampled samples of the reconstructed neighboring luma samples are obtained by down-sampling on the reconstructed neighboring luma samples.

### Claim 10

A method of encoding video data implemented by an encoding apparatus, comprising:
determining a luma block that corresponds to a chroma block;
determining a set of down-sampled samples of reconstructed neighboring luma samples;
calculating a first pair of a luma value and a chroma value using N down-sampled neighboring luma samples of the set and N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, wherein N is a positive integer larger than 1, and a minimum value of the N down-sampled neighboring luma samples is not less than respective luma values of first remaining down-sampled neighboring luma samples of the set, and wherein the first remaining down-sampled neighboring luma samples are different from the N down-sampled neighboring luma samples;
calculating a second pair of a luma value and a chroma value using M down-sampled neighboring luma samples of the set and M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples, wherein M is a positive integer larger than 1, and a maximum value of the M down-sampled neighboring luma samples is not larger than respective luma values of second remaining down-sampled neighboring luma samples of the set, and wherein the second remaining down-sampled neighboring luma samples are different from the M down-sampled neighboring luma samples;
determining one or more parameters of one linear model based on the first pair of luma value and chroma value and the second pair of luma value and chroma value;
determining a predictive block of the chroma block based on the one or more linear model parameters; and
encoding information indicating a selected intra-prediction mode into a bitstream, wherein the selected intra-prediction mode is cross-component intra prediction L (CCIP L) mode, and in case of the CCIP_L mode, the reconstructed neighboring luma samples comprise a plurality of reconstructed luma samples that are left to the luma block without including a plurality of reconstructed luma samples that are above the luma block.

### Claim 11 (depends on 10)

The method of claim 10, wherein the set of down-sampled samples of reconstructed neighboring luma samples consists of:
the N down-sampled neighboring luma samples and the M down-sampled neighboring luma samples, and the sum of N and M is equal to the total number of down-sampled neighboring luma samples in the set.

### Claim 12 (depends on 10)

The method of claim 10,
wherein the luma value of the first pair of luma value and chroma value is the mean luma value of the N down-sampled neighboring luma samples, and the chroma value of the first pair of luma value and chroma value is the mean chroma value of the N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, and wherein the luma value of the second pair of luma value and chroma value is the mean luma value of the M down-sampled neighboring luma samples, and the chroma value of the second pair of luma value and chroma value is the mean chroma value of the M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples.

### Claim 13 (depends on 10)

The method of claim 10, wherein M and N are equal.

### Claim 14 (depends on 13)

The method of claim 13, wherein M=N=2.

### Claim 15 (depends on 10)

The method of claim 10, wherein the reconstructed neighboring luma samples comprise:
a left-below neighbouring luma sample outside the luma block and luma samples that are below of the left-below neighbouring luma sample outside the luma block.

### Claim 16 (depends on 10)

The method of claim 10 wherein the plurality of reconstructed luma samples that are left to the luma block are reconstructed neighboring luma samples adjacent to the respective left boundary.

### Claim 17 (depends on 10)

The method of claim 10, wherein the reconstructed neighboring luma samples excludes luma samples that are left of a top-left neighbouring luma sample outside the luma block.

### Claim 18 (depends on 10)

The method of claim 10, wherein the set of down-sampled samples of the reconstructed neighboring luma samples are obtained by down-sampling on the reconstructed neighboring luma samples.

### Claim 19

A decoding apparatus, comprising:
at least one processor; and
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the decoding device to:
perform entropy decoding on a bitstream, to obtain information indicating a selected intra-prediction mode;
determine a luma block that corresponds to a chroma block;
determine a set of down-sampled samples of reconstructed neighboring luma samples, wherein the selected intra-prediction mode is cross-component intra prediction_L (CCIP_L) mode, and in the case of the CCIP_L mode, the reconstructed neighboring luma samples comprise a plurality of reconstructed luma samples that are left to the luma block without including a plurality of reconstructed luma samples that are above the luma block;
calculate a first pair of a luma value and a chroma value using N down-sampled neighboring luma samples of the set and N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, wherein N is a positive integer larger than 1, and a minimum value of the N down-sampled neighboring luma samples is not less than respective luma values of first remaining down-sampled neighboring luma samples of the set, and wherein the first remaining down-sampled neighboring luma samples are different from the N down-sampled neighboring luma samples;
calculate a second pair of a luma value and a chroma value using M down-sampled neighboring luma samples of the set and M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples, wherein M is a positive integer larger than 1, and a maximum value of the M down-sampled neighboring luma samples is not larger than respective luma values of second remaining down-sampled neighboring luma samples of the set, and wherein the second remaining down-sampled neighboring luma samples are different from the M down-sampled neighboring luma samples;
determine one or more parameters of one linear model based on the first pair of luma value and chroma value and the second pair of luma value and chroma value;
determine a predictive block of the chroma block based on the one or more parameters of the linear model; and
reconstruct the chroma block based on the predictive block.

### Claim 20

An encoding apparatus, comprising:
at least one processor; and
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the encoding device to:
determine a luma block that corresponds to a chroma block;
determine a set of down-sampled samples of reconstructed neighboring luma samples;
calculate a first pair of a luma value and a chroma value using N down-sampled neighboring luma samples of the set and N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, wherein N is a positive integer larger than 1, and a minimum value of the N down-sampled neighboring luma samples is not less than respective luma values of first remaining down-sampled neighboring luma samples of the set, and wherein the first remaining down-sampled neighboring luma samples are different from the N down-sampled neighboring luma samples;
calculate a second pair of a luma value and a chroma value using M down-sampled neighboring luma samples of the set and M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples, wherein M is a positive integer larger than 1, and a maximum value of the M down-sampled neighboring luma samples is not larger than respective luma values of second remaining down-sampled neighboring luma samples of the set, and wherein the second remaining down-sampled neighboring luma samples are different from the M down-sampled neighboring luma samples;
determine one or more parameters of one linear model based on the first pair of luma value and chroma value and the second pair of luma value and chroma value;
determine a predictive block of the chroma block based on the one or more linear model parameters; and
encode information indicating a selected intra-prediction mode into a bitstream, wherein the selected intra-prediction mode is cross-component intra prediction L (CCIP L) mode, and in case of the CCIP_L mode, the reconstructed neighboring luma samples comprise a plurality of reconstructed luma samples that are left to the luma block without including a plurality of reconstructed luma samples that are above the luma block.

### Claim 21

A non-transitory computer-readable medium carrying program instructions which, when executed by a computer device or one or more processors, cause the computer device or the one or more processors to perform operations of:
performing entropy decoding on a bitstream, to obtain information indicating a selected intra-prediction mode;
determining a luma block that corresponds to a chroma block;
determining a set of down-sampled samples of reconstructed neighboring luma samples, wherein the selected intra-prediction mode is cross-component intra prediction_L (CCIP_L) mode, and in the case of the CCIP_L mode, the reconstructed neighboring luma samples comprise a plurality of reconstructed luma samples that are left to the luma block without including a plurality of reconstructed luma samples that are above the luma block;
calculating a first pair of a luma value and a chroma value using N down-sampled neighboring luma samples of the set and N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, wherein N is a positive integer larger than 1, and a minimum value of the N down-sampled neighboring luma samples is not less than respective luma values of first remaining down-sampled neighboring luma samples of the set, and wherein the first remaining down-sampled neighboring luma samples are different from the N down-sampled neighboring luma samples;
calculating a second pair of a luma value and a chroma value using M down-sampled neighboring luma samples of the set and M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples, wherein M is a positive integer larger than 1, and a maximum value of the M down-sampled neighboring luma samples is not larger than respective luma values of second remaining down-sampled neighboring luma samples of the set, and wherein the second remaining down-sampled neighboring luma samples are different from the M down-sampled neighboring luma samples;
determining one or more parameters of one linear model based on the first pair of luma value and chroma value and the second pair of luma value and chroma value;
determining a predictive block of the chroma block based on the one or more parameters of the linear model; and
reconstructing the chroma block based on the predictive block.

### Claim 22

A non-transitory computer-readable medium carrying program instructions which, when executed by a computer device or one or more processors, cause the computer device or the one or more processors to perform operations of:
determining a luma block that corresponds to a chroma block;
determining a set of down-sampled samples of reconstructed neighboring luma samples;
calculating a first pair of a luma value and a chroma value using N down-sampled neighboring luma samples of the set and N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, wherein N is a positive integer larger than 1, and a minimum value of the N down-sampled neighboring luma samples is not less than respective luma values of first remaining down-sampled neighboring luma samples of the set, and wherein the first remaining down-sampled neighboring luma samples are different from the N down-sampled neighboring luma samples;
calculating a second pair of a luma value and a chroma value using M down-sampled neighboring luma samples of the set and M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples, wherein M is a positive integer larger than 1, and a maximum value of the M down-sampled neighboring luma samples is not larger than respective luma values of second remaining down-sampled neighboring luma samples of the set, and wherein the second remaining down-sampled neighboring luma samples are different from the M down-sampled neighboring luma samples;
determining one or more parameters of one linear model based on the first pair of luma value and chroma value and the second pair of luma value and chroma value;
determining a predictive block of the chroma block based on the one or more linear model parameters; and
encoding information indicating a selected intra-prediction mode into a bitstream, wherein the selected intra-prediction mode is cross-component intra prediction L (CCIP L) mode, and in the case of the CCIP_L mode, the reconstructed neighboring luma samples comprise a plurality of reconstructed luma samples that are left to the luma block without including a plurality of reconstructed luma samples that are above the luma block.

### Claim 23

A non-transitory computer-readable storage medium storing a bitstream that, when decoded by a coding device, is used by the coding device to generate a video, the bitstream comprising:
information indicating a selected intra-prediction mode obtained via entropy decoding, wherein the selected intra-prediction mode is cross-component intra prediction L (CCIP_L) mode;
a luma block that corresponds to a chroma block;
a set of down-sampled samples of reconstructed neighboring luma samples, wherein in case of the CCIP_L mode, the reconstructed neighboring luma samples comprise a plurality of reconstructed luma samples that are left to the luma block without including a plurality of reconstructed luma samples that are above the luma block;
a first pair of a luma value and a chroma value calculated using N down-sampled neighboring luma samples of the set and N reconstructed neighboring chroma samples that correspond to the N down-sampled neighboring luma samples, wherein N is a positive integer larger than 1, and a minimum value of the N down-sampled neighboring luma samples is not less than respective luma values of first remaining down-sampled neighboring luma samples of the set, and wherein the first remaining down-sampled neighboring luma samples are different from the N down-sampled neighboring luma samples;
a second pair of a luma value and a chroma value calculated using M down-sampled neighboring luma samples of the set and M reconstructed neighboring chroma samples that correspond to the M down-sampled neighboring luma samples, wherein M is a positive integer larger than 1, and a maximum value of the M down-sampled neighboring luma samples is not larger than respective luma values of second remaining down-sampled neighboring luma samples of the set, and wherein the second remaining down-sampled neighboring luma samples are different from the M down-sampled neighboring luma samples;
one or more parameters of one linear model determined based on the first pair of luma value and chroma value and the second pair of luma value and chroma value; and
a predictive block of the chroma block determined based on the one or more linear model parameters.
