OLD | NEW |
1 #if !defined(_FX_JPEG_TURBO_) | |
2 /* | 1 /* |
3 * jcmaster.c | 2 * jcmaster.c |
4 * | 3 * |
5 * Copyright (C) 1991-1997, Thomas G. Lane. | 4 * Copyright (C) 1991-1997, Thomas G. Lane. |
6 * This file is part of the Independent JPEG Group's software. | 5 * This file is part of the Independent JPEG Group's software. |
7 * For conditions of distribution and use, see the accompanying README file. | 6 * For conditions of distribution and use, see the accompanying README file. |
8 * | 7 * |
9 * This file contains master control logic for the JPEG compressor. | 8 * This file contains master control logic for the JPEG compressor. |
10 * These routines are concerned with parameter validation, initial setup, | 9 * These routines are concerned with parameter validation, initial setup, |
11 * and inter-pass control (determining the number of passes and the work | 10 * and inter-pass control (determining the number of passes and the work |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 /* for normal compression, first pass is always this type: */ | 581 /* for normal compression, first pass is always this type: */ |
583 master->pass_type = main_pass; | 582 master->pass_type = main_pass; |
584 } | 583 } |
585 master->scan_number = 0; | 584 master->scan_number = 0; |
586 master->pass_number = 0; | 585 master->pass_number = 0; |
587 if (cinfo->optimize_coding) | 586 if (cinfo->optimize_coding) |
588 master->total_passes = cinfo->num_scans * 2; | 587 master->total_passes = cinfo->num_scans * 2; |
589 else | 588 else |
590 master->total_passes = cinfo->num_scans; | 589 master->total_passes = cinfo->num_scans; |
591 } | 590 } |
592 | |
593 #endif //_FX_JPEG_TURBO_ | |
OLD | NEW |