OLD | NEW |
1 #if !defined(_FX_JPEG_TURBO_) | |
2 /* | 1 /* |
3 * jcprepct.c | 2 * jcprepct.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 compression preprocessing controller. | 8 * This file contains the compression preprocessing controller. |
10 * This controller manages the color conversion, downsampling, | 9 * This controller manages the color conversion, downsampling, |
11 * and edge expansion steps. | 10 * and edge expansion steps. |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; | 345 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; |
347 ci++, compptr++) { | 346 ci++, compptr++) { |
348 prep->color_buf[ci] = (*cinfo->mem->alloc_sarray) | 347 prep->color_buf[ci] = (*cinfo->mem->alloc_sarray) |
349 ((j_common_ptr) cinfo, JPOOL_IMAGE, | 348 ((j_common_ptr) cinfo, JPOOL_IMAGE, |
350 (JDIMENSION) (((long) compptr->width_in_blocks * DCTSIZE * | 349 (JDIMENSION) (((long) compptr->width_in_blocks * DCTSIZE * |
351 cinfo->max_h_samp_factor) / compptr->h_samp_factor), | 350 cinfo->max_h_samp_factor) / compptr->h_samp_factor), |
352 (JDIMENSION) cinfo->max_v_samp_factor); | 351 (JDIMENSION) cinfo->max_v_samp_factor); |
353 } | 352 } |
354 } | 353 } |
355 } | 354 } |
356 | |
357 #endif //_FX_JPEG_TURBO_ | |
OLD | NEW |