Lines Matching refs:pixel
16 MagickCore pixel accessor methods.
48 const Quantum *magick_restrict pixel)
50 return(pixel[image->channel_map[aPixelChannel].offset]);
54 const Quantum *magick_restrict pixel)
58 return(pixel[image->channel_map[AlphaPixelChannel].offset]);
68 const Quantum *magick_restrict pixel)
70 return(pixel[image->channel_map[bPixelChannel].offset]);
74 const Quantum *magick_restrict pixel)
78 return(pixel[image->channel_map[BlackPixelChannel].offset]);
88 const Quantum *magick_restrict pixel)
90 return(pixel[image->channel_map[BluePixelChannel].offset]);
99 const Quantum *magick_restrict pixel)
101 return(pixel[image->channel_map[CbPixelChannel].offset]);
110 const PixelChannel channel,const Quantum *magick_restrict pixel)
114 return(pixel[image->channel_map[channel].offset]);
141 const Quantum *magick_restrict pixel)
143 return(pixel[image->channel_map[CrPixelChannel].offset]);
152 const Quantum *magick_restrict pixel)
154 return(pixel[image->channel_map[CyanPixelChannel].offset]);
163 const Quantum *magick_restrict pixel)
165 return(pixel[image->channel_map[GrayPixelChannel].offset]);
174 const Quantum *magick_restrict pixel)
176 return(pixel[image->channel_map[GreenPixelChannel].offset]);
186 const Quantum *magick_restrict pixel)
190 return(pixel[image->channel_map[IndexPixelChannel].offset]);
229 const PixelInfo *magick_restrict pixel)
234 if (pixel->colorspace == sRGBColorspace)
236 intensity=(MagickRealType) (0.212656f*pixel->red+0.715158f*pixel->green+
237 0.072186f*pixel->blue);
240 intensity=(MagickRealType) (0.212656f*EncodePixelGamma(pixel->red)+
241 0.715158f*EncodePixelGamma(pixel->green)+
242 0.072186f*EncodePixelGamma(pixel->blue));
247 const PixelInfo *magick_restrict pixel)
252 if (pixel->colorspace != sRGBColorspace)
254 intensity=(MagickRealType) (0.212656f*pixel->red+0.715158f*pixel->green+
255 0.072186f*pixel->blue);
258 intensity=(MagickRealType) (0.212656f*DecodePixelGamma(pixel->red)+
259 0.715158f*DecodePixelGamma(pixel->green)+
260 0.072186f*DecodePixelGamma(pixel->blue));
265 const Quantum *magick_restrict pixel)
267 return(pixel[image->channel_map[LPixelChannel].offset]);
271 const Quantum *magick_restrict pixel)
273 return((ssize_t) pixel[image->channel_map[LabelPixelChannel].offset]);
277 const Quantum *magick_restrict pixel)
283 0.212656f*pixel[image->channel_map[RedPixelChannel].offset]+
284 0.715158f*pixel[image->channel_map[GreenPixelChannel].offset]+
285 0.072186f*pixel[image->channel_map[BluePixelChannel].offset]);
290 const Image *magick_restrict image,const Quantum *magick_restrict pixel)
298 0.212656f*pixel[image->channel_map[RedPixelChannel].offset]+
299 0.715158f*pixel[image->channel_map[GreenPixelChannel].offset]+
300 0.072186f*pixel[image->channel_map[BluePixelChannel].offset]);
304 pixel[image->channel_map[RedPixelChannel].offset])+0.715158f*
306 pixel[image->channel_map[GreenPixelChannel].offset])+0.072186f*
308 pixel[image->channel_map[BluePixelChannel].offset]));
313 const Quantum *magick_restrict pixel)
315 return(pixel[image->channel_map[MagentaPixelChannel].offset]);
325 const Quantum *magick_restrict pixel)
329 return(pixel[image->channel_map[ReadMaskPixelChannel].offset]);
333 const Quantum *magick_restrict pixel)
337 return(pixel[image->channel_map[WriteMaskPixelChannel].offset]);
358 const Quantum *magick_restrict pixel)
362 return(QuantumRange-pixel[image->channel_map[AlphaPixelChannel].offset]);
366 const Quantum *magick_restrict pixel)
368 return(pixel[image->channel_map[RedPixelChannel].offset]);
377 const Quantum *magick_restrict pixel,PixelInfo *magick_restrict pixel_info)
384 pixel[image->channel_map[RedPixelChannel].offset];
386 pixel[image->channel_map[GreenPixelChannel].offset];
388 pixel[image->channel_map[BluePixelChannel].offset];
392 pixel[image->channel_map[BlackPixelChannel].offset];
398 pixel[image->channel_map[AlphaPixelChannel].offset];
404 pixel[image->channel_map[IndexPixelChannel].offset];
415 const Quantum *magick_restrict pixel)
417 return(pixel[image->channel_map[YPixelChannel].offset]);
426 const Quantum *magick_restrict pixel)
428 return(pixel[image->channel_map[YellowPixelChannel].offset]);
442 static inline MagickBooleanType IsPixelAtDepth(const Quantum pixel,
450 (((MagickRealType) range*pixel)/QuantumRange+0.5)))/range+0.5);
453 (((MagickRealType) range*pixel)/QuantumRange+0.5)))/range);
455 return(pixel == quantum ? MagickTrue : MagickFalse);
501 const Quantum *magick_restrict pixel)
507 red_green=(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset]-
508 pixel[image->channel_map[GreenPixelChannel].offset];
510 pixel[image->channel_map[GreenPixelChannel].offset]-
511 pixel[image->channel_map[BluePixelChannel].offset];
550 const Image *magick_restrict image,const Quantum *magick_restrict pixel)
557 red=(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset];
561 red_green=(MagickRealType) pixel[image->channel_map[RedPixelChannel].offset]-
562 pixel[image->channel_map[GreenPixelChannel].offset];
564 pixel[image->channel_map[GreenPixelChannel].offset]-
565 pixel[image->channel_map[BluePixelChannel].offset];
573 const PixelInfo *magick_restrict pixel)
575 if ((AbsolutePixelValue(pixel->red-pixel->green) < MagickEpsilon) &&
576 (AbsolutePixelValue(pixel->green-pixel->blue) < MagickEpsilon))
600 const Quantum a,Quantum *magick_restrict pixel)
603 pixel[image->channel_map[aPixelChannel].offset]=a;
607 const Quantum alpha,Quantum *magick_restrict pixel)
610 pixel[image->channel_map[AlphaPixelChannel].offset]=alpha;
619 const Quantum b,Quantum *magick_restrict pixel)
622 pixel[image->channel_map[bPixelChannel].offset]=b;
626 Quantum *magick_restrict pixel)
632 pixel[i]=0;
633 pixel[image->channel_map[RedPixelChannel].offset]=
635 pixel[image->channel_map[GreenPixelChannel].offset]=
637 pixel[image->channel_map[BluePixelChannel].offset]=
640 pixel[image->channel_map[BlackPixelChannel].offset]=
643 pixel[image->channel_map[AlphaPixelChannel].offset]=
649 const Quantum black,Quantum *magick_restrict pixel)
652 pixel[image->channel_map[BlackPixelChannel].offset]=black;
661 const Quantum blue,Quantum *magick_restrict pixel)
663 pixel[image->channel_map[BluePixelChannel].offset]=blue;
672 const Quantum cb,Quantum *magick_restrict pixel)
674 pixel[image->channel_map[CbPixelChannel].offset]=cb;
684 Quantum *magick_restrict pixel)
687 pixel[image->channel_map[channel].offset]=quantum;
718 const Quantum cr,Quantum *magick_restrict pixel)
720 pixel[image->channel_map[CrPixelChannel].offset]=cr;
729 const Quantum cyan,Quantum *magick_restrict pixel)
731 pixel[image->channel_map[CyanPixelChannel].offset]=cyan;
735 const Quantum gray,Quantum *magick_restrict pixel)
737 pixel[image->channel_map[GrayPixelChannel].offset]=gray;
746 const Quantum green,Quantum *magick_restrict pixel)
748 pixel[image->channel_map[GreenPixelChannel].offset]=green;
757 const Quantum index,Quantum *magick_restrict pixel)
760 pixel[image->channel_map[IndexPixelChannel].offset]=index;
769 const PixelInfo *magick_restrict pixel_info,Quantum *magick_restrict pixel)
771 pixel[image->channel_map[RedPixelChannel].offset]=
773 pixel[image->channel_map[GreenPixelChannel].offset]=
775 pixel[image->channel_map[BluePixelChannel].offset]=
778 pixel[image->channel_map[BlackPixelChannel].offset]=
781 pixel[image->channel_map[AlphaPixelChannel].offset]=
787 Quantum *magick_restrict pixel)
790 pixel[image->channel_map[LPixelChannel].offset]=L;
794 const Quantum magenta,Quantum *magick_restrict pixel)
796 pixel[image->channel_map[MagentaPixelChannel].offset]=magenta;
805 const Quantum mask,Quantum *magick_restrict pixel)
808 pixel[image->channel_map[ReadMaskPixelChannel].offset]=mask;
812 const Quantum mask,Quantum *magick_restrict pixel)
815 pixel[image->channel_map[WriteMaskPixelChannel].offset]=mask;
824 const Quantum alpha,Quantum *magick_restrict pixel)
827 pixel[image->channel_map[AlphaPixelChannel].offset]=QuantumRange-alpha;
831 const Quantum red,Quantum *magick_restrict pixel)
833 pixel[image->channel_map[RedPixelChannel].offset]=red;
842 const Quantum yellow,Quantum *magick_restrict pixel)
844 pixel[image->channel_map[YellowPixelChannel].offset]=yellow;
853 const Quantum y,Quantum *magick_restrict pixel)
855 pixel[image->channel_map[YPixelChannel].offset]=y;