Ignore:
Timestamp:
03/17/11 09:24:10 (2 years ago)
Author:
glennrp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/coders/png.c

    r3883 r3884  
    93289328                if (ping_color_type == PNG_COLOR_TYPE_GRAY) 
    93299329                  { 
     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                     */ 
    93309336#if LOW_DEPTH_OK==1 
    93319337                    quantum_info->depth=ping_bit_depth; 
     
    93489354                else 
    93499355                  { 
    9350                     /* To do: 
    9351                      * 
    9352                      * This is failing to account for 1, 2, 4-bit depths 
    9353                      * The call to png_set_packing() above is supposed to 
    9354                      * take care of those. 
    9355                      */ 
    9356 #if LOW_DEPTH_OK==1 
    9357                     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 #else 
    93629356                    (void) ExportQuantumPixels(image,(const CacheView *) NULL, 
    93639357                      quantum_info,IndexQuantum,ping_pixels,&image->exception); 
    9364 #endif 
    93659358 
    93669359                    if (logging != MagickFalse && y <= 2) 
    93679360                    { 
    93689361                      (void) LogMagickEvent(CoderEvent,GetMagickModule(), 
    9369                           "  Writing row of pixels (4)"); 
     9362                          "  Writing row of non-gray pixels (4)"); 
    93709363 
    93719364                      (void) LogMagickEvent(CoderEvent,GetMagickModule(), 
Note: See TracChangeset for help on using the changeset viewer.