# US 2025/0159179 A1 · Method for colour component prediction, 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/0159179 A1
- Document ID: US20250159179A1
- Status: Published application
- Kind: A1
- Application number: 19/016,077
- Filed: 2025-01-10
- Published: 2025-05-15
- Earliest claimed: 2019-07-10
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Junyan HUO; Yanzhuo MA; Wei ZHANG
- Web page: https://patentgrep.com/patent/US20250159179A1

## 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
- G06F 5/01: for shifting, e.g. justifying, scaling, normalising {(digital stores in which the information is moved stepwise, e.g. shift-registers G11C19/00; digital stores in which the information circulates G11C21/00)}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- 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/42: characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation (H04N19/635 takes precedence)
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for colour component prediction, an encoder, a decoder and a storage medium are provided. The method includes that: prediction parameters of a current block are determined, the prediction parameters including a prediction mode parameter and a size parameter of the current block, when the prediction mode parameter indicates that a Matrix-based Intra Prediction (MIP) mode is adopted to determine an intra prediction value of the current block, an MIP weight matrix of the current block, a shift factor of the current block and an MIP input sample matrix of the current block are determined; and the intra prediction value of the current block is determined according to the MIP weight matrix, the shift factor and the MIP input sample matrix.

## Claims

### Claim 1

A method for colour component prediction, applicable for an encoder and comprising:
determining a prediction mode parameter of a current block;
when the prediction mode parameter indicates that a Matrix-based Intra Prediction (MIP) mode is adopted to the current block, determining an MIP weight matrix and an MIP input sample matrix of the current block; and
determining an intra prediction value of the current block according to the MIP weight matrix, the MIP input sample matrix and a shift factor, wherein the shift factor is a fixed constant value, comprising:
performing matrix multiplication processing on the MIP input sample matrix, the MIP weight matrix and the fixed constant value by use of a preset calculation model to obtain an MIP-based prediction block of the current block,
wherein the MIP weight matrix of the current block is at least determined according to a block size index value of the current block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the fixed constant value is equal to 6.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the intra prediction value of the current block according to the MIP weight matrix, the MIP input sample matrix and the shift factor further comprises:
performing filtering processing on the MIP-based prediction block to obtain the intra prediction value of the current block, the MIP-based prediction block comprising prediction values of at least part of sample positions in the current block.

### Claim 4 (depends on 3)

The method of claim 3, wherein the block size index value of the current block is determined according to a size parameter of the current block, and
wherein determining the block size index value of the current block according to the size parameter of the current block comprises:
when both a width and a height of the current block are equal to 4, setting the block size index value of the current block equal to 0;
when both the width and height of the current block are equal to 8 or only one of the width and height of the current block is equal to 4, setting the block size index value of the current block equal to 1; or
when both the width and height of the current block do not meet the above conditions, setting the block size index value of the current block equal to 2.

### Claim 5

A method for colour component prediction, applicable for a decoder and comprising:
parsing a bitstream to acquire a prediction mode parameter of a current block;
when the prediction mode parameter indicates that a Matrix-based Intra Prediction (MIP) mode is adopted to the current block, determining an MIP weight matrix and an MIP input sample matrix of the current block; and
determining an intra prediction value of the current block according to the MIP weight matrix, the MIP input sample matrix and a shift factor, wherein the shift factor is a fixed constant value, comprising:
performing matrix multiplication processing on the MIP input sample matrix, the MIP weight matrix and the fixed constant value by use of a preset calculation model to obtain an MIP-based prediction block of the current block,
wherein the MIP weight matrix of the current block is determined at least according to a block size index value of the current block.

### Claim 6 (depends on 5)

The method of claim 5, wherein the fixed constant value is equal to 6.

### Claim 7 (depends on 5)

The method of claim 5, wherein determining the intra prediction value of the current block according to the MIP weight matrix, the MIP input sample matrix and the shift factor further comprises:
performing filtering processing on the MIP-based prediction block to obtain the intra prediction value of the current block, the MIP-based prediction block comprising predicted values of at least part of sample positions in the current block.

