Home | History | Annotate | Download | only in jpeg-6b

Lines Matching refs:cinfo

19 LOCAL(void) transdecode_master_selection JPP((j_decompress_ptr cinfo));
45 jpeg_read_coefficients (j_decompress_ptr cinfo)
47 if (cinfo->global_state == DSTATE_READY) {
49 transdecode_master_selection(cinfo);
50 cinfo->global_state = DSTATE_RDCOEFS;
52 if (cinfo->global_state == DSTATE_RDCOEFS) {
57 if (cinfo->progress != NULL)
58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
60 retcode = (*cinfo->inputctl->consume_input) (cinfo);
66 if (cinfo->progress != NULL &&
68 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) {
70 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows;
75 cinfo->global_state = DSTATE_STOPPING;
81 if ((cinfo->global_state == DSTATE_STOPPING ||
82 cinfo->global_state == DSTATE_BUFIMAGE) && cinfo->buffered_image) {
83 return cinfo->coef->coef_arrays;
86 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
91 jpeg_build_huffman_index_progressive(j_decompress_ptr cinfo,
94 if (cinfo->global_state == DSTATE_READY) {
97 transdecode_master_selection(cinfo);
98 cinfo->global_state = DSTATE_RDCOEFS;
100 if (cinfo->global_state == DSTATE_RDCOEFS) {
102 cinfo->marker->get_sos_marker_position(cinfo, index);
105 for (mcu = 0; mcu < cinfo->total_iMCU_rows; mcu++) {
108 if (cinfo->progress != NULL)
109 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
111 jinit_phuff_decoder(cinfo);
113 (*cinfo->inputctl->finish_input_pass) (cinfo);
114 jset_input_stream_position(cinfo, index->scan[i].bitstream_offset);
115 cinfo->unread_marker = 0;
116 retcode = (*cinfo->inputctl->consume_input_build_huffman_index)
117 (cinfo, index, i);
120 cinfo->input_iMCU_row = mcu;
122 (*cinfo->entropy->configure_huffman_decoder)
123 (cinfo, index->scan[i].prev_MCU_offset);
124 cinfo->input_scan_number = i;
125 retcode = (*cinfo->inputctl->consume_input_build_huffman_index)
126 (cinfo, index, i);
133 if (cinfo->progress != NULL &&
135 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) {
137 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows;
141 cinfo->global_state = DSTATE_STOPPING;
147 if ((cinfo->global_state == DSTATE_STOPPING ||
148 cinfo->global_state == DSTATE_BUFIMAGE) && cinfo->buffered_image) {
152 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
157 jpeg_build_huffman_index_baseline(j_decompress_ptr cinfo, huffman_index *index)
159 if (cinfo->global_state == DSTATE_READY) {
162 transdecode_master_selection(cinfo);
163 cinfo->global_state = DSTATE_RDCOEFS;
165 if (cinfo->global_state == DSTATE_RDCOEFS) {
170 if (cinfo->progress != NULL)
171 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
173 retcode = (*cinfo->inputctl->consume_input_build_huffman_index)
174 (cinfo, index, 0);
183 if (cinfo->progress != NULL &&
185 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) {
187 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows;
192 cinfo->global_state = DSTATE_STOPPING;
198 if ((cinfo->global_state == DSTATE_STOPPING ||
199 cinfo->global_state == DSTATE_BUFIMAGE) && cinfo->buffered_image) {
203 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
208 jpeg_build_huffman_index(j_decompress_ptr cinfo, huffman_index *index)
210 cinfo->tile_decode = TRUE;
211 if (cinfo->progressive_mode)
212 return jpeg_build_huffman_index_progressive(cinfo, index);
214 return jpeg_build_huffman_index_baseline(cinfo, index);
223 transdecode_master_selection (j_decompress_ptr cinfo)
226 cinfo->buffered_image = TRUE;
229 if (cinfo->arith_code) {
230 ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
232 if (cinfo->progressive_mode) {
234 jinit_phuff_decoder(cinfo);
236 ERREXIT(cinfo, JERR_NOT_COMPILED);
239 jinit_huff_decoder(cinfo);
244 jinit_d_coef_controller(cinfo, TRUE);
247 (*cinfo->mem->realize_virt_arrays) ((j_common_ptr) cinfo);
250 (*cinfo->inputctl->start_input_pass) (cinfo);
253 if (cinfo->progress != NULL) {
256 if (cinfo->progressive_mode) {
258 nscans = 2 + 3 * cinfo->num_components;
259 } else if (cinfo->inputctl->has_multiple_scans) {
261 nscans = cinfo->num_components;
265 cinfo->progress->pass_counter = 0L;
266 cinfo->progress->pass_limit = (long) cinfo->total_iMCU_rows * nscans;
267 cinfo->progress->completed_passes = 0;
268 cinfo->progress->total_passes = 1;