Patent ID: 11917203
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 12:
13. A method, comprising:
parsing, by a processor, a transform coefficient of a transform block in a current coding unit to obtain a first transform coefficient matrix;
obtaining a quantity K of non-zero transform coefficients in the first transform coefficient matrix;
parsing an index value based on the quantity K being greater than a threshold;
determining, based on an intra prediction mode corresponding to the transform block, a transform set in which a transform matrix is located, wherein a number of the transform set is only one of three values;
determining the transform matrix based on the index value and the number of the transform set;
multiplying N transform coefficients of the first transform coefficient matrix by the transform matrix to obtain M transform coefficients;
updating the first transform coefficient matrix by using the M transform coefficients to obtain a second transform coefficient matrix; and
performing an inverse transform on the second transform coefficient matrix to obtain residual samples of the current coding unit.