Lines Matching refs:pixel
58 #include "MagickCore/pixel-accessor.h"
176 pixel[4],
420 count=ReadBlob(image,4*sizeof(*pixel),pixel);
423 if ((size_t) ((((size_t) pixel[2]) << 8) | pixel[3]) != image->columns)
425 (void) memcpy(pixels,pixel,4*sizeof(*pixel));
437 count=ReadBlob(image,2*sizeof(*pixel),pixel);
440 if (pixel[0] > 128)
442 count=(ssize_t) pixel[0]-128;
446 *p++=pixel[1];
450 count=(ssize_t) pixel[0];
453 *p++=pixel[1];
474 pixel[0]=pixels[x];
475 pixel[1]=pixels[x+image->columns];
476 pixel[2]=pixels[x+2*image->columns];
477 pixel[3]=pixels[x+3*image->columns];
481 pixel[0]=pixels[i++];
482 pixel[1]=pixels[i++];
483 pixel[2]=pixels[i++];
484 pixel[3]=pixels[i++];
489 if (pixel[3] != 0)
491 gamma=pow(2.0,pixel[3]-(128.0+8.0));
492 SetPixelRed(image,ClampToQuantum(QuantumRange*gamma*pixel[0]),q);
493 SetPixelGreen(image,ClampToQuantum(QuantumRange*gamma*pixel[1]),q);
494 SetPixelBlue(image,ClampToQuantum(QuantumRange*gamma*pixel[2]),q);
617 pixel[2];
635 pixel[0]=(unsigned char) (128+previous_count);
636 pixel[1]=pixels[p];
637 if (WriteBlob(image,2*sizeof(*pixel),pixel) < 1)
646 pixel[0]=(unsigned char) count;
647 if (WriteBlob(image,sizeof(*pixel),pixel) < 1)
649 if (WriteBlob(image,(size_t) count*sizeof(*pixel),&pixels[p]) < 1)
655 pixel[0]=(unsigned char) (128+runlength);
656 pixel[1]=pixels[q];
657 if (WriteBlob(image,2*sizeof(*pixel),pixel) < 1)
692 pixel[4],
764 pixel[0]=2;
765 pixel[1]=2;
766 pixel[2]=(unsigned char) (image->columns >> 8);
767 pixel[3]=(unsigned char) (image->columns & 0xff);
768 count=WriteBlob(image,4*sizeof(*pixel),pixel);
769 if (count != (ssize_t) (4*sizeof(*pixel)))
778 pixel[0]=0;
779 pixel[1]=0;
780 pixel[2]=0;
781 pixel[3]=0;
793 pixel[0]=(unsigned char) (gamma*QuantumScale*GetPixelRed(image,p));
794 pixel[1]=(unsigned char) (gamma*QuantumScale*GetPixelGreen(image,p));
795 pixel[2]=(unsigned char) (gamma*QuantumScale*GetPixelBlue(image,p));
796 pixel[3]=(unsigned char) (exponent+128);
800 pixels[x]=pixel[0];
801 pixels[x+image->columns]=pixel[1];
802 pixels[x+2*image->columns]=pixel[2];
803 pixels[x+3*image->columns]=pixel[3];
807 pixels[i++]=pixel[0];
808 pixels[i++]=pixel[1];
809 pixels[i++]=pixel[2];
810 pixels[i++]=pixel[3];