Changeset 3806


Ignore:
Timestamp:
03/06/11 17:11:17 (2 years ago)
Author:
glennrp
Message:

Folded long lines in coders/png.c

File:
1 edited

Legend:

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

    r3797 r3806  
    75077507 
    75087508        image->background_color.red= 
    7509              ((((((size_t) image->background_color.red) >> PNGK) & 0xe0)     )  | 
    7510               (((((size_t) image->background_color.red) >> PNGK) & 0xe0) >> 3)  | 
    7511               (((((size_t) image->background_color.red) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7509            ((((((size_t) 
     7510            image->background_color.red) >> PNGK) & 0xe0)     )  | 
     7511            (((((size_t) 
     7512            image->background_color.red) >> PNGK) & 0xe0) >> 3)  | 
     7513            (((((size_t) 
     7514            image->background_color.red) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75127515        image->background_color.green= 
    7513              ((((((size_t) image->background_color.green) >> PNGK) & 0xe0)     )  | 
    7514               (((((size_t) image->background_color.green) >> PNGK) & 0xe0) >> 3)  | 
    7515               (((((size_t) image->background_color.green) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7516            ((((((size_t) 
     7517            image->background_color.green) >> PNGK) & 0xe0)     )  | 
     7518            (((((size_t) 
     7519            image->background_color.green) >> PNGK) & 0xe0) >> 3)  | 
     7520            (((((size_t) 
     7521            image->background_color.green) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75167522        image->background_color.blue= 
    7517              ((((((size_t) image->background_color.blue) >> PNGK) & 0xc0)     )  | 
    7518               (((((size_t) image->background_color.blue) >> PNGK) & 0xc0) >> 2)  | 
    7519               (((((size_t) image->background_color.blue) >> PNGK) & 0xc0) >> 4)  | 
    7520               (((((size_t) image->background_color.blue) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7523            ((((((size_t) 
     7524            image->background_color.blue) >> PNGK) & 0xc0)     )  | 
     7525            (((((size_t) 
     7526            image->background_color.blue) >> PNGK) & 0xc0) >> 2)  | 
     7527            (((((size_t) 
     7528            image->background_color.blue) >> PNGK) & 0xc0) >> 4)  | 
     7529            (((((size_t) 
     7530            image->background_color.blue) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75217531 
    75227532        if (logging != MagickFalse) 
     
    75377547            { 
    75387548              r->red= 
    7539                    ((((((size_t) r->red) >> PNGK) & 0xe0)     )  | 
    7540                     (((((size_t) r->red) >> PNGK) & 0xe0) >> 3)  | 
    7541                     (((((size_t) r->red) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7549                   ((((((size_t) r->red) >> PNGK) & 0xe0)    )  | 
     7550                   (((((size_t) r->red) >> PNGK) & 0xe0) >> 3)  | 
     7551                   (((((size_t) r->red) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75427552              r->green= 
    7543                    ((((((size_t) r->green) >> PNGK) & 0xe0)     )  | 
    7544                     (((((size_t) r->green) >> PNGK) & 0xe0) >> 3)  | 
    7545                     (((((size_t) r->green) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7553                   ((((((size_t) r->green) >> PNGK) & 0xe0)    )  | 
     7554                   (((((size_t) r->green) >> PNGK) & 0xe0) >> 3)  | 
     7555                   (((((size_t) r->green) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75467556              r->blue= 
    7547                    ((((((size_t) r->blue) >> PNGK) & 0xc0)     )  | 
    7548                     (((((size_t) r->blue) >> PNGK) & 0xc0) >> 2)  | 
    7549                     (((((size_t) r->blue) >> PNGK) & 0xc0) >> 4)  | 
    7550                     (((((size_t) r->blue) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7557                   ((((((size_t) r->blue) >> PNGK) & 0xc0)    )  | 
     7558                   (((((size_t) r->blue) >> PNGK) & 0xc0) >> 2)  | 
     7559                   (((((size_t) r->blue) >> PNGK) & 0xc0) >> 4)  | 
     7560                   (((((size_t) r->blue) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75517561              r++; 
    75527562            } 
     
    75667576          { 
    75677577              image->colormap[i].red= 
    7568                    ((((((size_t) image->colormap[i].red) >> PNGK) & 0xe0)     )  | 
    7569                     (((((size_t) image->colormap[i].red) >> PNGK) & 0xe0) >> 3)  | 
    7570                     (((((size_t) image->colormap[i].red) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7578                  ((((((size_t) 
     7579                  image->colormap[i].red) >> PNGK) & 0xe0)     )  | 
     7580                  (((((size_t) 
     7581                  image->colormap[i].red) >> PNGK) & 0xe0) >> 3)  | 
     7582                  (((((size_t) 
     7583                  image->colormap[i].red) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75717584              image->colormap[i].green= 
    7572                    ((((((size_t) image->colormap[i].green) >> PNGK) & 0xe0)     )  | 
    7573                     (((((size_t) image->colormap[i].green) >> PNGK) & 0xe0) >> 3)  | 
    7574                     (((((size_t) image->colormap[i].green) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7585                  ((((((size_t) 
     7586                  image->colormap[i].green) >> PNGK) & 0xe0)     )  | 
     7587                  (((((size_t) 
     7588                  image->colormap[i].green) >> PNGK) & 0xe0) >> 3)  | 
     7589                  (((((size_t) 
     7590                  image->colormap[i].green) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75757591              image->colormap[i].blue= 
    7576                    ((((((size_t) image->colormap[i].blue) >> PNGK) & 0xc0)     )  | 
    7577                     (((((size_t) image->colormap[i].blue) >> PNGK) & 0xc0) >> 2)  | 
    7578                     (((((size_t) image->colormap[i].blue) >> PNGK) & 0xc0) >> 4)  | 
    7579                     (((((size_t) image->colormap[i].blue) >> PNGK) & 0xc0) >> 6)) * PNGM; 
     7592                  ((((((size_t) 
     7593                  image->colormap[i].blue) >> PNGK) & 0xc0)     )  | 
     7594                  (((((size_t) 
     7595                  image->colormap[i].blue) >> PNGK) & 0xc0) >> 2)  | 
     7596                  (((((size_t) 
     7597                  image->colormap[i].blue) >> PNGK) & 0xc0) >> 4)  | 
     7598                  (((((size_t) 
     7599                  image->colormap[i].blue) >> PNGK) & 0xc0) >> 6)) * PNGM; 
    75807600          } 
    75817601      } 
     
    92589278                    "  pass %d, Image Is RGB, 16-bit GRAY, or GRAY_ALPHA",pass); 
    92599279 
    9260                 p=GetVirtualPixels(image,0,y,image->columns,1,&image->exception); 
     9280                p=GetVirtualPixels(image,0,y,image->columns,1, 
     9281                   &image->exception); 
    92619282 
    92629283                if (p == (const PixelPacket *) NULL) 
Note: See TracChangeset for help on using the changeset viewer.