Ignore:
Timestamp:
03/07/11 12:40:17 (2 years ago)
Author:
glennrp
Message:

Ifdef out currently unused "depth_4_ok" and "depth_2_ok" variable definitions.

File:
1 edited

Legend:

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

    r3817 r3818  
    83048304              } 
    83058305 
    8306 #if 1 /* To do: Enable this when low bit-depth grayscale is working */ 
    83078306            else if (ping_color_type == 
    83088307                PNG_COLOR_TYPE_GRAY && image_colors < 17 && 
    83098308                mng_info->IsPalette) 
    83108309              { 
    8311  
    83128310              /* Check if grayscale is reducible */ 
     8311 
     8312#define LOW_DEPTH_OK 0 /* To do: eliminate this when low bit-depths work */ 
    83138313                int 
     8314#if LOW_DEPTH_OK==1 
    83148315                  depth_4_ok=MagickTrue, 
    83158316                  depth_2_ok=MagickTrue, 
     8317#endif 
    83168318                  depth_1_ok=MagickTrue; 
    83178319 
     
    83238325                   intensity=ScaleQuantumToChar(image->colormap[i].red); 
    83248326 
     8327#if LOW_DEPTH_OK==1 
    83258328                   if ((intensity & 0x0f) != ((intensity & 0xf0) >> 4)) 
    83268329                     depth_4_ok=depth_2_ok=depth_1_ok=MagickFalse; 
    8327  
    83288330                   else if ((intensity & 0x03) != ((intensity & 0x0c) >> 2)) 
    83298331                     depth_2_ok=depth_1_ok=MagickFalse; 
    8330  
    8331                    else if ((intensity & 0x01) != ((intensity & 0x02) >> 1)) 
     8332                   else 
     8333#endif 
     8334                     if ((intensity & 0x01) != ((intensity & 0x02) >> 1)) 
    83328335                     depth_1_ok=MagickFalse; 
    8333                    (void) depth_4_ok; 
    83348336                } 
    83358337 
     
    83378339                  ping_bit_depth=1; 
    83388340 
    8339 #if 0 /* To do: Enable this when bit depths 2 and 4 are working. */ 
     8341#if LOW_DEPTH_OK==1 
    83408342                else if (depth_2_ok && mng_info->write_png_depth <= 2) 
    83418343                  ping_bit_depth=2; 
     
    83458347#endif 
    83468348              } 
    8347 #endif /* 1 */ 
    83488349          } 
    83498350 
Note: See TracChangeset for help on using the changeset viewer.