Lines Matching refs:entropy

9  * This file contains Huffman entropy decoding routines for progressive JPEG.

27 * Expanded entropy decoder object for progressive Huffman decoding.
95 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
152 entropy->pub.decode_mcu = decode_mcu_DC_first;
154 entropy->pub.decode_mcu = decode_mcu_AC_first;
157 entropy->pub.decode_mcu = decode_mcu_DC_refine;
159 entropy->pub.decode_mcu = decode_mcu_AC_refine;
171 & entropy->derived_tbls[tbl]);
176 & entropy->derived_tbls[tbl]);
178 entropy->ac_derived_tbl = entropy->derived_tbls[tbl];
181 entropy->saved.last_dc_val[ci] = 0;
185 entropy->bitstate.bits_left = 0;
186 entropy->bitstate.get_buffer = 0; /* unnecessary, but keeps Purify quiet */
187 entropy->pub.insufficient_data = FALSE;
190 entropy->saved.EOBRUN = 0;
193 entropy->restarts_to_go = cinfo->restart_interval;
231 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
236 cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8;
237 entropy->bitstate.bits_left = 0;
245 entropy->saved.last_dc_val[ci] = 0;
247 entropy->saved.EOBRUN = 0;
250 entropy->restarts_to_go = cinfo->restart_interval;
258 entropy->pub.insufficient_data = FALSE;
289 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
301 if (entropy->restarts_to_go == 0)
309 if (! entropy->pub.insufficient_data) {
312 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
313 ASSIGN_STATE(state, entropy->saved);
321 tbl = entropy->derived_tbls[compptr->dc_tbl_no];
341 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
342 ASSIGN_STATE(entropy->saved, state);
346 entropy->restarts_to_go--;
360 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
371 if (entropy->restarts_to_go == 0)
379 if (! entropy->pub.insufficient_data) {
384 EOBRUN = entropy->saved.EOBRUN; /* only part of saved state we need */
391 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
393 tbl = entropy->ac_derived_tbl;
422 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
426 entropy->saved.EOBRUN = EOBRUN; /* only part of saved state we need */
430 entropy->restarts_to_go--;
445 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
453 if (entropy->restarts_to_go == 0)
463 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
478 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
481 entropy->restarts_to_go--;
494 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
509 if (entropy->restarts_to_go == 0)
516 if (! entropy->pub.insufficient_data) {
519 BITREAD_LOAD_STATE(cinfo,entropy->bitstate);
520 EOBRUN = entropy->saved.EOBRUN; /* only part of saved state we need */
524 tbl = entropy->ac_derived_tbl;
619 BITREAD_SAVE_STATE(cinfo,entropy->bitstate);
620 entropy->saved.EOBRUN = EOBRUN; /* only part of saved state we need */
624 entropy->restarts_to_go--;
638 * Module initialization routine for progressive Huffman entropy decoding.
644 phuff_entropy_ptr entropy;
648 entropy = (phuff_entropy_ptr)
651 cinfo->entropy = (struct jpeg_entropy_decoder *) entropy;
652 entropy->pub.start_pass = start_pass_phuff_decoder;
656 entropy->derived_tbls[i] = NULL;