| OLD | NEW |
| 1 #if !defined(_FX_JPEG_TURBO_) | |
| 2 /* | 1 /* |
| 3 * jdmainct.c | 2 * jdmainct.c |
| 4 * | 3 * |
| 5 * Copyright (C) 1994-1996, Thomas G. Lane. | 4 * Copyright (C) 1994-1996, 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 the main buffer controller for decompression. | 8 * This file contains the main buffer controller for decompression. |
| 10 * The main buffer lies between the JPEG decompressor proper and the | 9 * The main buffer lies between the JPEG decompressor proper and the |
| 11 * post-processor; it holds downsampled data in the JPEG colorspace. | 10 * post-processor; it holds downsampled data in the JPEG colorspace. |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; | 503 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; |
| 505 ci++, compptr++) { | 504 ci++, compptr++) { |
| 506 rgroup = (compptr->v_samp_factor * compptr->DCT_scaled_size) / | 505 rgroup = (compptr->v_samp_factor * compptr->DCT_scaled_size) / |
| 507 cinfo->min_DCT_scaled_size; /* height of a row group of component */ | 506 cinfo->min_DCT_scaled_size; /* height of a row group of component */ |
| 508 main->buffer[ci] = (*cinfo->mem->alloc_sarray) | 507 main->buffer[ci] = (*cinfo->mem->alloc_sarray) |
| 509 ((j_common_ptr) cinfo, JPOOL_IMAGE, | 508 ((j_common_ptr) cinfo, JPOOL_IMAGE, |
| 510 compptr->width_in_blocks * compptr->DCT_scaled_size, | 509 compptr->width_in_blocks * compptr->DCT_scaled_size, |
| 511 (JDIMENSION) (rgroup * ngroups)); | 510 (JDIMENSION) (rgroup * ngroups)); |
| 512 } | 511 } |
| 513 } | 512 } |
| 514 | |
| 515 #endif //_FX_JPEG_TURBO_ | |
| OLD | NEW |