Changeset 846 for trunk/src/3rdparty/libjpeg/jdmainct.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/jdmainct.c
r2 r846 162 162 my_main_ptr main = (my_main_ptr) cinfo->main; 163 163 int ci, rgroup; 164 int M = cinfo->min_DCT_ scaled_size;164 int M = cinfo->min_DCT_v_scaled_size; 165 165 jpeg_component_info *compptr; 166 166 JSAMPARRAY xbuf; … … 176 176 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; 177 177 ci++, compptr++) { 178 rgroup = (compptr->v_samp_factor * compptr->DCT_ scaled_size) /179 cinfo->min_DCT_ scaled_size; /* height of a row group of component */178 rgroup = (compptr->v_samp_factor * compptr->DCT_v_scaled_size) / 179 cinfo->min_DCT_v_scaled_size; /* height of a row group of component */ 180 180 /* Get space for pointer lists --- M+4 row groups in each list. 181 181 * We alloc both pointer lists with one call to save a few cycles. … … 203 203 my_main_ptr main = (my_main_ptr) cinfo->main; 204 204 int ci, i, rgroup; 205 int M = cinfo->min_DCT_ scaled_size;205 int M = cinfo->min_DCT_v_scaled_size; 206 206 jpeg_component_info *compptr; 207 207 JSAMPARRAY buf, xbuf0, xbuf1; … … 209 209 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; 210 210 ci++, compptr++) { 211 rgroup = (compptr->v_samp_factor * compptr->DCT_ scaled_size) /212 cinfo->min_DCT_ scaled_size; /* height of a row group of component */211 rgroup = (compptr->v_samp_factor * compptr->DCT_v_scaled_size) / 212 cinfo->min_DCT_v_scaled_size; /* height of a row group of component */ 213 213 xbuf0 = main->xbuffer[0][ci]; 214 214 xbuf1 = main->xbuffer[1][ci]; … … 243 243 my_main_ptr main = (my_main_ptr) cinfo->main; 244 244 int ci, i, rgroup; 245 int M = cinfo->min_DCT_ scaled_size;245 int M = cinfo->min_DCT_v_scaled_size; 246 246 jpeg_component_info *compptr; 247 247 JSAMPARRAY xbuf0, xbuf1; … … 249 249 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; 250 250 ci++, compptr++) { 251 rgroup = (compptr->v_samp_factor * compptr->DCT_ scaled_size) /252 cinfo->min_DCT_ scaled_size; /* height of a row group of component */251 rgroup = (compptr->v_samp_factor * compptr->DCT_v_scaled_size) / 252 cinfo->min_DCT_v_scaled_size; /* height of a row group of component */ 253 253 xbuf0 = main->xbuffer[0][ci]; 254 254 xbuf1 = main->xbuffer[1][ci]; … … 278 278 ci++, compptr++) { 279 279 /* Count sample rows in one iMCU row and in one row group */ 280 iMCUheight = compptr->v_samp_factor * compptr->DCT_ scaled_size;281 rgroup = iMCUheight / cinfo->min_DCT_ scaled_size;280 iMCUheight = compptr->v_samp_factor * compptr->DCT_v_scaled_size; 281 rgroup = iMCUheight / cinfo->min_DCT_v_scaled_size; 282 282 /* Count nondummy sample rows remaining for this component */ 283 283 rows_left = (int) (compptr->downsampled_height % (JDIMENSION) iMCUheight); … … 358 358 359 359 /* There are always min_DCT_scaled_size row groups in an iMCU row. */ 360 rowgroups_avail = (JDIMENSION) cinfo->min_DCT_ scaled_size;360 rowgroups_avail = (JDIMENSION) cinfo->min_DCT_v_scaled_size; 361 361 /* Note: at the bottom of the image, we may pass extra garbage row groups 362 362 * to the postprocessor. The postprocessor has to check for bottom … … 418 418 /* Prepare to process first M-1 row groups of this iMCU row */ 419 419 main->rowgroup_ctr = 0; 420 main->rowgroups_avail = (JDIMENSION) (cinfo->min_DCT_ scaled_size - 1);420 main->rowgroups_avail = (JDIMENSION) (cinfo->min_DCT_v_scaled_size - 1); 421 421 /* Check for bottom of image: if so, tweak pointers to "duplicate" 422 422 * the last sample row, and adjust rowgroups_avail to ignore padding rows. … … 441 441 /* Still need to process last row group of this iMCU row, */ 442 442 /* which is saved at index M+1 of the other xbuffer */ 443 main->rowgroup_ctr = (JDIMENSION) (cinfo->min_DCT_ scaled_size + 1);444 main->rowgroups_avail = (JDIMENSION) (cinfo->min_DCT_ scaled_size + 2);443 main->rowgroup_ctr = (JDIMENSION) (cinfo->min_DCT_v_scaled_size + 1); 444 main->rowgroups_avail = (JDIMENSION) (cinfo->min_DCT_v_scaled_size + 2); 445 445 main->context_state = CTX_POSTPONED_ROW; 446 446 } … … 493 493 */ 494 494 if (cinfo->upsample->need_context_rows) { 495 if (cinfo->min_DCT_ scaled_size < 2) /* unsupported, see comments above */495 if (cinfo->min_DCT_v_scaled_size < 2) /* unsupported, see comments above */ 496 496 ERREXIT(cinfo, JERR_NOTIMPL); 497 497 alloc_funny_pointers(cinfo); /* Alloc space for xbuffer[] lists */ 498 ngroups = cinfo->min_DCT_ scaled_size + 2;498 ngroups = cinfo->min_DCT_v_scaled_size + 2; 499 499 } else { 500 ngroups = cinfo->min_DCT_ scaled_size;500 ngroups = cinfo->min_DCT_v_scaled_size; 501 501 } 502 502 503 503 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; 504 504 ci++, compptr++) { 505 rgroup = (compptr->v_samp_factor * compptr->DCT_ scaled_size) /506 cinfo->min_DCT_ scaled_size; /* height of a row group of component */505 rgroup = (compptr->v_samp_factor * compptr->DCT_v_scaled_size) / 506 cinfo->min_DCT_v_scaled_size; /* height of a row group of component */ 507 507 main->buffer[ci] = (*cinfo->mem->alloc_sarray) 508 508 ((j_common_ptr) cinfo, JPOOL_IMAGE, 509 compptr->width_in_blocks * compptr->DCT_ scaled_size,509 compptr->width_in_blocks * compptr->DCT_h_scaled_size, 510 510 (JDIMENSION) (rgroup * ngroups)); 511 511 }
Note:
See TracChangeset
for help on using the changeset viewer.