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/jccoefct.c

    r2 r846  
    150150  JDIMENSION ypos, xpos;
    151151  jpeg_component_info *compptr;
     152  forward_DCT_ptr forward_DCT;
    152153
    153154  /* Loop to write as much as one whole iMCU row */
     
    168169      for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
    169170        compptr = cinfo->cur_comp_info[ci];
     171        forward_DCT = cinfo->fdct->forward_DCT[compptr->component_index];
    170172        blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width
    171173                                                : compptr->last_col_width;
    172174        xpos = MCU_col_num * compptr->MCU_sample_width;
    173         ypos = yoffset * DCTSIZE; /* ypos == (yoffset+yindex) * DCTSIZE */
     175        ypos = yoffset * compptr->DCT_v_scaled_size;
     176        /* ypos == (yoffset+yindex) * DCTSIZE */
    174177        for (yindex = 0; yindex < compptr->MCU_height; yindex++) {
    175178          if (coef->iMCU_row_num < last_iMCU_row ||
    176179              yoffset+yindex < compptr->last_row_height) {
    177             (*cinfo->fdct->forward_DCT) (cinfo, compptr,
    178                                         input_buf[compptr->component_index],
    179                                         coef->MCU_buffer[blkn],
    180                                         ypos, xpos, (JDIMENSION) blockcnt);
     180            (*forward_DCT) (cinfo, compptr,
     181                            input_buf[compptr->component_index],
     182                            coef->MCU_buffer[blkn],
     183                            ypos, xpos, (JDIMENSION) blockcnt);
    181184            if (blockcnt < compptr->MCU_width) {
    182185              /* Create some dummy blocks at the right edge of the image. */
     
    196199          }
    197200          blkn += compptr->MCU_width;
    198           ypos += DCTSIZE;
     201          ypos += compptr->DCT_v_scaled_size;
    199202        }
    200203      }
     
    253256  JBLOCKARRAY buffer;
    254257  JBLOCKROW thisblockrow, lastblockrow;
     258  forward_DCT_ptr forward_DCT;
    255259
    256260  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
     
    275279    if (ndummy > 0)
    276280      ndummy = h_samp_factor - ndummy;
     281    forward_DCT = cinfo->fdct->forward_DCT[ci];
    277282    /* Perform DCT for all non-dummy blocks in this iMCU row.  Each call
    278283     * on forward_DCT processes a complete horizontal row of DCT blocks.
     
    280285    for (block_row = 0; block_row < block_rows; block_row++) {
    281286      thisblockrow = buffer[block_row];
    282       (*cinfo->fdct->forward_DCT) (cinfo, compptr,
    283                                    input_buf[ci], thisblockrow,
    284                                    (JDIMENSION) (block_row * DCTSIZE),
    285                                    (JDIMENSION) 0, blocks_across);
     287      (*forward_DCT) (cinfo, compptr, input_buf[ci], thisblockrow,
     288                      (JDIMENSION) (block_row * compptr->DCT_v_scaled_size),
     289                      (JDIMENSION) 0, blocks_across);
    286290      if (ndummy > 0) {
    287291        /* Create dummy blocks at the right edge of the image. */
Note: See TracChangeset for help on using the changeset viewer.