IP Library Granted Patent US 12695911
Granted Patent B2
US 12695911 · App. 18/911,919 · Granted Jul 28, 2026

Decoding method, encoding method, decoder, and encoder

Inventor: Fan Wang (Dongguan, CN)
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
H04N19/61H04N19/176H04N19/18H04N19/46
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 12695911
App. No.
18/911,919
Granted
Jul 28, 2026
Kind
B2
Abstract

A decoding method, an encoding method, a decoder, and an encoder are provided. The decoding method includes the following. A bitstream is decoded to obtain a first transform coefficient of a current block. A first transform is performed on the first transform coefficient to obtain a residual block of the current block. The current block is predicted based on a first prediction mode and a second prediction mode which correspond to a geometric partitioning mode (GPM) to obtain a prediction block of the current block. A reconstructed block of the current block is obtained based on the prediction block of the current block and the residual block of the current block.

Claims (58)

1 . A decoding method, comprising:

decoding a bitstream to obtain a first transform coefficient of a current block;

determining a weight derivation mode used for a geometric partitioning mode (GPM);

determining a transform kernel type set adapted to an intra prediction mode corresponding to the weight derivation mode as a transform kernel type set used for a first transform;

performing the first transform on the first transform coefficient to obtain a residual block of the current block;

predicting the current block based on a first prediction mode and a second prediction mode which correspond to the GPM to obtain a prediction block of the current block; and

obtaining a reconstructed block of the current block based on the prediction block of the current block and the residual block of the current block.

2 . The method of claim 1 , wherein performing the first transform on the first transform coefficient to obtain the residual block of the current block comprises:

decoding the bitstream to obtain a first flag and a second flag; and

when the first flag indicates that the GPM is allowed to be used for predicting a block in a current sequence and the second flag indicates that the first transform is allowed to be used for transforming the block in the current sequence, performing the first transform on the first transform coefficient to obtain the residual block.

3 . The method of claim 2 , wherein performing the first transform on the first transform coefficient to obtain the residual block of the current block comprises:

when the first flag indicates that the GPM is allowed to be used for predicting the block in the current sequence and the second flag indicates that the first transform is allowed to be used for transforming the block in the current sequence, in a case where a height and/or a width of the current block is greater than or equal to a first threshold, performing the first transform on the first transform coefficient to obtain the residual block.

4 . The method of claim 1 , wherein performing the first transform on the first transform coefficient to obtain the residual block of the current block comprises:

performing a second transform on the first transform coefficient to obtain a second transform coefficient; and

performing the first transform on the second transform coefficient to obtain the residual block of the current block.

5 . An encoding method, comprising:

predicting a current block based on a first prediction mode and a second prediction mode which correspond to a geometric partitioning mode (GPM) to obtain a prediction block of the current block;

obtaining a residual block of the current block based on the prediction block of the current block;

determining a weight derivation mode used for the GPM;

determining a transform kernel type set adapted to an intra prediction mode corresponding to the weight derivation mode as a transform kernel type set used for a third transform;

performing the third transform on the residual block of the current block to obtain a third transform coefficient of the current block; and

encoding the third transform coefficient.

6 . The method of claim 5 , wherein encoding the third transform coefficient comprises:

encoding a first flag, a second flag, and the third transform coefficient;

wherein the first flag indicates that the GPM is allowed to be used for predicting a block in a current sequence, and the second flag indicates that the third transform is allowed to be used for transforming the block in the current sequence.

7 . The method of claim 6 , wherein performing the third transform on the residual block of the current block to obtain the third transform coefficient of the current block comprises:

in a case where a height and/or a width of the current block is greater than or equal to a first threshold, performing the third transform on the residual block of the current block to obtain the third transform coefficient.

8 . The method of claim 5 , wherein encoding the third transform coefficient comprises:

performing a fourth transform on the third transform coefficient to obtain a fourth transform coefficient; and

encoding the fourth transform coefficient.

9 . A decoder, comprising:

a processor and a non-transitory computer-readable storage medium storing a computer program which, when executed by the processor, causes the processor to:

decode a bitstream to obtain a first transform coefficient of a current block;

determine a weight derivation mode used for a geometric partitioning mode (GPM);

determine a transform kernel type set adapted to an intra prediction mode corresponding to the weight derivation mode as a transform kernel type set used for a first transform;

perform the first transform on the first transform coefficient to obtain a residual block of the current block;

predict the current block based on a first prediction mode and a second prediction mode which correspond to the GPM to obtain a prediction block of the current block; and

obtain a reconstructed block of the current block based on the prediction block of the current block and the residual block of the current block.

10 . The decoder of claim 9 , wherein performing the first transform on the first transform coefficient to obtain the residual block of the current block comprises:

decode the bitstream to obtain a first flag and a second flag; and

when the first flag indicates that the GPM is allowed to be used for predicting a block in a current sequence and the second flag indicates that the first transform is allowed to be used for transforming the block in the current sequence, perform the first transform on the first transform coefficient to obtain the residual block.

11 . The decoder of claim 10 , wherein performing the first transform on the first transform coefficient to obtain the residual block of the current block comprises:

when the first flag indicates that the GPM is allowed to be used for predicting the block in the current sequence and the second flag indicates that the first transform is allowed to be used for transforming the block in the current sequence, in a case where a height and/or a width of the current block is greater than or equal to a first threshold, perform the first transform on the first transform coefficient to obtain the residual block.

12 . The decoder of claim 9 , wherein performing the first transform on the first transform coefficient to obtain the residual block of the current block comprises:

perform a second transform on the first transform coefficient to obtain a second transform coefficient; and

perform the first transform on the second transform coefficient to obtain the residual block of the current block.

13 . A encoder, comprising:

a processor; and

a non-transitory computer-readable storage medium storing a computer program which, when executed by the processor, causes the processor to:

predict a current block based on a first prediction mode and a second prediction mode which correspond to a geometric partitioning mode (GPM) to obtain a prediction block of the current block;

obtain a residual block of the current block based on the prediction block of the current block;

determine a weight derivation mode used for the GPM;

determine a transform kernel type set adapted to an intra prediction mode corresponding to the weight derivation mode as a transform kernel type set used for a third transform;

perform the third transform on the residual block of the current block to obtain a third transform coefficient of the current block; and

encode the third transform coefficient.

14 . The encoder of claim 13 , wherein encoding the third transform coefficient comprises:

encoding a first flag, a second flag, and the third transform coefficient;

wherein the first flag indicates that the GPM is allowed to be used for predicting a block in a current sequence, and the second flag indicates that the third transform is allowed to be used for transforming the block in the current sequence.