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

Claim 0:
1. An image encoding method, wherein the method comprises:
obtaining a one-dimensional sequence of quantized coefficients of an image, wherein the one-dimensional sequence is obtained by scanning a two-dimensional matrix of quantized coefficients;
obtaining a run-length value sequence and a level value sequence based on the one-dimensional sequence of the quantized coefficients, wherein the run-length value sequence is N={N0, N1, N2, . . . , Nm−1}, the level value sequence is a={a0, a1, a2, . . . , an−1}, both m and n are positive integers, and wherein each run-length value in the run-length value sequence has a one-to-one correspondence to one of m first distribution probabilities and each level value in the level value sequence has a one-to-one correspondence to one of n second distribution probabilities;
obtaining an updated second distribution probability of each level value in the level value sequence based on the m first distribution probabilities, the n second distribution probabilities, and a preset mapping rule; and
performing encoding based on the level value sequence and the updated second distribution probability of each level value in the level value sequence to obtain and output encoded image data.