Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/3rdparty/libjpeg/jctrans.c

    r2 r846  
    33 *
    44 * Copyright (C) 1995-1998, Thomas G. Lane.
     5 * Modified 2000-2009 by Guido Vollbeding.
    56 * This file is part of the Independent JPEG Group's software.
    67 * For conditions of distribution and use, see the accompanying README file.
     
    7778  dstinfo->input_components = srcinfo->num_components;
    7879  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;
    7984  /* Initialize all parameters to default values */
    8085  jpeg_set_defaults(dstinfo);
     
    159164                              jvirt_barray_ptr * coef_arrays)
    160165{
    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;
    165166  /* Initialize master control (includes parameter checking/processing) */
    166167  jinit_c_master_control(cinfo, TRUE /* transcode only */);
    167168
    168169  /* 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);
    180174  }
    181175
Note: See TracChangeset for help on using the changeset viewer.