Changeset 8573
- Timestamp:
- 07/01/12 09:02:30 (12 months ago)
- File:
-
- 1 edited
-
ImageMagick/branches/ImageMagick-6/coders/jpeg.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/branches/ImageMagick-6/coders/jpeg.c
r8541 r8573 2274 2274 } 2275 2275 jpeg_set_quality(&jpeg_info,quality,MagickTrue); 2276 #if (JPEG_LIB_VERSION >= 70) 2277 option=GetImageOption(image_info,"quality"); 2278 if (option != (const char *) NULL) 2279 { 2280 GeometryInfo 2281 geometry_info; 2282 2283 int 2284 flags; 2285 2286 /* 2287 Set quality scaling for luminance and chrominance separately. 2288 */ 2289 flags=ParseGeometry(option,&geometry_info); 2290 if (((flags & RhoValue) != 0) && ((flags & SigmaValue) != 0)) 2291 { 2292 jpeg_info.q_scale_factor[0]=jpeg_quality_scaling((int) 2293 (geometry_info.rho+0.5)); 2294 jpeg_info.q_scale_factor[1]=jpeg_quality_scaling((int) 2295 (geometry_info.sigma+0.5)); 2296 jpeg_default_qtables(&jpeg_info,MagickTrue); 2297 } 2298 } 2299 #endif 2276 2300 sampling_factor=(const char *) NULL; 2277 2301 value=GetImageProperty(image,"jpeg:sampling-factor");
Note: See TracChangeset
for help on using the changeset viewer.
