IP Library Granted Patent US 11,509,901
Granted Patent B2
US 11,509,901 · App. 17/197,327 · Granted Nov 22, 2022

Method for colour component prediction, encoder, decoder and storage medium

Inventors: Junyan Huo (Guangdong, CN); Yanzhuo Ma (Guangdong, CN); Wei Zhang (Guangdong, CN)
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
H04N19/132G06F5/01G06F17/16H04N19/159H04N19/176H04N19/186
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,509,901
App. No.
17/197,327
Granted
Nov 22, 2022
Kind
B2
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 (56)

1. A method for colour component prediction, applicable for an encoder and comprising:

determining prediction parameters of a current block, the prediction parameters comprising 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, determining 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; and

determining the intra prediction value of the current block according to the MIP weight matrix, the shift factor and the MIP input sample matrix,

wherein the MIP weight matrix of the current block is at least determined according to a block size index value of the current block;

the block size index value of the current block is determined according to the size parameter of the current block; and

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.

2. The method of claim 1 , wherein determining the intra prediction value of the current block according to the MIP weight matrix, the shift factor and the MIP input sample matrix comprises:

performing matrix multiplication processing on the MIP input sample matrix, the MIP weight matrix and the shift factor by use of a preset calculation model to obtain an MIP-based prediction block of the current block; and

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 pixel positions in the current block.

3. A method for colour component prediction, applicable for a decoder and comprising:

parsing a bitstream to acquire prediction parameters of a current block, the prediction parameters comprising 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, determining 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; and

determining the intra prediction value of the current block according to the MIP weight matrix, the shift factor and the MIP input sample matrix,

wherein the MIP weight matrix of the current block is determined at least according to a block size index value of the current block;

the block size index value of the current block is determined according to the size parameter of the current block; and

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.

4. The method of claim 3 , wherein determining the intra prediction value of the current block according to the MIP weight matrix, the shift factor and the MIP input sample matrix comprises:

performing matrix multiplication processing on the MIP input sample matrix, the MIP weight matrix and the shift factor by use of a preset calculation model to obtain an MIP-based prediction block of the current block; and

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 pixel positions in the current block.

5. 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 prediction parameters of a current block, the prediction parameters comprising 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, determine 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; and

determine the intra prediction value of the current block according to the MIP weight matrix, the shift factor and the MIP input sample matrix,

wherein the MIP weight matrix of the current block is at least determined according to a block size index value of the current block;

the block size index value of the current block is determined according to the size parameter of the current block; and

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.

6. The encoder of claim 5 , 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 shift factor by use of a preset calculation model to obtain an MIP-based prediction block of the current block; and

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 pixel positions in the current block.

7. 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 prediction parameters of a current block, the prediction parameters comprising 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, determine 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; and

determine the intra prediction value of the current block according to the MIP weight matrix, the shift factor and the MIP input sample matrix,

wherein the MIP weight matrix of the current block is determined at least according to a block size index value of the current block;

the block size index value of the current block is determined according to the size parameter of the current block; and

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.

8. The decoder of claim 7 , 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 shift factor by use of a preset calculation model to obtain an MIP-based prediction block of the current block; and

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 pixel positions in the current block.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 10, 2021
From: HUO, JUNYAN; MA, YANZHUO; ZHANG, WEI
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 055547/0350 →
Continuity (5)
Continuation PCTCN2020090688 · May 15, 2020
Provisional Application 62872830 · Jul 11, 2019
Provisional Application 62873170 · Jul 11, 2019
Provisional Application 62872488 · Jul 10, 2019
Related Publication 20210203941A1 · Jul 1, 2021