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

Claim 19:
20. A video coding device, comprising:
a processor; and
a memory having instructions stored thereon that, when executed by the processor, causes the video coding device to:
parse a transform coefficient of a transform block in a current coding unit to obtain a first transform coefficient matrix;
obtain 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;
parse an index value based on the quantity K being greater than a threshold;
determine a transform matrix based on the index value;
multiply N transform coefficients of the first transform coefficient matrix by the transform matrix to obtain M transform coefficients;
update the first transform coefficient matrix by using the M transform coefficients to obtain a second transform coefficient matrix; and
perform an inverse transform on the second transform coefficient matrix to obtain residual samples of the current coding unit.