Home
last modified time | relevance | path

Searched refs:ClampToQuantum (Results 1 – 25 of 80) sorted by relevance

1234

/external/ImageMagick/MagickCore/
Dquantum-import.c295 SetPixelAlpha(image,ClampToQuantum(QuantumRange* in ImportAlphaQuantum()
324 SetPixelAlpha(image,ClampToQuantum(pixel),q); in ImportAlphaQuantum()
349 SetPixelAlpha(image,ClampToQuantum(pixel),q); in ImportAlphaQuantum()
581 SetPixelRed(image,ClampToQuantum(QuantumRange* in ImportBGRQuantum()
584 SetPixelGreen(image,ClampToQuantum(QuantumRange* in ImportBGRQuantum()
587 SetPixelBlue(image,ClampToQuantum(QuantumRange* in ImportBGRQuantum()
620 SetPixelRed(image,ClampToQuantum(pixel),q); in ImportBGRQuantum()
622 SetPixelGreen(image,ClampToQuantum(pixel),q); in ImportBGRQuantum()
624 SetPixelBlue(image,ClampToQuantum(pixel),q); in ImportBGRQuantum()
653 SetPixelRed(image,ClampToQuantum(pixel),q); in ImportBGRQuantum()
[all …]
Dcache-view.c726 pixel[RedPixelChannel]=ClampToQuantum(background_color.red); in GetOneCacheViewAuthenticPixel()
727 pixel[GreenPixelChannel]=ClampToQuantum(background_color.green); in GetOneCacheViewAuthenticPixel()
728 pixel[BluePixelChannel]=ClampToQuantum(background_color.blue); in GetOneCacheViewAuthenticPixel()
729 pixel[BlackPixelChannel]=ClampToQuantum(background_color.black); in GetOneCacheViewAuthenticPixel()
730 pixel[AlphaPixelChannel]=ClampToQuantum(background_color.alpha); in GetOneCacheViewAuthenticPixel()
799 pixel[RedPixelChannel]=ClampToQuantum(background_color.red); in GetOneCacheViewVirtualPixel()
800 pixel[GreenPixelChannel]=ClampToQuantum(background_color.green); in GetOneCacheViewVirtualPixel()
801 pixel[BluePixelChannel]=ClampToQuantum(background_color.blue); in GetOneCacheViewVirtualPixel()
802 pixel[BlackPixelChannel]=ClampToQuantum(background_color.black); in GetOneCacheViewVirtualPixel()
803 pixel[AlphaPixelChannel]=ClampToQuantum(background_color.alpha); in GetOneCacheViewVirtualPixel()
[all …]
Daccelerate-kernels-private.h309 inline CLQuantum ClampToQuantum(const float value)
318 inline CLQuantum ClampToQuantum(const float value)
454 setPixelRed(p,ClampToQuantum(red));
459 setPixelGreen(p,ClampToQuantum(green));
462 setPixelBlue(p,ClampToQuantum(blue));
467 setPixelAlpha(p,number_channels,ClampToQuantum(alpha));
475 setPixelRed(p,ClampToQuantum(pixel.x));
479 setPixelGreen(p,ClampToQuantum(pixel.y));
480 setPixelBlue(p,ClampToQuantum(pixel.z));
484 setPixelAlpha(p,number_channels,ClampToQuantum(pixel.w));
[all …]
Dcolorspace.c422 SetPixelGray(image,ClampToQuantum(GetPixelIntensity(image,q)),q); in sRGBTransformImage()
616 SetPixelRed(image,ClampToQuantum(QuantumRange*X),q); in sRGBTransformImage()
617 SetPixelGreen(image,ClampToQuantum(QuantumRange*Y),q); in sRGBTransformImage()
618 SetPixelBlue(image,ClampToQuantum(QuantumRange*Z),q); in sRGBTransformImage()
723 SetPixelRed(image,logmap[ScaleQuantumToMap(ClampToQuantum(red))],q); in sRGBTransformImage()
724 SetPixelGreen(image,logmap[ScaleQuantumToMap(ClampToQuantum(green))], in sRGBTransformImage()
726 SetPixelBlue(image,logmap[ScaleQuantumToMap(ClampToQuantum(blue))],q); in sRGBTransformImage()
787 SetPixelRed(image,ClampToQuantum(red),q); in sRGBTransformImage()
788 SetPixelGreen(image,ClampToQuantum(green),q); in sRGBTransformImage()
789 SetPixelBlue(image,ClampToQuantum(blue),q); in sRGBTransformImage()
[all …]
Dcomposite-private.h86 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->red,alpha, in CompositePixelOver()
92 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->green,alpha, in CompositePixelOver()
98 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->blue,alpha, in CompositePixelOver()
104 composite[i]=ClampToQuantum(gamma*MagickOver_((double) p->black,alpha, in CompositePixelOver()
110 composite[i]=ClampToQuantum(QuantumRange*RoundToUnity(Sa+Da-Sa*Da)); in CompositePixelOver()
Denhance.c920 pixel.red=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage()
924 pixel.green=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage()
928 pixel.blue=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage()
932 pixel.black=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage()
936 pixel.alpha=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage()
1271 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma; in ColorDecisionListImage()
1273 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma; in ColorDecisionListImage()
1275 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))].blue-luma; in ColorDecisionListImage()
1310 SetPixelRed(image,ClampToQuantum(luma+color_correction.saturation* in ColorDecisionListImage()
1312 SetPixelGreen(image,ClampToQuantum(luma+color_correction.saturation* in ColorDecisionListImage()
[all …]
Dcolor.c1174 GetMagickPrecision(),(double) ClampToQuantum(color)); in ConcatenateColorComponent()
1183 (unsigned long) ScaleQuantumToLong(ClampToQuantum(color))); in ConcatenateColorComponent()
1190 ScaleQuantumToShort(ClampToQuantum(color))); in ConcatenateColorComponent()
1195 ScaleQuantumToChar(ClampToQuantum(color))); in ConcatenateColorComponent()
1202 GetMagickPrecision(),(double) QuantumScale*ClampToQuantum(color)); in ConcatenateColorComponent()
1216 GetMagickPrecision(),(double) ClampToQuantum(360.0*QuantumScale* in ConcatenateColorComponent()
1220 GetMagickPrecision(),(double) ClampToQuantum(100.0*QuantumScale* in ConcatenateColorComponent()
1235 GetMagickPrecision(),(double) ClampToQuantum(100.0*QuantumScale*color)); in ConcatenateColorComponent()
1240 ClampToQuantum(color))); in ConcatenateColorComponent()
1468 ScaleCharToQuantum(ScaleQuantumToChar(ClampToQuantum(component)))) in IsSVGCompliant()
[all …]
Dpixel.c591 *q++=ScaleQuantumToChar(ClampToQuantum(GetPixelIntensity(image,p))); in ExportCharPixel()
702 *q=ScaleQuantumToChar(ClampToQuantum(GetPixelIntensity(image,p))); in ExportCharPixel()
1213 *q++=ScaleQuantumToLong(ClampToQuantum(GetPixelIntensity(image,p))); in ExportLongPixel()
1324 *q=ScaleQuantumToLong(ClampToQuantum(GetPixelIntensity(image,p))); in ExportLongPixel()
1420 *q++=ScaleQuantumToLongLong(ClampToQuantum( in ExportLongLongPixel()
1532 *q=ScaleQuantumToLongLong(ClampToQuantum( in ExportLongLongPixel()
1629 *q++=ClampToQuantum(GetPixelIntensity(image,p)); in ExportQuantumPixel()
1740 *q=ClampToQuantum(GetPixelIntensity(image,p)); in ExportQuantumPixel()
1839 *q++=ScaleQuantumToShort(ClampToQuantum(GetPixelIntensity(image,p))); in ExportShortPixel()
1950 *q=ScaleQuantumToShort(ClampToQuantum(GetPixelIntensity(image,p))); in ExportShortPixel()
[all …]
Dhistogram.c169 ((ScaleQuantumToChar(ClampToQuantum(pixel->red)) >> index) & 0x01) | in ColorToNodeId()
170 ((ScaleQuantumToChar(ClampToQuantum(pixel->green)) >> index) & 0x01) << 1 | in ColorToNodeId()
171 ((ScaleQuantumToChar(ClampToQuantum(pixel->blue)) >> index) & 0x01) << 2); in ColorToNodeId()
173 id|=((ScaleQuantumToChar(ClampToQuantum(pixel->alpha)) >> index) & in ColorToNodeId()
1159 SetPixelRed(unique_image,ClampToQuantum(p->red),q); in UniqueColorsToImage()
1160 SetPixelGreen(unique_image,ClampToQuantum(p->green),q); in UniqueColorsToImage()
1161 SetPixelBlue(unique_image,ClampToQuantum(p->blue),q); in UniqueColorsToImage()
1162 SetPixelAlpha(unique_image,ClampToQuantum(p->alpha),q); in UniqueColorsToImage()
1164 SetPixelBlack(unique_image,ClampToQuantum(p->black),q); in UniqueColorsToImage()
Dfourier.c580 SetPixelRed(magnitude_image,ClampToQuantum(QuantumRange* in ForwardFourier()
586 SetPixelGreen(magnitude_image,ClampToQuantum(QuantumRange* in ForwardFourier()
592 SetPixelBlue(magnitude_image,ClampToQuantum(QuantumRange* in ForwardFourier()
598 SetPixelBlack(magnitude_image,ClampToQuantum(QuantumRange* in ForwardFourier()
604 SetPixelAlpha(magnitude_image,ClampToQuantum(QuantumRange* in ForwardFourier()
632 SetPixelRed(phase_image,ClampToQuantum(QuantumRange* in ForwardFourier()
638 SetPixelGreen(phase_image,ClampToQuantum(QuantumRange* in ForwardFourier()
644 SetPixelBlue(phase_image,ClampToQuantum(QuantumRange* in ForwardFourier()
650 SetPixelBlack(phase_image,ClampToQuantum(QuantumRange* in ForwardFourier()
656 SetPixelAlpha(phase_image,ClampToQuantum(QuantumRange* in ForwardFourier()
[all …]
Dchannel.c417 source_image,source_channel,ClampToQuantum(pixel),exception); in ChannelFxImage()
427 source_image,destination_channel,ClampToQuantum(pixel),exception); in ChannelFxImage()
941 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo()
947 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo()
953 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo()
959 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo()
965 composite[i]=ClampToQuantum(QuantumRange*(Sa*(-Da)+Sa+Da)); in FlattenPixelInfo()
1045 q[i]=ClampToQuantum(gamma*q[i]); in SetImageAlphaChannel()
1167 q[i]=ClampToQuantum(gamma*q[i]); in SetImageAlphaChannel()
Dstream.c460 pixel[RedPixelChannel]=ClampToQuantum(image->background_color.red); in GetOneAuthenticPixelFromStream()
461 pixel[GreenPixelChannel]=ClampToQuantum(image->background_color.green); in GetOneAuthenticPixelFromStream()
462 pixel[BluePixelChannel]=ClampToQuantum(image->background_color.blue); in GetOneAuthenticPixelFromStream()
463 pixel[BlackPixelChannel]=ClampToQuantum(image->background_color.black); in GetOneAuthenticPixelFromStream()
464 pixel[AlphaPixelChannel]=ClampToQuantum(image->background_color.alpha); in GetOneAuthenticPixelFromStream()
524 pixel[RedPixelChannel]=ClampToQuantum(image->background_color.red); in GetOneVirtualPixelFromStream()
525 pixel[GreenPixelChannel]=ClampToQuantum(image->background_color.green); in GetOneVirtualPixelFromStream()
526 pixel[BluePixelChannel]=ClampToQuantum(image->background_color.blue); in GetOneVirtualPixelFromStream()
527 pixel[BlackPixelChannel]=ClampToQuantum(image->background_color.black); in GetOneVirtualPixelFromStream()
528 pixel[AlphaPixelChannel]=ClampToQuantum(image->background_color.alpha); in GetOneVirtualPixelFromStream()
[all …]
Dpixel-accessor.h648 ClampToQuantum(image->background_color.red); in SetPixelBackgoundColor()
650 ClampToQuantum(image->background_color.green); in SetPixelBackgoundColor()
652 ClampToQuantum(image->background_color.blue); in SetPixelBackgoundColor()
655 ClampToQuantum(image->background_color.black); in SetPixelBackgoundColor()
659 ClampToQuantum(image->background_color.alpha); in SetPixelBackgoundColor()
795 ClampToQuantum(pixel_info->red); in SetPixelViaPixelInfo()
797 ClampToQuantum(pixel_info->green); in SetPixelViaPixelInfo()
799 ClampToQuantum(pixel_info->blue); in SetPixelViaPixelInfo()
802 ClampToQuantum(pixel_info->black); in SetPixelViaPixelInfo()
806 ClampToQuantum(pixel_info->alpha); in SetPixelViaPixelInfo()
Dquantize.c614 SetPixelRed(image,ClampToQuantum( in AssignImageColors()
616 SetPixelGreen(image,ClampToQuantum( in AssignImageColors()
618 SetPixelBlue(image,ClampToQuantum( in AssignImageColors()
621 SetPixelAlpha(image,ClampToQuantum( in AssignImageColors()
1267 q->red=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap()
1269 q->green=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap()
1271 q->blue=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap()
1281 q->alpha=(double) ClampToQuantum(opacity); in DefineImageColormap()
1284 q->red=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap()
1286 q->green=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap()
[all …]
Ddecorate.c689 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*HighlightFactor+(double) in RaiseImage()
702 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*AccentuateFactor+ in RaiseImage()
715 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*ShadowFactor+(double) in RaiseImage()
765 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*HighlightFactor+(double) in RaiseImage()
780 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*ShadowFactor+(double) in RaiseImage()
830 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*HighlightFactor+(double) in RaiseImage()
843 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*TroughFactor+ in RaiseImage()
856 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*ShadowFactor+(double) in RaiseImage()
/external/ImageMagick/MagickWand/
Dpixel-wand.c551 return(ClampToQuantum(wand->pixel.alpha)); in PixelGetAlphaQuantum()
613 return(ClampToQuantum(wand->pixel.black)); in PixelGetBlackQuantum()
675 return(ClampToQuantum(wand->pixel.blue)); in PixelGetBlueQuantum()
852 return(ClampToQuantum(wand->pixel.red)); in PixelGetCyanQuantum()
1034 return(ClampToQuantum(wand->pixel.green)); in PixelGetGreenQuantum()
1070 ConvertRGBToHSL((double) ClampToQuantum(wand->pixel.red),(double) in PixelGetHSL()
1071 ClampToQuantum(wand->pixel.green),(double) ClampToQuantum(wand->pixel.blue), in PixelGetHSL()
1165 return(ClampToQuantum(wand->pixel.green)); in PixelGetMagentaQuantum()
1271 packet->alpha=(double) ClampToQuantum(wand->pixel.alpha); in PixelGetQuantumPacket()
1275 packet->red=(double) ClampToQuantum(QuantumRange-(wand->pixel.red* in PixelGetQuantumPacket()
[all …]
/external/ImageMagick/coders/
Dcip.c238 …((((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+3*GetPixelChannels(image)))/QuantumRange) & 0x0… in WriteCIPImage()
239 …(((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+2*GetPixelChannels(image)))/QuantumRange) & 0x03… in WriteCIPImage()
240 …(((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+1*GetPixelChannels(image)))/QuantumRange) & 0x03… in WriteCIPImage()
241 …(((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+0*GetPixelChannels(image)))/QuantumRange) & 0x03… in WriteCIPImage()
256 byte|=(unsigned char) (((size_t) (3*ClampToQuantum(GetPixelLuma( in WriteCIPImage()
263 byte|=(unsigned char) (((size_t) (3*ClampToQuantum(GetPixelLuma( in WriteCIPImage()
270 byte|=(unsigned char) (((size_t) (3*ClampToQuantum(GetPixelLuma( in WriteCIPImage()
277 byte|=(unsigned char) (((size_t) (3*ClampToQuantum(GetPixelLuma( in WriteCIPImage()
Dtga.c531 SetPixelRed(image,ClampToQuantum(pixel.red),q); in ReadTGAImage()
532 SetPixelGreen(image,ClampToQuantum(pixel.green),q); in ReadTGAImage()
533 SetPixelBlue(image,ClampToQuantum(pixel.blue),q); in ReadTGAImage()
535 SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q); in ReadTGAImage()
685 (void) WriteBlobByte(image,ScaleQuantumToChar(ClampToQuantum( in WriteTGAPixel()
886 green=(unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage()
888 *q++=((unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage()
891 ClampToQuantum(image->colormap[i].alpha) > midpoint)) ? 0x80 : 0) | in WriteTGAImage()
892 ((unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage()
897 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].blue)); in WriteTGAImage()
[all …]
Dhald.c157 SetPixelRed(image,ClampToQuantum(QuantumRange*red/(cube_size-1.0)),q); in ReadHALDImage()
158 SetPixelGreen(image,ClampToQuantum(QuantumRange*green/(cube_size-1.0)), in ReadHALDImage()
160 SetPixelBlue(image,ClampToQuantum(QuantumRange*blue/(cube_size-1.0)),q); in ReadHALDImage()
Dmiff.c1589 SetPixelIndex(image,ClampToQuantum(pixel.index),q); in ReadMIFFImage()
1592 SetPixelRed(image,ClampToQuantum(pixel.red),q); in ReadMIFFImage()
1593 SetPixelGreen(image,ClampToQuantum(pixel.green),q); in ReadMIFFImage()
1594 SetPixelBlue(image,ClampToQuantum(pixel.blue),q); in ReadMIFFImage()
1596 SetPixelBlack(image,ClampToQuantum(pixel.black),q); in ReadMIFFImage()
1599 SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q); in ReadMIFFImage()
1851 value=(unsigned int) ClampToQuantum(pixel->index); in PopRunlengthPacket()
1879 long_value=ScaleQuantumToLong(ClampToQuantum(pixel->alpha)); in PopRunlengthPacket()
1891 short_value=ScaleQuantumToShort(ClampToQuantum(pixel->alpha)); in PopRunlengthPacket()
1903 char_value=(unsigned char) ScaleQuantumToChar(ClampToQuantum( in PopRunlengthPacket()
[all …]
Djp2.c484 SetPixelGray(image,ClampToQuantum(pixel),q); in ReadJP2Image()
488 SetPixelRed(image,ClampToQuantum(pixel),q); in ReadJP2Image()
489 SetPixelGreen(image,ClampToQuantum(pixel),q); in ReadJP2Image()
490 SetPixelBlue(image,ClampToQuantum(pixel),q); in ReadJP2Image()
498 SetPixelAlpha(image,ClampToQuantum(pixel),q); in ReadJP2Image()
501 SetPixelGreen(image,ClampToQuantum(pixel),q); in ReadJP2Image()
506 SetPixelBlue(image,ClampToQuantum(pixel),q); in ReadJP2Image()
511 SetPixelAlpha(image,ClampToQuantum(pixel),q); in ReadJP2Image()
Dmpc.c1487 pixel=ScaleQuantumToLong(ClampToQuantum(image->colormap[i].red)); in WriteMPCImage()
1489 pixel=ScaleQuantumToLong(ClampToQuantum( in WriteMPCImage()
1492 pixel=ScaleQuantumToLong(ClampToQuantum(image->colormap[i].blue)); in WriteMPCImage()
1501 pixel=ScaleQuantumToShort(ClampToQuantum(image->colormap[i].red)); in WriteMPCImage()
1503 pixel=ScaleQuantumToShort(ClampToQuantum( in WriteMPCImage()
1506 pixel=ScaleQuantumToShort(ClampToQuantum( in WriteMPCImage()
1516 pixel=(unsigned char) ScaleQuantumToChar(ClampToQuantum( in WriteMPCImage()
1519 pixel=(unsigned char) ScaleQuantumToChar(ClampToQuantum( in WriteMPCImage()
1522 pixel=(unsigned char) ScaleQuantumToChar(ClampToQuantum( in WriteMPCImage()
Dexr.c285 SetPixelRed(image,ClampToQuantum((MagickRealType) QuantumRange* in ReadEXRImage()
287 SetPixelGreen(image,ClampToQuantum((MagickRealType) QuantumRange* in ReadEXRImage()
289 SetPixelBlue(image,ClampToQuantum((MagickRealType) QuantumRange* in ReadEXRImage()
291 SetPixelAlpha(image,ClampToQuantum((MagickRealType) QuantumRange* in ReadEXRImage()
Dcube.c295 SetPixelRed(image,ClampToQuantum(QuantumRange*( in ReadCUBEImage()
299 SetPixelGreen(image,ClampToQuantum(QuantumRange*( in ReadCUBEImage()
303 SetPixelBlue(image,ClampToQuantum(QuantumRange*( in ReadCUBEImage()
/external/ImageMagick/Magick++/lib/
DColor.cpp647 quantumRed(ClampToQuantum(red)); in hue()
648 quantumGreen(ClampToQuantum(green)); in hue()
649 quantumBlue(ClampToQuantum(blue)); in hue()
684 quantumRed(ClampToQuantum(red)); in lightness()
685 quantumGreen(ClampToQuantum(green)); in lightness()
686 quantumBlue(ClampToQuantum(blue)); in lightness()
721 quantumRed(ClampToQuantum(red)); in saturation()
722 quantumGreen(ClampToQuantum(green)); in saturation()
723 quantumBlue(ClampToQuantum(blue)); in saturation()

1234