/* Initialize master decompression control and select active modules. This is performed at the start of jpeg_start_decompress.  */
jinit_master_decompress(j_decompress_ptr cinfo)
/* Initialize master decompression control and select active modules. This is performed at the start of jpeg_start_decompress.  */
jinit_master_decompress(j_decompress_ptr cinfo)
{
  my_master_ptr master;
  master = (my_master_ptr)
      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				  SIZEOF(my_decomp_master));
  cinfo->master = (struct jpeg_decomp_master *) master;
  master->pub.prepare_for_output_pass = prepare_for_output_pass;
  master->pub.finish_output_pass = finish_output_pass;
  master->pub.is_dummy_pass = FALSE;
  master_selection(cinfo);
}