Changeset 3884 for ImageMagick/trunk/coders/png.c
- Timestamp:
- 03/17/11 09:24:10 (2 years ago)
- File:
-
- 1 edited
-
ImageMagick/trunk/coders/png.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/coders/png.c
r3883 r3884 9328 9328 if (ping_color_type == PNG_COLOR_TYPE_GRAY) 9329 9329 { 9330 /* To do: 9331 * 9332 * This is failing to account for 2 and 4-bit depths 9333 * The call to png_set_packing() above is supposed to 9334 * take care of those. 9335 */ 9330 9336 #if LOW_DEPTH_OK==1 9331 9337 quantum_info->depth=ping_bit_depth; … … 9348 9354 else 9349 9355 { 9350 /* To do:9351 *9352 * This is failing to account for 1, 2, 4-bit depths9353 * The call to png_set_packing() above is supposed to9354 * take care of those.9355 */9356 #if LOW_DEPTH_OK==19357 quantum_info->depth=ping_bit_depth;9358 /* GrayQuantum does not work here */9359 (void) ExportQuantumPixels(image,(const CacheView *) NULL,9360 quantum_info,GrayQuantum,ping_pixels,&image->exception);9361 #else9362 9356 (void) ExportQuantumPixels(image,(const CacheView *) NULL, 9363 9357 quantum_info,IndexQuantum,ping_pixels,&image->exception); 9364 #endif9365 9358 9366 9359 if (logging != MagickFalse && y <= 2) 9367 9360 { 9368 9361 (void) LogMagickEvent(CoderEvent,GetMagickModule(), 9369 " Writing row of pixels (4)");9362 " Writing row of non-gray pixels (4)"); 9370 9363 9371 9364 (void) LogMagickEvent(CoderEvent,GetMagickModule(),
Note: See TracChangeset
for help on using the changeset viewer.
