Changeset 3806
- Timestamp:
- 03/06/11 17:11:17 (2 years ago)
- File:
-
- 1 edited
-
ImageMagick/trunk/coders/png.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/coders/png.c
r3797 r3806 7507 7507 7508 7508 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; 7512 7515 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; 7516 7522 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; 7521 7531 7522 7532 if (logging != MagickFalse) … … 7537 7547 { 7538 7548 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; 7542 7552 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; 7546 7556 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; 7551 7561 r++; 7552 7562 } … … 7566 7576 { 7567 7577 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; 7571 7584 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; 7575 7591 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; 7580 7600 } 7581 7601 } … … 9258 9278 " pass %d, Image Is RGB, 16-bit GRAY, or GRAY_ALPHA",pass); 9259 9279 9260 p=GetVirtualPixels(image,0,y,image->columns,1,&image->exception); 9280 p=GetVirtualPixels(image,0,y,image->columns,1, 9281 &image->exception); 9261 9282 9262 9283 if (p == (const PixelPacket *) NULL)
Note: See TracChangeset
for help on using the changeset viewer.
