OLD | NEW |
1 #if !defined(_FX_JPEG_TURBO_) | |
2 /* | 1 /* |
3 * jcmainct.c | 2 * jcmainct.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 compression. | 8 * This file contains the main buffer controller for compression. |
10 * The main buffer lies between the pre-processor and the JPEG | 9 * The main buffer lies between the pre-processor and the JPEG |
11 * compressor proper; it holds downsampled data in the JPEG colorspace. | 10 * compressor proper; it holds downsampled data in the JPEG colorspace. |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 /* Allocate a strip buffer for each component */ | 284 /* Allocate a strip buffer for each component */ |
286 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; | 285 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; |
287 ci++, compptr++) { | 286 ci++, compptr++) { |
288 main->buffer[ci] = (*cinfo->mem->alloc_sarray) | 287 main->buffer[ci] = (*cinfo->mem->alloc_sarray) |
289 ((j_common_ptr) cinfo, JPOOL_IMAGE, | 288 ((j_common_ptr) cinfo, JPOOL_IMAGE, |
290 compptr->width_in_blocks * DCTSIZE, | 289 compptr->width_in_blocks * DCTSIZE, |
291 (JDIMENSION) (compptr->v_samp_factor * DCTSIZE)); | 290 (JDIMENSION) (compptr->v_samp_factor * DCTSIZE)); |
292 } | 291 } |
293 } | 292 } |
294 } | 293 } |
295 | |
296 #endif //_FX_JPEG_TURBO_ | |
OLD | NEW |