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

Claim 6:
7. The method according to claim 6, wherein
when m is less than or equal to (n−x), the run-length value Ni is mapped to a level value ax+i, wherein the level value ax is a level value with a largest distribution probability among the n values of the level values, i∈[0, m−1], i is an integer, x is a non-negative integer, and a distribution probability of a level value to which no run-length value is mapped remains unchanged; or when m is greater than (n−x), the run-length value Ni is mapped-to the level value ax+i, wherein the level value ax is a level value with a largest distribution probability among the n values of the level values, i∈[0, n−x], i is an integer, x is a non-negative integer, a distribution probability of a run-length value that is not mapped remains unchanged, the run-length value that is not mapped is added to the level value sequence, and a distribution probability of a level value to which no run-length value is mapped remains unchanged; and the updated second distribution probability of each level value in the level value sequence are obtained; or
when m is less than or equal to (x+1), the run-length value Ni is mapped to a level value ax−i, wherein the level value ax is a level value with a largest distribution probability among the n values of the level values, i∈[0, m−1], i is an integer, x is a non-negative integer, and a distribution probability of a level value to which no run-length value is mapped remains unchanged; or when m is greater than (x+1), the run-length value Ni is mapped to the level value ax−i, wherein the level value ax is a level value with a largest distribution probability among the n values of the level values, i∈[0, x+1], i is an integer, x is a non-negative integer, a distribution probability of a run-length value that is not mapped remains unchanged, the run-length value that is not mapped is added to the level value sequence, and a distribution probability of a level value to which no run-length value is mapped remains unchanged; and the updated second distribution probability of each level value in the level value sequence are obtained.