### Claim 8 (depends on 7)

The method of claim 7, wherein the block size index value of the current block is determined according to a size parameter of the current block, and
wherein determining the block size index value of the current block according to the size parameter of the current block comprises:
when both a width and a height of the current block are equal to 4, setting the block size index value of the current block equal to 0;
when both the width and height of the current block are equal to 8 or only one of the width and height of the current block is equal to 4, setting the block size index value of the current block equal to 1; or
when both the width and height of the current block do not meet the above conditions, setting the block size index value of the current block equal to 2.

### Claim 9

An encoder, comprising a memory and a processor, wherein
the memory is configured to store computer programs capable of running in the processor; and
the processor is configured to run the computer programs to:
determine a prediction mode parameter of a current block;
when the prediction mode parameter indicates that a Matrix-based Intra Prediction (MIP) mode is adopted to the current block, determine an MIP weight matrix and an MIP input sample matrix of the current block; and
determine an intra prediction value of the current block according to the MIP weight matrix, the MIP input sample matrix and a shift factor, wherein the shift factor is a fixed constant value,
wherein the MIP weight matrix of the current block is at least determined according to a block size index value of the current block,
wherein the processor is further configured to run the computer programs to:
perform matrix multiplication processing on the MIP input sample matrix, the MIP weight matrix and the fixed constant value by use of a preset calculation model to obtain an MIP-based prediction block of the current block.

### Claim 10 (depends on 9)

The encoder of claim 9, wherein the fixed constant value is equal to 6.

### Claim 11 (depends on 9)

The encoder of claim 9, wherein the processor is further configured to run the computer programs to:
perform filtering processing on the MIP-based prediction block to obtain the intra prediction value of the current block, the MIP-based prediction block comprising prediction values of at least part of sample positions in the current block.

### Claim 12 (depends on 11)

The encoder of claim 11, wherein the block size index value of the current block is determined according to a size parameter of the current block, and
wherein the processor is further configured to run the computer programs to:
set the block size index value of the current block equal to 0 when both a width and a height of the current block are equal to 4,
set the block size index value of the current block equal to 1 when both the width and height of the current block are equal to 8 or only one of the width and height of the current block is equal to 4; or
set the block size index value of the current block equal to 2 when both the width and height of the current block do not meet the above conditions.

### Claim 13

A decoder, comprising a memory and a processor, wherein
the memory is configured to store computer programs capable of running in the processor; and
the processor is configured to run the computer programs to:
parse a bitstream to acquire a prediction mode parameter of a current block;
when the prediction mode parameter indicates that a Matrix-based Intra Prediction (MIP) mode is adopted to the current block, determine an MIP weight matrix and an MIP input sample matrix of the current block; and
determine an intra prediction value of the current block according to the MIP weight matrix, the MIP input sample matrix and a shift factor, wherein the shift factor is a fixed constant value,
wherein the MIP weight matrix of the current block is determined at least according to a block size index value of the current block,
wherein the processor is further configured to run the computer programs to:
perform matrix multiplication processing on the MIP input sample matrix, the MIP weight matrix and the fixed constant value by use of a preset calculation model to obtain an MIP-based prediction block of the current block.

### Claim 14 (depends on 13)

The decoder of claim 13, wherein the fixed constant value is equal to 6.

### Claim 15 (depends on 13)

The decoder of claim 13, wherein the processor is further configured to run the computer programs to:
perform filtering processing on the MIP-based prediction block to obtain the intra prediction value of the current block, the MIP-based prediction block comprising predicted values of at least part of sample positions in the current block.

### Claim 16 (depends on 15)

The decoder of claim 15, wherein the block size index value of the current block is determined according to a size parameter of the current block, and
wherein the processor is further configured to run the computer programs to:
set the block size index value of the current block equal to 0 when both a width and a height of the current block are equal to 4;
set the block size index value of the current block equal to 1 when both the width and height of the current block are equal to 8 or only one of the width and height of the current block is equal to 4; or
set the block size index value of the current block equal to 2 when both the width and height of the current block do not meet the above conditions.
