Patent ID: 11863746
Assignee: LG ELECTRONICS INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 5:
6. A method for encoding an image signal, comprising:
performing intra prediction on a current block to generate prediction samples of the current block;
generating residual samples of the current block based on the prediction samples;
performing primary transform on the residual samples of the current block to generate primary-transformed coefficients of the current block; and
performing secondary transform on the primary-transformed coefficients of the current block,
wherein the performing the secondary transform comprises:
determining a non-separable transform matrix based on an intra prediction mode of the current block; and
applying the non-separable transform matrix to the primary-transformed coefficients of the current block, and
wherein an input length and an output length of the secondary transform are respectively determined as 16 and 8 based on a size of the current block being 4×4.