/external/ImageMagick/MagickCore/ |
D | quantum-import.c | 295 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 …]
|
D | cache-view.c | 726 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 …]
|
D | colorspace.c | 366 SetPixelGray(image,ClampToQuantum(GetPixelIntensity(image,q)),q); in sRGBTransformImage() 560 SetPixelRed(image,ClampToQuantum(QuantumRange*X),q); in sRGBTransformImage() 561 SetPixelGreen(image,ClampToQuantum(QuantumRange*Y),q); in sRGBTransformImage() 562 SetPixelBlue(image,ClampToQuantum(QuantumRange*Z),q); in sRGBTransformImage() 668 SetPixelRed(image,logmap[ScaleQuantumToMap(ClampToQuantum(red))],q); in sRGBTransformImage() 669 SetPixelGreen(image,logmap[ScaleQuantumToMap(ClampToQuantum(green))], in sRGBTransformImage() 671 SetPixelBlue(image,logmap[ScaleQuantumToMap(ClampToQuantum(blue))],q); in sRGBTransformImage() 732 SetPixelRed(image,ClampToQuantum(red),q); in sRGBTransformImage() 733 SetPixelGreen(image,ClampToQuantum(green),q); in sRGBTransformImage() 734 SetPixelBlue(image,ClampToQuantum(blue),q); in sRGBTransformImage() [all …]
|
D | composite-private.h | 86 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()
|
D | enhance.c | 390 pixel.red=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage() 394 pixel.green=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage() 398 pixel.blue=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage() 402 pixel.black=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage() 406 pixel.alpha=clut_map[ScaleQuantumToMap(ClampToQuantum( in ClutImage() 740 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma; in ColorDecisionListImage() 742 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma; in ColorDecisionListImage() 744 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))].blue-luma; in ColorDecisionListImage() 779 SetPixelRed(image,ClampToQuantum(luma+color_correction.saturation* in ColorDecisionListImage() 781 SetPixelGreen(image,ClampToQuantum(luma+color_correction.saturation* in ColorDecisionListImage() [all …]
|
D | accelerate-kernels-private.h | 327 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)); 1065 setRed(&rgb,ClampToQuantum(QuantumRange*brightness)); [all …]
|
D | color.c | 1175 GetMagickPrecision(),(double) ClampToQuantum(color)); in ConcatenateColorComponent() 1184 (unsigned long) ScaleQuantumToLong(ClampToQuantum(color))); in ConcatenateColorComponent() 1191 ScaleQuantumToShort(ClampToQuantum(color))); in ConcatenateColorComponent() 1196 ScaleQuantumToChar(ClampToQuantum(color))); in ConcatenateColorComponent() 1203 GetMagickPrecision(),QuantumScale*ClampToQuantum(color)); in ConcatenateColorComponent() 1217 GetMagickPrecision(),(double) ClampToQuantum(360.0*QuantumScale* in ConcatenateColorComponent() 1221 GetMagickPrecision(),(double) ClampToQuantum(100.0*QuantumScale* in ConcatenateColorComponent() 1236 GetMagickPrecision(),(double) ClampToQuantum(100.0*QuantumScale*color)); in ConcatenateColorComponent() 1241 ClampToQuantum(color))); in ConcatenateColorComponent() 1469 ScaleCharToQuantum(ScaleQuantumToChar(ClampToQuantum(component)))) in IsSVGCompliant() [all …]
|
D | pixel.c | 592 *q++=ScaleQuantumToChar(ClampToQuantum(GetPixelIntensity(image,p))); in ExportCharPixel() 703 *q=ScaleQuantumToChar(ClampToQuantum(GetPixelIntensity(image,p))); in ExportCharPixel() 1211 *q++=ScaleQuantumToLong(ClampToQuantum(GetPixelIntensity(image,p))); in ExportLongPixel() 1322 *q=ScaleQuantumToLong(ClampToQuantum(GetPixelIntensity(image,p))); in ExportLongPixel() 1417 *q++=ScaleQuantumToLongLong(ClampToQuantum( in ExportLongLongPixel() 1529 *q=ScaleQuantumToLongLong(ClampToQuantum( in ExportLongLongPixel() 1625 *q++=ClampToQuantum(GetPixelIntensity(image,p)); in ExportQuantumPixel() 1736 *q=ClampToQuantum(GetPixelIntensity(image,p)); in ExportQuantumPixel() 1834 *q++=ScaleQuantumToShort(ClampToQuantum(GetPixelIntensity(image,p))); in ExportShortPixel() 1945 *q=ScaleQuantumToShort(ClampToQuantum(GetPixelIntensity(image,p))); in ExportShortPixel() [all …]
|
D | histogram.c | 166 ((ScaleQuantumToChar(ClampToQuantum(pixel->red)) >> index) & 0x01) | in ColorToNodeId() 167 ((ScaleQuantumToChar(ClampToQuantum(pixel->green)) >> index) & 0x01) << 1 | in ColorToNodeId() 168 ((ScaleQuantumToChar(ClampToQuantum(pixel->blue)) >> index) & 0x01) << 2); in ColorToNodeId() 170 id|=((ScaleQuantumToChar(ClampToQuantum(pixel->alpha)) >> index) & in ColorToNodeId() 1154 SetPixelRed(unique_image,ClampToQuantum(p->red),q); in UniqueColorsToImage() 1155 SetPixelGreen(unique_image,ClampToQuantum(p->green),q); in UniqueColorsToImage() 1156 SetPixelBlue(unique_image,ClampToQuantum(p->blue),q); in UniqueColorsToImage() 1157 SetPixelAlpha(unique_image,ClampToQuantum(p->alpha),q); in UniqueColorsToImage() 1159 SetPixelBlack(unique_image,ClampToQuantum(p->black),q); in UniqueColorsToImage()
|
D | fourier.c | 580 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 …]
|
D | stream.c | 458 pixel[RedPixelChannel]=ClampToQuantum(image->background_color.red); in GetOneAuthenticPixelFromStream() 459 pixel[GreenPixelChannel]=ClampToQuantum(image->background_color.green); in GetOneAuthenticPixelFromStream() 460 pixel[BluePixelChannel]=ClampToQuantum(image->background_color.blue); in GetOneAuthenticPixelFromStream() 461 pixel[BlackPixelChannel]=ClampToQuantum(image->background_color.black); in GetOneAuthenticPixelFromStream() 462 pixel[AlphaPixelChannel]=ClampToQuantum(image->background_color.alpha); in GetOneAuthenticPixelFromStream() 522 pixel[RedPixelChannel]=ClampToQuantum(image->background_color.red); in GetOneVirtualPixelFromStream() 523 pixel[GreenPixelChannel]=ClampToQuantum(image->background_color.green); in GetOneVirtualPixelFromStream() 524 pixel[BluePixelChannel]=ClampToQuantum(image->background_color.blue); in GetOneVirtualPixelFromStream() 525 pixel[BlackPixelChannel]=ClampToQuantum(image->background_color.black); in GetOneVirtualPixelFromStream() 526 pixel[AlphaPixelChannel]=ClampToQuantum(image->background_color.alpha); in GetOneVirtualPixelFromStream() [all …]
|
D | pixel-accessor.h | 634 ClampToQuantum(image->background_color.red); in SetPixelBackgoundColor() 636 ClampToQuantum(image->background_color.green); in SetPixelBackgoundColor() 638 ClampToQuantum(image->background_color.blue); in SetPixelBackgoundColor() 641 ClampToQuantum(image->background_color.black); in SetPixelBackgoundColor() 645 ClampToQuantum(image->background_color.alpha); in SetPixelBackgoundColor() 772 ClampToQuantum(pixel_info->red); in SetPixelViaPixelInfo() 774 ClampToQuantum(pixel_info->green); in SetPixelViaPixelInfo() 776 ClampToQuantum(pixel_info->blue); in SetPixelViaPixelInfo() 779 ClampToQuantum(pixel_info->black); in SetPixelViaPixelInfo() 783 ClampToQuantum(pixel_info->alpha); in SetPixelViaPixelInfo()
|
D | channel.c | 393 source_image,source_channel,ClampToQuantum(pixel),exception); in ChannelFxImage() 403 source_image,destination_channel,ClampToQuantum(pixel),exception); in ChannelFxImage() 895 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo() 901 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo() 907 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo() 913 composite[i]=ClampToQuantum(gamma*MagickOver_((double) q[i],beta, in FlattenPixelInfo() 919 composite[i]=ClampToQuantum(QuantumRange*(Sa*(-Da)+Sa+Da)); in FlattenPixelInfo() 1004 q[i]=ClampToQuantum(gamma*q[i]); in SetImageAlphaChannel() 1138 q[i]=ClampToQuantum(gamma*q[i]); in SetImageAlphaChannel()
|
D | quantize.c | 613 SetPixelRed(image,ClampToQuantum( in AssignImageColors() 615 SetPixelGreen(image,ClampToQuantum( in AssignImageColors() 617 SetPixelBlue(image,ClampToQuantum( in AssignImageColors() 620 SetPixelAlpha(image,ClampToQuantum( in AssignImageColors() 1269 q->red=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap() 1271 q->green=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap() 1273 q->blue=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap() 1283 q->alpha=(double) ClampToQuantum(opacity); in DefineImageColormap() 1286 q->red=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap() 1288 q->green=(double) ClampToQuantum(alpha*QuantumRange* in DefineImageColormap() [all …]
|
D | decorate.c | 728 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*HighlightFactor+(double) in RaiseImage() 746 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*AccentuateFactor+ in RaiseImage() 764 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*ShadowFactor+(double) in RaiseImage() 818 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*HighlightFactor+(double) in RaiseImage() 838 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*ShadowFactor+(double) in RaiseImage() 892 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*HighlightFactor+(double) in RaiseImage() 905 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*TroughFactor+ in RaiseImage() 923 q[i]=ClampToQuantum(QuantumScale*((double) q[i]*ShadowFactor+(double) in RaiseImage()
|
/external/ImageMagick/coders/ |
D | cip.c | 237 ((((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+3))/QuantumRange) & 0x03) << 6) | in WriteCIPImage() 238 (((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+2))/QuantumRange) & 0x03) << 4) | in WriteCIPImage() 239 (((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+1))/QuantumRange) & 0x03) << 2) | in WriteCIPImage() 240 (((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+0))/QuantumRange) & 0x03) << 0)); in WriteCIPImage() 249 … ((((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+MagickMin(i,3)))/QuantumRange) & 0x03) << 6) | in WriteCIPImage() 250 … (((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+MagickMin(i,2)))/QuantumRange) & 0x03) << 4) | in WriteCIPImage() 251 … (((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+MagickMin(i,1)))/QuantumRange) & 0x03) << 2) | in WriteCIPImage() 252 … (((size_t) (3*ClampToQuantum(GetPixelLuma(image,p+MagickMin(i,0)))/QuantumRange) & 0x03) << 0)); in WriteCIPImage()
|
D | tga.c | 528 SetPixelRed(image,ClampToQuantum(pixel.red),q); in ReadTGAImage() 529 SetPixelGreen(image,ClampToQuantum(pixel.green),q); in ReadTGAImage() 530 SetPixelBlue(image,ClampToQuantum(pixel.blue),q); in ReadTGAImage() 532 SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q); in ReadTGAImage() 678 (void) WriteBlobByte(image,ScaleQuantumToChar(ClampToQuantum( in WriteTGAPixel() 884 green=(unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage() 886 *q++=((unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage() 889 ClampToQuantum(image->colormap[i].alpha) > midpoint)) ? 0x80 : 0) | in WriteTGAImage() 890 ((unsigned char) ScaleQuantumToAny(ClampToQuantum( in WriteTGAImage() 895 *q++=ScaleQuantumToChar(ClampToQuantum(image->colormap[i].blue)); in WriteTGAImage() [all …]
|
D | hald.c | 154 SetPixelRed(image,ClampToQuantum(QuantumRange*red/(cube_size-1.0)),q); in ReadHALDImage() 155 SetPixelGreen(image,ClampToQuantum(QuantumRange*green/(cube_size-1.0)), in ReadHALDImage() 157 SetPixelBlue(image,ClampToQuantum(QuantumRange*blue/(cube_size-1.0)),q); in ReadHALDImage()
|
D | miff.c | 1508 SetPixelIndex(image,ClampToQuantum(pixel.index),q); in ReadMIFFImage() 1511 SetPixelRed(image,ClampToQuantum(pixel.red),q); in ReadMIFFImage() 1512 SetPixelGreen(image,ClampToQuantum(pixel.green),q); in ReadMIFFImage() 1513 SetPixelBlue(image,ClampToQuantum(pixel.blue),q); in ReadMIFFImage() 1515 SetPixelBlack(image,ClampToQuantum(pixel.black),q); in ReadMIFFImage() 1518 SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q); in ReadMIFFImage() 1757 value=(unsigned int) ClampToQuantum(pixel->index); in PopRunlengthPacket() 1785 value=ScaleQuantumToLong(ClampToQuantum(pixel->alpha)); in PopRunlengthPacket() 1797 value=ScaleQuantumToShort(ClampToQuantum(pixel->alpha)); in PopRunlengthPacket() 1809 value=(unsigned char) ScaleQuantumToChar(ClampToQuantum( in PopRunlengthPacket() [all …]
|
D | exr.c | 240 SetPixelRed(image,ClampToQuantum(QuantumRange* in ReadEXRImage() 242 SetPixelGreen(image,ClampToQuantum(QuantumRange* in ReadEXRImage() 244 SetPixelBlue(image,ClampToQuantum(QuantumRange* in ReadEXRImage() 246 SetPixelAlpha(image,ClampToQuantum(QuantumRange* in ReadEXRImage()
|
D | jp2.c | 464 SetPixelRed(image,ClampToQuantum(pixel),q); in ReadJP2Image() 465 SetPixelGreen(image,ClampToQuantum(pixel),q); in ReadJP2Image() 466 SetPixelBlue(image,ClampToQuantum(pixel),q); in ReadJP2Image() 474 SetPixelAlpha(image,ClampToQuantum(pixel),q); in ReadJP2Image() 477 SetPixelGreen(image,ClampToQuantum(pixel),q); in ReadJP2Image() 482 SetPixelBlue(image,ClampToQuantum(pixel),q); in ReadJP2Image() 487 SetPixelAlpha(image,ClampToQuantum(pixel),q); in ReadJP2Image()
|
D | palm.c | 198 if (ScaleQuantumToChar(ClampToQuantum(packet->red)) == PalmPalette[i][0] && in FindColor() 199 ScaleQuantumToChar(ClampToQuantum(packet->green)) == PalmPalette[i][1] && in FindColor() 200 ScaleQuantumToChar(ClampToQuantum(packet->blue)) == PalmPalette[i][2]) in FindColor() 815 (void) WriteBlobByte(image,ScaleQuantumToChar(ClampToQuantum( in WritePALMImage() 817 (void) WriteBlobByte(image,ScaleQuantumToChar(ClampToQuantum( in WritePALMImage() 819 (void) WriteBlobByte(image,ScaleQuantumToChar(ClampToQuantum( in WritePALMImage()
|
D | ps.c | 1169 q=PopHexPixel(hex_digits,ScaleQuantumToChar(ClampToQuantum(pixel.red)),q); \ in WritePSImage() 1170 q=PopHexPixel(hex_digits,ScaleQuantumToChar(ClampToQuantum(pixel.green)),q); \ in WritePSImage() 1171 q=PopHexPixel(hex_digits,ScaleQuantumToChar(ClampToQuantum(pixel.blue)),q); \ in WritePSImage() 1763 pixel=ClampToQuantum(GetPixelLuma(preview_image,p)); in WritePSImage() 1900 pixel=(Quantum) ScaleQuantumToChar(ClampToQuantum(GetPixelLuma( in WritePSImage() 1951 pixel=ClampToQuantum(GetPixelLuma(image,p)); in WritePSImage() 2023 if ((GetPixelRed(image,p) == ClampToQuantum(pixel.red)) && in WritePSImage() 2024 (GetPixelGreen(image,p) == ClampToQuantum(pixel.green)) && in WritePSImage() 2025 (GetPixelBlue(image,p) == ClampToQuantum(pixel.blue)) && in WritePSImage() 2026 (GetPixelAlpha(image,p) == ClampToQuantum(pixel.alpha)) && in WritePSImage() [all …]
|
/external/ImageMagick/MagickWand/ |
D | pixel-wand.c | 551 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/Magick++/lib/ |
D | Color.cpp | 632 quantumRed(ClampToQuantum(red)); in hue() 633 quantumGreen(ClampToQuantum(green)); in hue() 634 quantumBlue(ClampToQuantum(blue)); in hue() 669 quantumRed(ClampToQuantum(red)); in lightness() 670 quantumGreen(ClampToQuantum(green)); in lightness() 671 quantumBlue(ClampToQuantum(blue)); in lightness() 706 quantumRed(ClampToQuantum(red)); in saturation() 707 quantumGreen(ClampToQuantum(green)); in saturation() 708 quantumBlue(ClampToQuantum(blue)); in saturation()
|