摘要:
An apparatus, method and system optimizes Huffman codes within the Huffman tables without requiring buffering an entire uncompressed original image. Compression of a whole image is performed prior to storage in a buffer. Therefore, the necessary buffer size for performing computation of symbol frequencies in order to optimize Huffman codes is reduced. Default Huffman codes are used to pre-compress the image for storage in the buffer. Simultaneously, the input symbol frequency is determined to produce optimized Huffman codes. The optimized Huffman codes are used to optimally re-encode the encoded image data to reduce the space of the re-encoded data. The optimally encoded image data can then be stored and/or transmitted.