US 11,863,799 B2
Image encoding method and apparatus, image decoding method and apparatus, and chip
Bin Li, Shenzhen (CN); Ling Liu, Shenzhen (CN); Hui Shen, Shenzhen (CN); and Jiaqi Gu, Shenzhen (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Feb. 17, 2022, as Appl. No. 17/674,676.
Application 17/674,676 is a continuation of application No. PCT/CN2020/107673, filed on Aug. 7, 2020.
Claims priority of application No. 201910766066.4 (CN), filed on Aug. 19, 2019.
Prior Publication US 2022/0174329 A1, Jun. 2, 2022
Int. Cl. H04B 1/00 (2006.01); H04N 19/93 (2014.01); H04N 19/124 (2014.01); H04N 19/91 (2014.01)
CPC H04N 19/93 (2014.11) [H04N 19/124 (2014.11); H04N 19/91 (2014.11)] 20 Claims
OG exemplary drawing
 
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.