Lines Matching refs:global_state
82 cinfo->global_state = DSTATE_START; in jpeg_CreateDecompress()
245 if (cinfo->global_state != DSTATE_START && in jpeg_read_header()
246 cinfo->global_state != DSTATE_INHEADER) in jpeg_read_header()
247 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_read_header()
292 switch (cinfo->global_state) { in jpeg_consume_input()
298 cinfo->global_state = DSTATE_INHEADER; in jpeg_consume_input()
306 cinfo->global_state = DSTATE_READY; in jpeg_consume_input()
323 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_consume_input()
337 if (cinfo->global_state < DSTATE_START || in jpeg_input_complete()
338 cinfo->global_state > DSTATE_STOPPING) in jpeg_input_complete()
339 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_input_complete()
352 if (cinfo->global_state < DSTATE_READY || in jpeg_has_multiple_scans()
353 cinfo->global_state > DSTATE_STOPPING) in jpeg_has_multiple_scans()
354 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_has_multiple_scans()
371 if ((cinfo->global_state == DSTATE_SCANNING || in jpeg_finish_decompress()
372 cinfo->global_state == DSTATE_RAW_OK) && ! cinfo->buffered_image) { in jpeg_finish_decompress()
377 cinfo->global_state = DSTATE_STOPPING; in jpeg_finish_decompress()
378 } else if (cinfo->global_state == DSTATE_BUFIMAGE) { in jpeg_finish_decompress()
380 cinfo->global_state = DSTATE_STOPPING; in jpeg_finish_decompress()
381 } else if (cinfo->global_state != DSTATE_STOPPING) { in jpeg_finish_decompress()
383 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); in jpeg_finish_decompress()