IP Library Granted Patent US 12684159
Granted Patent B2
US 12684159 · App. 19/068,427 · Granted Jul 14, 2026

Encoding method, decoding method, encoder, and decoder

Inventors: Ryuichi Kanoh (Osaka, JP); Tadamasa Toma (Osaka, JP); Kiyofumi Abe (Osaka, JP); Takahiro Nishi (Nara, JP)
Assignee: PANASONIC INTELLECTUAL PROPERTY CORPORATION OF AMERICA
H04N19/52H04N19/122H04N19/124H04N19/176H04N19/44
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 12684159
App. No.
19/068,427
Granted
Jul 14, 2026
Kind
B2
Abstract

An encoder includes circuitry and memory. Using the memory, the circuitry performs a primary transform on a derived prediction error, performs a secondary transform on a result of the primary transform, quantizes a result of the secondary transform, and encodes a result of the quantization as data of an image. When a current block to be processed has a predetermined shape, the encoder performs the secondary transform using, among secondary transform basis candidates that are secondary bases usable in the secondary transform, only a secondary transform basis candidate having a size that is not largest size containable in the current block.

Claims (35)

1 . A decoder comprising:

circuitry; and

memory,

wherein, using the memory, the circuitry:

inverse quantizes quantized coefficients of a current block;

performs, depending on a size of the current block, either (i) an inverse secondary transform on a part of a result of the inverse quantization and an inverse primary transform on a result of the inverse secondary transform and another part of the result of the inverse quantization, or (ii) the inverse secondary transform on the result of the inverse quantization and the inverse primary transform on the result of the inverse secondary transform, the inverse secondary transform being performed using an inverse secondary transform basis selected from among inverse secondary transform basis candidates; and

derives an image based on a residual signal derived from a result of the inverse primary transform,

wherein the inverse secondary transform basis used for the inverse secondary transform is selected depending on the size of the current block.

2 . An encoder comprising:

circuitry; and

memory,

wherein, using the memory, the circuitry:

derives a residual signal of a current block;

performs, depending on a size of the current block, either (i) a primary transform on the residual signal and a secondary transform on a result of the primary transform, or (ii) a primary transform on the residual signal and a secondary transform on a part of the result of the primary transform, the secondary transform being performed using a secondary transform basis selected from among secondary transform basis candidates;

quantizes a result of the secondary transform;

encodes a result of the quantization to generate coded data; and

generates a bitstream including the coded data,

wherein the secondary transform basis used for the secondary transform is selected depending on the size of the current block.

3 . A decoding method comprising:

inverse quantizing quantized coefficients of a current block;

performing, depending on a size of the current block, either (i) an inverse secondary transform on a part of a result of the inverse quantization and an inverse primary transform on a result of the inverse secondary transform and another part of the result of the inverse quantization, or (ii) the inverse secondary transform on the result of the inverse quantization and the inverse primary transform on the result of the inverse secondary transform, the inverse secondary transform being performed using an inverse secondary transform basis selected from among inverse secondary transform basis candidates; and

deriving an image based on a residual signal derived from a result of the inverse primary transform,

wherein the inverse secondary transform basis used for the inverse secondary transform is selected depending on the size of the current block.

4 . An encoding method comprising:

deriving a residual signal of a current block;

performing, depending on a size of the current block, either (i) a primary transform on the residual signal and a secondary transform on a result of the primary transform, or (ii) a primary transform on the residual signal and a secondary transform on a part of the result of the primary transform, the secondary transform being performed using a secondary transform basis selected from among secondary transform basis candidates;

quantizing a result of the secondary transform;

encoding a result of the quantization to generate coded data; and

generating a bitstream including the coded data,

wherein the secondary transform basis used for the secondary transform is selected depending on the size of the current block.

5 . A non-transitory computer readable medium storing a bitstream and computer-executable instructions, the bitstream including coded data of a current block and signals according to which the computer-executable instructions cause a decoder to perform a decoding method comprising:

inverse quantizing quantized coefficients of the current block;

performing, depending on a size of the current block, either (i) an inverse secondary transform on a part of a result of the inverse quantization and an inverse primary transform on a result of the inverse secondary transform and another part of the result of the inverse quantization, or (ii) the inverse secondary transform on the result of the inverse quantization and the inverse primary transform on the result of the inverse secondary transform, the inverse secondary transform being performed using an inverse secondary transform basis selected from among inverse secondary transform basis candidates; and

deriving an image based on a residual signal derived from a result of the inverse primary transform,

wherein the inverse secondary transform basis used for the inverse secondary transform is selected depending on the size of the current block.