US 11,800,108 B2
Method for image compression and circuit system thereof
Wan-Ju Tang, Hsinchu (TW); Tsung-Hsuan Li, Hsinchu (TW); and Shih-Tse Chen, Hsinchu (TW)
Assigned to REALTEK SEMICONDUCTOR CORP., Hsinchu (TW)
Filed by REALTEK SEMICONDUCTOR CORP., Hsinchu (TW)
Filed on Mar. 16, 2022, as Appl. No. 17/695,953.
Claims priority of application No. 110109896 (TW), filed on Mar. 19, 2021.
Prior Publication US 2022/0303539 A1, Sep. 22, 2022
Int. Cl. H04N 19/124 (2014.01); H04N 19/13 (2014.01); G06F 7/58 (2006.01); H04N 19/186 (2014.01); H04N 19/176 (2014.01)
CPC H04N 19/124 (2014.11) [G06F 7/588 (2013.01); H04N 19/13 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11)] 12 Claims
OG exemplary drawing
 
1. A method for image compression, comprising:
obtaining pixel values of an image, each of pixels of the image has an original value;
deciding a codeword section having a codeword distance according to a compression scenario, wherein the compression scenario denotes a scenario that utilizes a uniform-quantization manner or a non-uniform-quantization manner to decode the image from M-bit image data to N-bit image data;
generating a random number by a random number generator and deciding a range of the random number according to the codeword section;
deciding a codeword and an index of the original value of each of the pixels according to the random number; and
forming an index table after the codeword and the index of the original value of each of the pixels is decided, wherein the index table records a query index with respect to the original value of each of the pixels and the corresponding codeword for achieving a purpose of querying a codebook and reproducing the image;
wherein the uniform-quantization manner adopts a fixed codeword distance in every codeword section, and the pixels of the image are divided into multiple sections with the same codeword distance based on configuration of the codeword section; and, in the non-uniform-quantization manner, the image is divided into multiple brightness sections according to a brightness distribution of the pixels of the image; wherein each of the brightness sections is configured to have a respective codeword section according to brightness characteristics of the brightness section, and the pixels of the image are divided into multiple blocks with different codeword distances based on the respective codeword sections.