/* The legal range of a DCT coefficient is *-1024..+1023for8-bitdata; *-16384..+16383for12-bitdata. *Hencethemagnitudeshouldalwaysfitin10or14bitsrespectively.
*/
/* The progressive Huffman encoder uses an unsigned 16-bit data type to store *absolutevaluesofcoefficients,becauseitispossibletoinjecta *coefficientvalueof-32768intotheencoderbyattemptingtotransforma *malformed12-bitJPEGimage,andtheabsolutevalueof-32768wouldoverflow *asigned16-bitinteger.
*/ typedefunsignedshort UJCOEF;
/* Derived data constructed for each Huffman table */
typedefstruct { unsignedint ehufco[256]; /* code for each symbol */ char ehufsi[256]; /* length of code for each symbol */ /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */
} c_derived_tbl;
/* Expand a Huffman table definition into the derived format */ EXTERN(void) jpeg_make_c_derived_tbl(j_compress_ptr cinfo, boolean isDC, int tblno, c_derived_tbl **pdtbl);
/* Generate an optimal table definition given the specified counts */ EXTERN(void) jpeg_gen_optimal_table(j_compress_ptr cinfo, JHUFF_TBL *htbl, long freq[]);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.