Home | History | Annotate | Download | only in libjpeg-turbo

Lines Matching defs:entropy

11  * This file contains Huffman entropy decoding routines for progressive JPEG.
29 * Expanded entropy decoder object for progressive Huffman decoding.
97 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
155 entropy->pub.decode_mcu = decode_mcu_DC_first;
157 entropy->pub.decode_mcu = decode_mcu_AC_first;
160 entropy->pub.decode_mcu = decode_mcu_DC_refine;
162 entropy->pub.decode_mcu = decode_mcu_AC_refine;
173 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl;
178 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl;
181 entropy->ac_derived_tbl = entropy->derived_tbls[tbl];
184 entropy->saved.last_dc_val[ci] = 0;
188 entropy->bitstate.bits_left = 0;
189 entropy->bitstate.get_buffer = 0; /* unnecessary, but keeps Purify quiet */
190 entropy->pub.insufficient_data = FALSE;
193 entropy->saved.EOBRUN = 0;
196 entropy->restarts_to_go = cinfo->restart_interval;
236 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
241 cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8;
242 entropy->bitstate.bits_left = 0;
250 entropy->saved.last_dc_val[ci] = 0;
252 entropy->saved.EOBRUN = 0;
255 entropy->restarts_to_go = cinfo->restart_interval;
263 entropy->pub.insufficient_data = FALSE;
294 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
306 if (entropy->restarts_to_go == 0)
314 if (! entropy->pub.insufficient_data) {
317 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
318 ASSIGN_STATE(state, entropy->saved);
326 tbl = entropy->derived_tbls[compptr->dc_tbl_no];
346 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
347 ASSIGN_STATE(entropy->saved, state);
351 entropy->restarts_to_go--;
365 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
376 if (entropy->restarts_to_go == 0)
384 if (! entropy->pub.insufficient_data) {
389 EOBRUN = entropy->saved.EOBRUN; /* only part of saved state we need */
396 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
398 tbl = entropy->ac_derived_tbl;
427 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
431 entropy->saved.EOBRUN = EOBRUN; /* only part of saved state we need */
435 entropy->restarts_to_go--;
450 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
458 if (entropy->restarts_to_go == 0)
468 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
483 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
486 entropy->restarts_to_go--;
499 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
514 if (entropy->restarts_to_go == 0)
521 if (! entropy->pub.insufficient_data) {
524 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
525 EOBRUN = entropy->saved.EOBRUN; /* only part of saved state we need */
529 tbl = entropy->ac_derived_tbl;
624 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
625 entropy->saved.EOBRUN = EOBRUN; /* only part of saved state we need */
629 entropy->restarts_to_go--;
643 * Module initialization routine for progressive Huffman entropy decoding.
649 phuff_entropy_ptr entropy;
653 entropy = (phuff_entropy_ptr)
656 cinfo->entropy = (struct jpeg_entropy_decoder *) entropy;
657 entropy->pub.start_pass = start_pass_phuff_decoder;
661 entropy->derived_tbls[i] = NULL;