/* Initialize the input modules to read a scan of compressed data. The first call to this is done by jdmaster.c after initializing the entire decompressor (during jpeg_start_decompress). Subsequent calls come from consume_markers, below.  */
start_input_pass(j_decompress_ptr cinfo)
/* Initialize the input modules to read a scan of compressed data. The first call to this is done by jdmaster.c after initializing the entire decompressor (during jpeg_start_decompress). Subsequent calls come from consume_markers, below.  */
start_input_pass(j_decompress_ptr cinfo)
{
    per_scan_setup(cinfo);
    latch_quant_tables(cinfo);
    (*cinfo->entropy->start_pass) (cinfo);
    (*cinfo->coef->start_input_pass) (cinfo);
    cinfo->inputctl->consume_input = cinfo->coef->consume_data;
}