Lines Matching refs:master
8 * This file contains master control logic for the JPEG compressor.
47 /* Do computations that are needed before master selection phase */
275 my_master_ptr master = (my_master_ptr) cinfo->master;
276 const jpeg_scan_info * scanptr = cinfo->scan_info + master->scan_number;
403 my_master_ptr master = (my_master_ptr) cinfo->master;
405 switch (master->pass_type) {
420 (master->total_passes > 1 ?
425 master->pub.call_pass_startup = FALSE;
428 master->pub.call_pass_startup = TRUE;
439 master->pub.call_pass_startup = FALSE;
445 master->pass_type = output_pass;
446 master->pass_number++;
459 if (master->scan_number == 0)
462 master->pub.call_pass_startup = FALSE;
468 master->pub.is_last_pass = (master->pass_number == master->total_passes-1);
472 cinfo->progress->completed_passes = master->pass_number;
473 cinfo->progress->total_passes = master->total_passes;
491 cinfo->master->call_pass_startup = FALSE; /* reset flag so call only once */
505 my_master_ptr master = (my_master_ptr) cinfo->master;
513 switch (master->pass_type) {
518 master->pass_type = output_pass;
520 master->scan_number++;
524 master->pass_type = output_pass;
529 master->pass_type = huff_opt_pass;
530 master->scan_number++;
534 master->pass_number++;
539 * Initialize master compression control.
545 my_master_ptr master;
547 master = (my_master_ptr)
550 cinfo->master = (struct jpeg_comp_master *) master;
551 master->pub.prepare_for_pass = prepare_for_pass;
552 master->pub.pass_startup = pass_startup;
553 master->pub.finish_pass = finish_pass_master;
554 master->pub.is_last_pass = FALSE;
577 master->pass_type = huff_opt_pass;
579 master->pass_type = output_pass;
582 master->pass_type = main_pass;
584 master->scan_number = 0;
585 master->pass_number = 0;
587 master->total_passes = cinfo->num_scans * 2;
589 master->total_passes = cinfo->num_scans;