Changeset 846 for trunk/src/3rdparty/libjpeg/jctrans.c
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/libjpeg/jctrans.c
r2 r846 3 3 * 4 4 * Copyright (C) 1995-1998, Thomas G. Lane. 5 * Modified 2000-2009 by Guido Vollbeding. 5 6 * This file is part of the Independent JPEG Group's software. 6 7 * For conditions of distribution and use, see the accompanying README file. … … 77 78 dstinfo->input_components = srcinfo->num_components; 78 79 dstinfo->in_color_space = srcinfo->jpeg_color_space; 80 dstinfo->jpeg_width = srcinfo->output_width; 81 dstinfo->jpeg_height = srcinfo->output_height; 82 dstinfo->min_DCT_h_scaled_size = srcinfo->min_DCT_h_scaled_size; 83 dstinfo->min_DCT_v_scaled_size = srcinfo->min_DCT_v_scaled_size; 79 84 /* Initialize all parameters to default values */ 80 85 jpeg_set_defaults(dstinfo); … … 159 164 jvirt_barray_ptr * coef_arrays) 160 165 { 161 /* Although we don't actually use input_components for transcoding,162 * jcmaster.c's initial_setup will complain if input_components is 0.163 */164 cinfo->input_components = 1;165 166 /* Initialize master control (includes parameter checking/processing) */ 166 167 jinit_c_master_control(cinfo, TRUE /* transcode only */); 167 168 168 169 /* Entropy encoding: either Huffman or arithmetic coding. */ 169 if (cinfo->arith_code) { 170 ERREXIT(cinfo, JERR_ARITH_NOTIMPL); 171 } else { 172 if (cinfo->progressive_mode) { 173 #ifdef C_PROGRESSIVE_SUPPORTED 174 jinit_phuff_encoder(cinfo); 175 #else 176 ERREXIT(cinfo, JERR_NOT_COMPILED); 177 #endif 178 } else 179 jinit_huff_encoder(cinfo); 170 if (cinfo->arith_code) 171 jinit_arith_encoder(cinfo); 172 else { 173 jinit_huff_encoder(cinfo); 180 174 } 181 175
Note:
See TracChangeset
for help on using the changeset viewer.