Changeset 846 for trunk/src/3rdparty/libjpeg/jccoefct.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/jccoefct.c
r2 r846 150 150 JDIMENSION ypos, xpos; 151 151 jpeg_component_info *compptr; 152 forward_DCT_ptr forward_DCT; 152 153 153 154 /* Loop to write as much as one whole iMCU row */ … … 168 169 for (ci = 0; ci < cinfo->comps_in_scan; ci++) { 169 170 compptr = cinfo->cur_comp_info[ci]; 171 forward_DCT = cinfo->fdct->forward_DCT[compptr->component_index]; 170 172 blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width 171 173 : compptr->last_col_width; 172 174 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 */ 174 177 for (yindex = 0; yindex < compptr->MCU_height; yindex++) { 175 178 if (coef->iMCU_row_num < last_iMCU_row || 176 179 yoffset+yindex < compptr->last_row_height) { 177 (* cinfo->fdct->forward_DCT) (cinfo, compptr,178 179 180 180 (*forward_DCT) (cinfo, compptr, 181 input_buf[compptr->component_index], 182 coef->MCU_buffer[blkn], 183 ypos, xpos, (JDIMENSION) blockcnt); 181 184 if (blockcnt < compptr->MCU_width) { 182 185 /* Create some dummy blocks at the right edge of the image. */ … … 196 199 } 197 200 blkn += compptr->MCU_width; 198 ypos += DCTSIZE;201 ypos += compptr->DCT_v_scaled_size; 199 202 } 200 203 } … … 253 256 JBLOCKARRAY buffer; 254 257 JBLOCKROW thisblockrow, lastblockrow; 258 forward_DCT_ptr forward_DCT; 255 259 256 260 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; … … 275 279 if (ndummy > 0) 276 280 ndummy = h_samp_factor - ndummy; 281 forward_DCT = cinfo->fdct->forward_DCT[ci]; 277 282 /* Perform DCT for all non-dummy blocks in this iMCU row. Each call 278 283 * on forward_DCT processes a complete horizontal row of DCT blocks. … … 280 285 for (block_row = 0; block_row < block_rows; block_row++) { 281 286 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); 286 290 if (ndummy > 0) { 287 291 /* Create dummy blocks at the right edge of the image. */
Note:
See TracChangeset
for help on using the changeset viewer.