/external/ImageMagick/MagickCore/ |
D | gem.c | 148 *red=QuantumRange*(r+m); in ConvertHCLToRGB() 149 *green=QuantumRange*(g+m); in ConvertHCLToRGB() 150 *blue=QuantumRange*(b+m); in ConvertHCLToRGB() 254 *red=QuantumRange*(z*r+m); in ConvertHCLpToRGB() 255 *green=QuantumRange*(z*g+m); in ConvertHCLpToRGB() 256 *blue=QuantumRange*(z*b+m); in ConvertHCLpToRGB() 304 *red=QuantumRange*brightness; in ConvertHSBToRGB() 319 *red=QuantumRange*brightness; in ConvertHSBToRGB() 320 *green=QuantumRange*t; in ConvertHSBToRGB() 321 *blue=QuantumRange*p; in ConvertHSBToRGB() [all …]
|
D | composite.c | 242 *red=QuantumRange*(r+m); in HCLComposite() 243 *green=QuantumRange*(g+m); in HCLComposite() 244 *blue=QuantumRange*(b+m); in HCLComposite() 471 pixel=QuantumRange*alpha; in CompositeOverImage() 498 pixel=QuantumRange*gamma*(Sca+Dca*(1.0-Sa)); in CompositeOverImage() 651 if (GetPixelReadMask(source_image,p) <= (QuantumRange/2)) 734 if (GetPixelReadMask(source_image,p) <= (QuantumRange/2)) 1089 (((MagickRealType) QuantumRange+1.0)/2.0)))/(((MagickRealType) 1090 QuantumRange+1.0)/2.0)+center.x+((compose == DisplaceCompositeOp) ? 1093 (((MagickRealType) QuantumRange+1.0)/2.0)))/(((MagickRealType) [all …]
|
D | colorspace-private.h | 32 pixel->red=((QuantumRange-(QuantumScale*pixel->red*(QuantumRange- in ConvertCMYKToRGB() 34 pixel->green=((QuantumRange-(QuantumScale*pixel->green*(QuantumRange- in ConvertCMYKToRGB() 36 pixel->blue=((QuantumRange-(QuantumScale*pixel->blue*(QuantumRange- in ConvertCMYKToRGB() 67 pixel->black=(MagickRealType) QuantumRange; in ConvertRGBToCMYK() 82 pixel->red=QuantumRange*cyan; in ConvertRGBToCMYK() 83 pixel->green=QuantumRange*magenta; in ConvertRGBToCMYK() 84 pixel->blue=QuantumRange*yellow; in ConvertRGBToCMYK() 85 pixel->black=QuantumRange*black; in ConvertRGBToCMYK()
|
D | magick-type.h | 66 #define QuantumRange 255.0 macro 70 #define QuantumRange ((Quantum) 255) macro 79 #define QuantumRange 65535.0f macro 83 #define QuantumRange ((Quantum) 65535) macro 92 #define QuantumRange 4294967295.0 macro 96 #define QuantumRange ((Quantum) 4294967295) macro 105 #define QuantumRange 18446744073709551615.0 macro 115 #define QuantumScale ((double) 1.0/(double) QuantumRange)
|
D | decorate.c | 249 accentuate.red=(double) (QuantumScale*((QuantumRange- in FrameImage() 250 AccentuateModulate)*matte.red+(QuantumRange*AccentuateModulate))); in FrameImage() 251 accentuate.green=(double) (QuantumScale*((QuantumRange- in FrameImage() 252 AccentuateModulate)*matte.green+(QuantumRange*AccentuateModulate))); in FrameImage() 253 accentuate.blue=(double) (QuantumScale*((QuantumRange- in FrameImage() 254 AccentuateModulate)*matte.blue+(QuantumRange*AccentuateModulate))); in FrameImage() 255 accentuate.black=(double) (QuantumScale*((QuantumRange- in FrameImage() 256 AccentuateModulate)*matte.black+(QuantumRange*AccentuateModulate))); in FrameImage() 259 highlight.red=(double) (QuantumScale*((QuantumRange- in FrameImage() 260 HighlightModulate)*matte.red+(QuantumRange*HighlightModulate))); in FrameImage() [all …]
|
D | quantum-private.h | 314 return(QuantumRange); in ScaleAnyToQuantum() 316 return((Quantum) (((double) QuantumRange*quantum)* in ScaleAnyToQuantum() 319 return((Quantum) (((double) QuantumRange*quantum)* in ScaleAnyToQuantum() 327 return((QuantumAny) (((double) range*quantum)/QuantumRange+0.5)); in ScaleQuantumToAny() 359 return(QuantumRange); in ScaleMapToQuantum() 460 return(QuantumRange); in ScaleMapToQuantum() 553 return(QuantumRange); in ScaleMapToQuantum() 644 return(QuantumRange); in ScaleMapToQuantum()
|
D | accelerate-kernels-private.h | 311 return (CLQuantum) clamp(value, 0.0f, QuantumRange); 320 return (CLQuantum) (clamp(value, 0.0f, QuantumRange) + 0.5f); 524 (3.0*QuantumRange)); 751 noise=(pixel+QuantumRange*SigmaUniform*(alpha-0.5f)); 766 noise=pixel+sqrt(pixel)*SigmaGaussian*sigma+QuantumRange*TauGaussian*tau; 775 noise=QuantumRange; 785 noise=(pixel-QuantumRange); 787 noise=(pixel+QuantumRange*SigmaLaplacian*log(2.0f*alpha)+ 793 noise=(pixel+QuantumRange); 795 noise=(pixel-QuantumRange*SigmaLaplacian*log(2.0f*beta)+0.5f); [all …]
|
D | colorspace.c | 175 *cyan=QuantumScale*(QuantumRange-red); in ConvertRGBToCMY() 176 *magenta=QuantumScale*(QuantumRange-green); in ConvertRGBToCMY() 177 *yellow=QuantumScale*(QuantumRange-blue); in ConvertRGBToCMY() 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() 1392 *red=QuantumRange*(1.0-cyan); in ConvertCMYToRGB() 1393 *green=QuantumRange*(1.0-magenta); in ConvertCMYToRGB() 1394 *blue=QuantumRange*(1.0-yellow); in ConvertCMYToRGB() 1469 *red=QuantumRange*(0.99999999999914679361*Y-1.2188941887145875e-06*(Pb-0.5)+ in ConvertYPbPrToRGB() [all …]
|
D | quantum-import.c | 295 SetPixelAlpha(image,ClampToQuantum(QuantumRange* in ImportAlphaQuantum() 581 SetPixelRed(image,ClampToQuantum(QuantumRange* in ImportBGRQuantum() 584 SetPixelGreen(image,ClampToQuantum(QuantumRange* in ImportBGRQuantum() 587 SetPixelBlue(image,ClampToQuantum(QuantumRange* in ImportBGRQuantum() 802 SetPixelRed(image,ClampToQuantum(QuantumRange* in ImportBGRAQuantum() 805 SetPixelGreen(image,ClampToQuantum(QuantumRange* in ImportBGRAQuantum() 808 SetPixelBlue(image,ClampToQuantum(QuantumRange* in ImportBGRAQuantum() 811 SetPixelAlpha(image,ClampToQuantum(QuantumRange* in ImportBGRAQuantum() 1036 SetPixelRed(image,ClampToQuantum(QuantumRange* in ImportBGROQuantum() 1039 SetPixelGreen(image,ClampToQuantum(QuantumRange* in ImportBGROQuantum() [all …]
|
D | pixel-accessor.h | 40 if (pixel >= (MagickRealType) QuantumRange) in ClampPixel() 41 return((Quantum) QuantumRange); in ClampPixel() 146 return((Quantum) QuantumRange); in GetPixelCompositeMask() 338 return((Quantum) QuantumRange); in GetPixelReadMask() 346 return((Quantum) QuantumRange); in GetPixelWriteMask() 371 return(QuantumRange-OpaqueAlpha); in GetPixelOpacity() 372 return(QuantumRange-pixel[image->channel_map[AlphaPixelChannel].offset]); in GetPixelOpacity() 469 quantum=(Quantum) (((MagickRealType) QuantumRange*((QuantumAny) in IsPixelAtDepth() 470 (((MagickRealType) range*pixel)/QuantumRange+0.5)))/range+0.5); in IsPixelAtDepth() 472 quantum=(Quantum) (((MagickRealType) QuantumRange*((QuantumAny) in IsPixelAtDepth() [all …]
|
D | quantize.c | 604 cube.distance=(double) (4.0*(QuantumRange+1.0)*(QuantumRange+1.0)+ in AssignImageColors() 658 intensity=(double) QuantumRange; in AssignImageColors() 664 image->colormap[1].red=(double) QuantumRange-intensity; in AssignImageColors() 665 image->colormap[1].green=(double) QuantumRange-intensity; in AssignImageColors() 666 image->colormap[1].blue=(double) QuantumRange-intensity; in AssignImageColors() 794 midpoint.red=(double) QuantumRange/2.0; in ClassifyImageColors() 795 midpoint.green=(double) QuantumRange/2.0; in ClassifyImageColors() 796 midpoint.blue=(double) QuantumRange/2.0; in ClassifyImageColors() 797 midpoint.alpha=(double) QuantumRange/2.0; in ClassifyImageColors() 835 bisect=((double) QuantumRange+1.0)/2.0; in ClassifyImageColors() [all …]
|
D | threshold.c | 328 p[center+i] <= mean ? 0 : QuantumRange),q); in AdaptiveThresholdImage() 757 return(BilevelImage(image,QuantumRange*threshold/100.0,exception)); in AutoThresholdImage() 869 q[i]=(Quantum) (pixel <= threshold ? 0 : QuantumRange); in BilevelImage() 981 threshold.red*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage() 982 threshold.green*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage() 983 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage() 984 threshold.black*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage() 985 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage() 1808 QuantumRange/levels[n]); in OrderedDitherImage() 2100 threshold=(double) (QuantumRange* in RandomThresholdImage() [all …]
|
D | pixel.c | 321 if (pixel <= (0.0404482362771076*QuantumRange)) in DecodePixelGamma() 323 return((MagickRealType) (QuantumRange*DecodeGamma((double) (QuantumScale* in DecodePixelGamma() 448 if (pixel <= (0.0031306684425005883*QuantumRange)) in EncodePixelGamma() 450 return((MagickRealType) QuantumRange*(1.055*EncodeGamma((double) QuantumScale* in EncodePixelGamma() 2263 (3.0*QuantumRange)); in GetPixelInfoIntensity() 2391 (3.0*QuantumRange)); in GetPixelIntensity() 2795 SetPixelBlue(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel() 2797 SetPixelGreen(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel() 2799 SetPixelRed(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel() 2817 SetPixelBlue(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel() [all …]
|
D | compare.c | 270 if ((GetPixelReadMask(image,p) <= (QuantumRange/2)) || in CompareImages() 271 (GetPixelReadMask(reconstruct_image,q) <= (QuantumRange/2))) in CompareImages() 433 if ((GetPixelReadMask(image,p) <= (QuantumRange/2)) || in GetAbsoluteDistortion() 434 (GetPixelReadMask(reconstruct_image,q) <= (QuantumRange/2))) in GetAbsoluteDistortion() 548 if ((GetPixelReadMask(image,p) <= (QuantumRange/2)) || in GetFuzzDistortion() 549 (GetPixelReadMask(reconstruct_image,q) <= (QuantumRange/2))) in GetFuzzDistortion() 663 if ((GetPixelReadMask(image,p) <= (QuantumRange/2)) || in GetMeanAbsoluteDistortion() 664 (GetPixelReadMask(reconstruct_image,q) <= (QuantumRange/2))) in GetMeanAbsoluteDistortion() 768 if ((GetPixelReadMask(image,p) <= (QuantumRange/2)) || in GetMeanErrorPerPixel() 769 (GetPixelReadMask(reconstruct_image,q) <= (QuantumRange/2))) in GetMeanErrorPerPixel() [all …]
|
/external/ImageMagick/tests/ |
D | validate.c | 64 #define ReferenceEpsilon (QuantumRange*1.0e-2) 127 *red*=QuantumRange; in ConvertHSIToRGB() 128 *green*=QuantumRange; in ConvertHSIToRGB() 129 *blue*=QuantumRange; in ConvertHSIToRGB() 174 *red=QuantumRange*(min+c); in ConvertHSVToRGB() 175 *green=QuantumRange*(min+x); in ConvertHSVToRGB() 176 *blue=QuantumRange*min; in ConvertHSVToRGB() 181 *red=QuantumRange*(min+x); in ConvertHSVToRGB() 182 *green=QuantumRange*(min+c); in ConvertHSVToRGB() 183 *blue=QuantumRange*min; in ConvertHSVToRGB() [all …]
|
/external/ImageMagick/coders/ |
D | cip.c | 238 …((((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() 258 QuantumRange) & 0x03) << 6); in WriteCIPImage() 265 QuantumRange) & 0x03) << 4); in WriteCIPImage() 272 QuantumRange) & 0x03) << 2); in WriteCIPImage() 279 QuantumRange) & 0x03) << 0); in WriteCIPImage()
|
D | cut.c | 490 if(PalHeader.MaxRed==0) PalHeader.MaxRed=(unsigned int) QuantumRange; /*avoid division by 0*/ in ReadCUTImage() 491 if(PalHeader.MaxGreen==0) PalHeader.MaxGreen=(unsigned int) QuantumRange; in ReadCUTImage() 492 if(PalHeader.MaxBlue==0) PalHeader.MaxBlue=(unsigned int) QuantumRange; in ReadCUTImage() 505 if (QuantumRange != (Quantum) PalHeader.MaxRed) in ReadCUTImage() 508 image->colormap[i].red*QuantumRange+(PalHeader.MaxRed>>1))/ in ReadCUTImage() 512 if (QuantumRange != (Quantum) PalHeader.MaxGreen) in ReadCUTImage() 515 … (((double) image->colormap[i].green*QuantumRange+(PalHeader.MaxGreen>>1))/PalHeader.MaxGreen); in ReadCUTImage() 518 if (QuantumRange != (Quantum) PalHeader.MaxBlue) in ReadCUTImage() 521 … (((double)image->colormap[i].blue*QuantumRange+(PalHeader.MaxBlue>>1))/PalHeader.MaxBlue); in ReadCUTImage() 629 image->colormap[1].blue=QuantumRange; in ReadCUTImage() [all …]
|
D | palm.c | 356 transpix.red=(double) (QuantumRange*ReadBlobByte(image)/31); in ReadPALMImage() 357 transpix.green=(double) (QuantumRange*ReadBlobByte(image)/63); in ReadPALMImage() 358 transpix.blue=(double) (QuantumRange*ReadBlobByte(image)/31); in ReadPALMImage() 498 SetPixelRed(image,(Quantum) ((QuantumRange*((color16 >> 11) & in ReadPALMImage() 500 SetPixelGreen(image,(Quantum) ((QuantumRange*((color16 >> 5) & in ReadPALMImage() 502 SetPixelBlue(image,(Quantum) ((QuantumRange*((color16 >> 0) & in ReadPALMImage() 908 (size_t) QuantumRange) << 11) | (((63*(size_t) in WritePALMImage() 909 GetPixelGreen(image,p))/(size_t) QuantumRange) << 5) | in WritePALMImage() 910 ((31*(size_t) GetPixelBlue(image,p))/(size_t) QuantumRange)); in WritePALMImage() 1001 QuantumRange)); in WritePALMImage() [all …]
|
D | rgf.c | 160 image->colormap[0].red=QuantumRange; in ReadRGFImage() 161 image->colormap[0].green=QuantumRange; in ReadRGFImage() 162 image->colormap[0].blue=QuantumRange; in ReadRGFImage() 367 if (GetPixelLuma(image,p) < (QuantumRange/2.0)) in WriteRGFImage()
|
D | hald.c | 157 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()
|
D | histogram.c | 241 length=MagickMax((size_t) ScaleQuantumToChar(QuantumRange)+1UL, in WriteHISTOGRAMImage() 302 SetPixelRed(histogram_image,QuantumRange,r); in WriteHISTOGRAMImage() 312 SetPixelGreen(histogram_image,QuantumRange,r); in WriteHISTOGRAMImage() 322 SetPixelBlue(histogram_image,QuantumRange,r); in WriteHISTOGRAMImage()
|
/external/ImageMagick/MagickWand/ |
D | pixel-wand.c | 1275 packet->red=(double) ClampToQuantum(QuantumRange-(wand->pixel.red* in PixelGetQuantumPacket() 1276 (QuantumRange-wand->pixel.black)+wand->pixel.black)); in PixelGetQuantumPacket() 1277 packet->green=(double) ClampToQuantum(QuantumRange-(wand->pixel.green* in PixelGetQuantumPacket() 1278 (QuantumRange-wand->pixel.black)+wand->pixel.black)); in PixelGetQuantumPacket() 1279 packet->blue=(double) ClampToQuantum(QuantumRange-(wand->pixel.blue* in PixelGetQuantumPacket() 1280 (QuantumRange-wand->pixel.black)+wand->pixel.black)); in PixelGetQuantumPacket() 1325 SetPixelRed(image,ClampToQuantum(QuantumRange- in PixelGetQuantumPixel() 1326 (wand->pixel.red*(QuantumRange-wand->pixel.black)+wand->pixel.black)), in PixelGetQuantumPixel() 1328 SetPixelGreen(image,ClampToQuantum(QuantumRange- in PixelGetQuantumPixel() 1329 (wand->pixel.green*(QuantumRange-wand->pixel.black)+wand->pixel.black)), in PixelGetQuantumPixel() [all …]
|
D | compare.c | 1250 (void) FormatLocaleFile(stderr,"%g (%g)",QuantumRange*distortion, in CompareImagesCommand() 1306 QuantumRange*channel_distortion[RedPixelChannel], in CompareImagesCommand() 1309 QuantumRange*channel_distortion[GreenPixelChannel], in CompareImagesCommand() 1312 QuantumRange*channel_distortion[BluePixelChannel], in CompareImagesCommand() 1316 QuantumRange*channel_distortion[AlphaPixelChannel], in CompareImagesCommand() 1323 QuantumRange*channel_distortion[CyanPixelChannel], in CompareImagesCommand() 1326 QuantumRange*channel_distortion[MagentaPixelChannel], in CompareImagesCommand() 1329 QuantumRange*channel_distortion[YellowPixelChannel], in CompareImagesCommand() 1332 QuantumRange*channel_distortion[BlackPixelChannel], in CompareImagesCommand() 1336 QuantumRange*channel_distortion[AlphaPixelChannel], in CompareImagesCommand() [all …]
|
/external/ImageMagick/Magick++/lib/ |
D | Color.cpp | 402 return(static_cast<Magick::Quantum>(double_*QuantumRange)); in scaleDoubleToQuantum() 408 return(static_cast<double>(quantum_)/QuantumRange); in scaleQuantumToDouble() 410 return(quantum_/QuantumRange); in scaleQuantumToDouble() 424 if (alpha_ == QuantumRange) in setAlpha() 745 : Color((mono_ ? QuantumRange : 0),(mono_ ? QuantumRange : 0), in ColorMono() 746 (mono_ ? QuantumRange : 0)) in ColorMono() 767 quantumRed(mono_ ? QuantumRange : 0); in mono() 768 quantumGreen(mono_ ? QuantumRange : 0); in mono() 769 quantumBlue(mono_ ? QuantumRange : 0); in mono()
|
/external/ImageMagick/Magick++/demo/ |
D | demo.cpp | 250 example.level( 0.20*QuantumRange, 0.90*QuantumRange, 1.20 ); in main() 256 example.levelChannel( RedChannel, 0.20*QuantumRange, 0.90*QuantumRange, 1.20 ); in main() 437 example.threshold( QuantumRange/2.0 ); in main() 443 example.randomThreshold( (0.3*QuantumRange), in main() 444 (0.85*QuantumRange) ); in main()
|