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

Claim 9:
10. An image encoding apparatus, comprising at least one processor, and one or more memories store programming instruction for execution by the at least one processor to:
obtain 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;
obtain 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;
obtain an updated second distribution probability of each level value in the level value sequence based on them first distribution probabilities, the n second distribution probabilities, a preset mapping rule;
perform entropy encoding based on the level value sequence and the updated second distribution probability of each level value in the level value sequence; and
output encoded image data.