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

Claim 4:
5. The method according to claim 4, wherein
a run-length value sequence N0′, N1′, N2′, . . . , Nm−1′ sorted based on the m first distribution probabilities is obtained in descending order of the m first distribution probabilities; a level value sequence a0′, a1′, a2′, . . . , an−1′ sorted based on the n second distribution probabilities is obtained in descending order of the n second distribution probabilities, wherein m and n are positive integers; and when m is less than n, run-length values Nm′, Nm+1′, Nm+2′, . . . , Nn−1′ are created, them first distribution probabilities corresponding to the run-length values Nm′, Nm+1′, Nm+2′, . . . , Nn−1′ are all 0s, a run-length value Ni′ is mapped to a level value ai′, i∈[0, n−1], and i is an integer; or when m is greater than n, level values an′, an+1′, an+2′, . . . , am′ are created, the n second distribution probabilities corresponding to the level values an′, an+1′, an+2′, . . . , am′ are all 0s, a run-length value Ni′ is mapped to a level value ai′, i∈[0, m−1], and i is an integer; or when m is equal to n, a run-length value Ni′ is mapped to a level value ai′, i∈[0, n−1], and i is an integer; and updated second distribution probabilities are obtained; or
a run-length value sequence N0′, N1′, N2′, . . . , Nm−1′ sorted based on the m first distribution probabilities is obtained in descending order of the m first distribution probabilities; a level value sequence a0′, a1′, a2′, . . . , an−1′ sorted based on the n second distribution probabilities is obtained in descending order of the n second distribution probabilities, wherein m and n are positive integers; and when m is less than n, a run-length value Ni′ is mapped to a level value ai′, i∈[0, m−1], i is an integer, a second distribution probability of a level value in the level value sequence to which no run-length value is mapped remains unchanged; or when m is greater than n, a run-length value Ni′ is mapped to a level value ai′, i∈[0, n−1], i is an integer, a first distribution probability of a run-length value that is not mapped remains unchanged, and the run-length value that is not mapped is added to the level value sequence; or when m is equal to n, a run-length value Ni′ is mapped to a level value ai′, i∈[0, n−1], and i is an integer; and updated second distribution probability of each level value in the level value sequence is obtained.