# US 2025/0097407 A1 · Colour component prediction method, encoder, decoder and storage medium

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

- Number: US 2025/0097407 A1
- Document ID: US20250097407A1
- Status: Published application
- Kind: A1
- Application number: 18/964,187
- Filed: 2024-11-29
- Published: 2025-03-20
- Earliest claimed: 2019-03-18
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Junyan HUO; Shuai WAN; Yanzhuo MA
- Web page: https://patentgrep.com/patent/US20250097407A1

## CPC

- 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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- 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/182: the unit being a pixel
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/107: between spatial and temporal predictive coding, e.g. picture refresh
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/51: Motion estimation or motion compensation
- H04N 19/61: in combination with predictive coding
- H04N 19/82: involving filtering within a prediction loop
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed are a colour component prediction method, an encoder, a decoder, and a storage medium. The method includes: determining adjacent reference pixels of a current block in a picture; constructing a subset of adjacent reference pixels according to the adjacent reference pixels, wherein the subset of adjacent reference pixels contains a part of the adjacent reference pixels; and calculating model parameters of a prediction model according to the subset of adjacent reference pixels, wherein the prediction model includes N prediction sub-models, the N prediction sub-models correspond to N groups of model parameters, and the prediction sub-models are used to perform, through corresponding model parameters, cross-component prediction of colour components to be predicted.

## Claims

### Claim 1

A method for predicting colour components, which is applied to an encoder, the method comprising:
determining adjacent reference samples of a current block in a picture;
constructing a subset of adjacent reference samples according to the adjacent reference samples, wherein the subset of adjacent reference samples contains a part of the adjacent reference samples; and
calculating model parameters of a prediction model according to the subset of adjacent reference samples, wherein the prediction model is configured to perform cross-component prediction of colour components to be predicted,
wherein constructing the subset of adjacent reference samples according to the adjacent reference samples comprises:
determining candidate positions of candidate samples based on at least one edge of the current block; and determining reference samples corresponding to the candidate positions from the adjacent reference samples, and forming the subset of adjacent reference samples with the determined reference samples;
wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
calculating a first sampling interval according to a preset number of candidate samples and a length of the at least one edge of the current block; and determining a reference point from the at least one edge of the current block, and determining the candidate positions according to the first sampling interval.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the adjacent reference samples of the current block in the picture comprises:
acquiring reference samples adjacent to at least one edge of the current block, wherein the at least one edge of the current block comprises at least one of: an upper row, a right upper row, a left column and a left lower column; and
obtaining the adjacent reference samples according to the acquired reference samples.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
determining the candidate positions based on sample positions corresponding to reference samples adjacent to the at least one edge of the current block.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
determining the candidate positions based on colour component intensity values corresponding to reference samples adjacent to the at least one edge of the current block.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
determining the candidate positions based on sample positions and colour component intensity values corresponding to the reference samples adjacent to the at least one edge of the current block.

### Claim 6 (depends on 1)

The method of claim 1, wherein the candidate positions of the candidate samples are determined according to formulas of:
Δ
=
length
/
(
N
2
/
2
)
shift
=
Δ
/
2
wherein A represents a sampling interval, length represents a quantity of reference samples in a row adjacent to an upper edge of the current block or a quantity of reference samples in a column adjacent to a left edge of the current block, N2 represents an expected quantity of reference samples forming the subset of adjacent reference samples of the current block, and shift represents a starting point position of a determined reference sample.

### Claim 7 (depends on 1)

The method of claim 1, wherein after calculating the first sampling interval, the method further comprises:
adjusting the first sampling interval to obtain a second sampling interval; and
determining the candidate positions according to the second sampling interval based on the reference point.

### Claim 8

A method for predicting colour components, which is applied to a decoder, the method comprising:
determining adjacent reference samples of a current block in a picture;
constructing a subset of adjacent reference samples according to the adjacent reference samples, wherein the subset of adjacent reference samples contains a part of the adjacent reference samples; and
calculating model parameters of a prediction model according to the subset of adjacent reference samples, wherein the prediction model is configured to perform cross-component prediction of colour components to be predicted,
wherein constructing the subset of adjacent reference samples according to the adjacent reference samples comprises:
determining candidate positions of candidate samples based on at least one edge of the current block; and determining reference samples corresponding to the candidate positions from the adjacent reference samples, and forming the subset of adjacent reference samples with the determined reference samples;
wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
calculating a first sampling interval according to a preset number of candidate samples and a length of the at least one edge of the current block; and determining a reference point from the at least one edge of the current block, and determining the candidate positions according to the first sampling interval.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining the adjacent reference samples of the current block in the picture comprises:
acquiring reference samples adjacent to at least one edge of the current block, wherein the at least one edge of the current block comprises at least one of: an upper row, a right upper row, a left column and a left lower column; and
obtaining the adjacent reference samples according to the acquired reference samples.

### Claim 10 (depends on 8)

The method of claim 8, wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
determining the candidate positions based on sample positions corresponding to reference samples adjacent to the at least one edge of the current block.

### Claim 11 (depends on 8)

The method of claim 8, wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
determining the candidate positions based on colour component intensity values corresponding to reference samples adjacent to the at least one edge of the current block.

### Claim 12 (depends on 8)

The method of claim 8, wherein determining the candidate positions of the candidate samples based on the at least one edge of the current block comprises:
determining the candidate positions based on sample positions and colour component intensity values corresponding to the reference samples adjacent to the at least one edge of the current block.

### Claim 13 (depends on 8)

The method of claim 8, wherein the candidate positions of the candidate samples are determined according to formulas of:
Δ
=
length
/
(
N
2
/
2
)
shift
=
Δ
/
2
wherein A represents a sampling interval, length represents a quantity of reference samples in a row adjacent to an upper edge of the current block or a quantity of reference samples in a column adjacent to a left edge of the current block, N2 represents an expected quantity of reference samples forming the subset of adjacent reference samples of the current block, and shift represents a starting point position of a determined reference sample.

### Claim 14 (depends on 8)

The method of claim 8, wherein after calculating the first sampling interval, the method further comprises:
adjusting the first sampling interval to obtain a second sampling interval; and
determining the candidate positions according to the second sampling interval based on the reference point.

### Claim 15 (depends on 1)

An encoder comprising a first memory and a first processor, wherein
the first memory is configured to store a computer program runnable on the first processor; and
the first processor is configured to, when running the computer program, perform the method of claim 1.

### Claim 16 (depends on 8)

A decoder comprising a second memory and a second processor, wherein
the second memory is configured to store a computer program runnable on the second processor; and
the second processor is configured to, when running the computer program, perform the method of claim 8.
