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

Claim 0:
1. 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 a top-left preset region of the first transform coefficient matrix, wherein a size of the top-left preset region is less than a size of the first transform coefficient matrix;
parsing an index value based on the quantity K being greater than a threshold;
determining a transform matrix based on the index value;
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.