Lines Matching refs:entropy
101 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff_decoder() local
159 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder()
161 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder()
164 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder()
166 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder()
177 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
182 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
185 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_phuff_decoder()
188 entropy->saved.last_dc_val[ci] = 0; in start_pass_phuff_decoder()
192 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
193 entropy->bitstate.get_buffer = 0; /* unnecessary, but keeps Purify quiet */ in start_pass_phuff_decoder()
194 entropy->pub.insufficient_data = FALSE; in start_pass_phuff_decoder()
197 entropy->saved.EOBRUN = 0; in start_pass_phuff_decoder()
200 entropy->restarts_to_go = cinfo->restart_interval; in start_pass_phuff_decoder()
244 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in process_restart() local
249 cinfo->marker->discarded_bytes += entropy->bitstate.bits_left / 8; in process_restart()
250 entropy->bitstate.bits_left = 0; in process_restart()
258 entropy->saved.last_dc_val[ci] = 0; in process_restart()
260 entropy->saved.EOBRUN = 0; in process_restart()
263 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
271 entropy->pub.insufficient_data = FALSE; in process_restart()
302 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in decode_mcu_DC_first() local
314 if (entropy->restarts_to_go == 0) in decode_mcu_DC_first()
322 if (!entropy->pub.insufficient_data) { in decode_mcu_DC_first()
325 BITREAD_LOAD_STATE(cinfo, entropy->bitstate); in decode_mcu_DC_first()
326 ASSIGN_STATE(state, entropy->saved); in decode_mcu_DC_first()
334 tbl = entropy->derived_tbls[compptr->dc_tbl_no]; in decode_mcu_DC_first()
358 BITREAD_SAVE_STATE(cinfo, entropy->bitstate); in decode_mcu_DC_first()
359 ASSIGN_STATE(entropy->saved, state); in decode_mcu_DC_first()
363 entropy->restarts_to_go--; in decode_mcu_DC_first()
377 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in decode_mcu_AC_first() local
388 if (entropy->restarts_to_go == 0) in decode_mcu_AC_first()
396 if (!entropy->pub.insufficient_data) { in decode_mcu_AC_first()
401 EOBRUN = entropy->saved.EOBRUN; /* only part of saved state we need */ in decode_mcu_AC_first()
408 BITREAD_LOAD_STATE(cinfo, entropy->bitstate); in decode_mcu_AC_first()
410 tbl = entropy->ac_derived_tbl; in decode_mcu_AC_first()
439 BITREAD_SAVE_STATE(cinfo, entropy->bitstate); in decode_mcu_AC_first()
443 entropy->saved.EOBRUN = EOBRUN; /* only part of saved state we need */ in decode_mcu_AC_first()
447 entropy->restarts_to_go--; in decode_mcu_AC_first()
462 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in decode_mcu_DC_refine() local
470 if (entropy->restarts_to_go == 0) in decode_mcu_DC_refine()
480 BITREAD_LOAD_STATE(cinfo, entropy->bitstate); in decode_mcu_DC_refine()
495 BITREAD_SAVE_STATE(cinfo, entropy->bitstate); in decode_mcu_DC_refine()
498 entropy->restarts_to_go--; in decode_mcu_DC_refine()
511 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in decode_mcu_AC_refine() local
526 if (entropy->restarts_to_go == 0) in decode_mcu_AC_refine()
533 if (!entropy->pub.insufficient_data) { in decode_mcu_AC_refine()
536 BITREAD_LOAD_STATE(cinfo, entropy->bitstate); in decode_mcu_AC_refine()
537 EOBRUN = entropy->saved.EOBRUN; /* only part of saved state we need */ in decode_mcu_AC_refine()
541 tbl = entropy->ac_derived_tbl; in decode_mcu_AC_refine()
636 BITREAD_SAVE_STATE(cinfo, entropy->bitstate); in decode_mcu_AC_refine()
637 entropy->saved.EOBRUN = EOBRUN; /* only part of saved state we need */ in decode_mcu_AC_refine()
641 entropy->restarts_to_go--; in decode_mcu_AC_refine()
661 phuff_entropy_ptr entropy; in jinit_phuff_decoder() local
665 entropy = (phuff_entropy_ptr) in jinit_phuff_decoder()
668 cinfo->entropy = (struct jpeg_entropy_decoder *)entropy; in jinit_phuff_decoder()
669 entropy->pub.start_pass = start_pass_phuff_decoder; in jinit_phuff_decoder()
673 entropy->derived_tbls[i] = NULL; in jinit_phuff_decoder()