/* Initialize the input controller module. This is called only once, when the decompression object is created.  */
jinit_input_controller(j_decompress_ptr cinfo)
/* Initialize the input controller module. This is called only once, when the decompression object is created.  */
jinit_input_controller(j_decompress_ptr cinfo)
{
  my_inputctl_ptr inputctl;
  inputctl = (my_inputctl_ptr)
    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,
				SIZEOF(my_input_controller));
  cinfo->inputctl = &inputctl->pub;
  inputctl->pub.consume_input = consume_markers;
  inputctl->pub.reset_input_controller = reset_input_controller;
  inputctl->pub.start_input_pass = start_input_pass;
  inputctl->pub.finish_input_pass = finish_input_pass;
  inputctl->pub.has_multiple_scans = FALSE;
  inputctl->pub.eoi_reached = FALSE;
  inputctl->inheaders = 1;
}