摘要 |
This invention allows Huffman encoding using a common Huffman table according to basic quantization values Q<SUB>i,j </SUB>even when image data expressed by n bits falling within the range from L to K is JPEG-coded, and can suppress the Huffman table size from increasing. To this end, a basic quantization table storage unit stores quantization step values Q<SUB>0,0 </SUB>to Q<SUB>7,7 </SUB>used in baseline JPEG coding. A minimum quantization step generator outputs a minimum quantization step value Q<SUB>n</SUB><SUB><SUB2>-</SUB2></SUB><SUB>min </SUB>to a comparator/selector according to the number n of bits of each color component of image data to be coded. The comparator/selector compares the quantization step values Q<SUB>0,0 </SUB>to Q<SUB>7,7 </SUB>with Q<SUB>n</SUB><SUB><SUB2>-</SUB2></SUB><SUB>min </SUB>and selects larger ones, and outputs the comparison results to a quantizer as Q'<SUB>i,j</SUB>. The quantizer stores Q'<SUB>i,j </SUB>in a quantization table storage unit and quantizes orthogonal transformation coefficients output from a DCT transformer.
|