Home
last modified time | relevance | path

Searched refs:QuantumRange (Results 1 – 25 of 119) sorted by relevance

12345

/external/ImageMagick/MagickCore/
Dgem.c148 *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 …]
Dcolorspace-private.h32 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()
Dcomposite.c242 *red=QuantumRange*(r+m); in HCLComposite()
243 *green=QuantumRange*(g+m); in HCLComposite()
244 *blue=QuantumRange*(b+m); in HCLComposite()
472 ClampPixel(QuantumRange*(Sa+Da-Sa*Da)) : in CompositeOverImage()
473 ClampToQuantum(QuantumRange*(Sa+Da-Sa*Da)); in CompositeOverImage()
485 ClampPixel(gamma*QuantumRange*(Sca+Dca*(1.0-Sa))) : in CompositeOverImage()
486 ClampToQuantum(gamma*QuantumRange*(Sca+Dca*(1.0-Sa))); in CompositeOverImage()
1083 (((MagickRealType) QuantumRange+1.0)/2.0)))/(((MagickRealType)
1084 QuantumRange+1.0)/2.0)+center.x+((compose == DisplaceCompositeOp) ?
1087 (((MagickRealType) QuantumRange+1.0)/2.0)))/(((MagickRealType)
[all …]
Dmagick-type.h53 #define QuantumRange 255.0 macro
57 #define QuantumRange ((Quantum) 255) macro
67 #define QuantumRange 65535.0f macro
71 #define QuantumRange ((Quantum) 65535) macro
81 #define QuantumRange 4294967295.0 macro
85 #define QuantumRange ((Quantum) 4294967295) macro
95 #define QuantumRange 18446744073709551615.0 macro
103 #define QuantumScale ((double) 1.0/(double) QuantumRange)
Ddecorate.c249 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 …]
Dquantum-private.h275 return(QuantumRange); in ScaleAnyToQuantum()
277 return((Quantum) (((double) QuantumRange*quantum)/range+0.5)); in ScaleAnyToQuantum()
279 return((Quantum) (((double) QuantumRange*quantum)/range)); in ScaleAnyToQuantum()
286 return((QuantumAny) (((double) range*quantum)/QuantumRange+0.5)); in ScaleQuantumToAny()
319 return(QuantumRange); in ScaleMapToQuantum()
422 return(QuantumRange); in ScaleMapToQuantum()
511 return(QuantumRange); in ScaleMapToQuantum()
598 return(QuantumRange); in ScaleMapToQuantum()
Dcolorspace.c122 *cyan=QuantumScale*(QuantumRange-red); in ConvertRGBToCMY()
123 *magenta=QuantumScale*(QuantumRange-green); in ConvertRGBToCMY()
124 *yellow=QuantumScale*(QuantumRange-blue); in ConvertRGBToCMY()
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()
1330 *red=QuantumRange*(1.0-cyan); in ConvertCMYToRGB()
1331 *green=QuantumRange*(1.0-magenta); in ConvertCMYToRGB()
1332 *blue=QuantumRange*(1.0-yellow); in ConvertCMYToRGB()
1405 *red=QuantumRange*(0.99999999999914679361*Y-1.2188941887145875e-06*(Pb-0.5)+ in ConvertYPbPrToRGB()
[all …]
Dquantum-import.c295 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 …]
Dpixel-accessor.h38 if (value >= (MagickRealType) QuantumRange) in ClampPixel()
39 return((Quantum) QuantumRange); in ClampPixel()
328 return((Quantum) QuantumRange); in GetPixelReadMask()
336 return((Quantum) QuantumRange); in GetPixelWriteMask()
361 return(QuantumRange-OpaqueAlpha); in GetPixelOpacity()
362 return(QuantumRange-pixel[image->channel_map[AlphaPixelChannel].offset]); in GetPixelOpacity()
449 quantum=(Quantum) (((MagickRealType) QuantumRange*((QuantumAny) in IsPixelAtDepth()
450 (((MagickRealType) range*pixel)/QuantumRange+0.5)))/range+0.5); in IsPixelAtDepth()
452 quantum=(Quantum) (((MagickRealType) QuantumRange*((QuantumAny) in IsPixelAtDepth()
453 (((MagickRealType) range*pixel)/QuantumRange+0.5)))/range); in IsPixelAtDepth()
[all …]
Dpixel.c322 if (pixel <= (0.0404482362771076*QuantumRange)) in DecodePixelGamma()
324 return((MagickRealType) (QuantumRange*DecodeGamma((double) (QuantumScale* in DecodePixelGamma()
449 if (pixel <= (0.0031306684425005883*QuantumRange)) in EncodePixelGamma()
451 return((MagickRealType) QuantumRange*(1.055*EncodeGamma((double) QuantumScale* in EncodePixelGamma()
2262 (3.0*QuantumRange)); in GetPixelInfoIntensity()
2390 (3.0*QuantumRange)); in GetPixelIntensity()
2793 SetPixelBlue(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel()
2795 SetPixelGreen(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel()
2797 SetPixelRed(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel()
2815 SetPixelBlue(image,ClampToQuantum(QuantumRange*(*p)),q); in ImportDoublePixel()
[all …]
Dquantize.c603 cube.distance=(double) (4.0*(QuantumRange+1.0)*(QuantumRange+1.0)+ in AssignImageColors()
659 intensity=(double) QuantumRange; in AssignImageColors()
665 image->colormap[1].red=(double) QuantumRange-intensity; in AssignImageColors()
666 image->colormap[1].green=(double) QuantumRange-intensity; in AssignImageColors()
667 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 …]
Dthreshold.c329 p[center+i] <= mean ? 0 : QuantumRange),q); in AdaptiveThresholdImage()
472 q[i]=(Quantum) (pixel <= threshold ? 0 : QuantumRange); in BilevelImage()
583 threshold.red*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
584 threshold.green*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
585 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
586 threshold.black*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
587 threshold.alpha*=(MagickRealType) (QuantumRange/100.0); in BlackThresholdImage()
1417 QuantumRange/levels[n]); in OrderedDitherImage()
1716 threshold=(double) (QuantumRange* in RandomThresholdImage()
1718 q[i]=(double) q[i] <= threshold ? 0 : QuantumRange; in RandomThresholdImage()
[all …]
Dcomposite-private.h110 composite[i]=ClampToQuantum(QuantumRange*RoundToUnity(Sa+Da-Sa*Da)); in CompositePixelOver()
136 composite->alpha=(double) QuantumRange*RoundToUnity(gamma); in CompositePixelInfoOver()
159 composite->alpha=(double) QuantumRange*RoundToUnity(gamma); in CompositePixelInfoPlus()
/external/ImageMagick/tests/
Dvalidate.c64 #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/
Dcip.c237 ((((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()
Dcut.c445 if(PalHeader.MaxRed==0) PalHeader.MaxRed=(unsigned int) QuantumRange; /*avoid division by 0*/ in ReadCUTImage()
446 if(PalHeader.MaxGreen==0) PalHeader.MaxGreen=(unsigned int) QuantumRange; in ReadCUTImage()
447 if(PalHeader.MaxBlue==0) PalHeader.MaxBlue=(unsigned int) QuantumRange; in ReadCUTImage()
460 if (QuantumRange != (Quantum) PalHeader.MaxRed) in ReadCUTImage()
463 image->colormap[i].red*QuantumRange+(PalHeader.MaxRed>>1))/ in ReadCUTImage()
467 if (QuantumRange != (Quantum) PalHeader.MaxGreen) in ReadCUTImage()
470 … (((double) image->colormap[i].green*QuantumRange+(PalHeader.MaxGreen>>1))/PalHeader.MaxGreen); in ReadCUTImage()
473 if (QuantumRange != (Quantum) PalHeader.MaxBlue) in ReadCUTImage()
476 … (((double)image->colormap[i].blue*QuantumRange+(PalHeader.MaxBlue>>1))/PalHeader.MaxBlue); in ReadCUTImage()
575 image->colormap[1].blue=QuantumRange; in ReadCUTImage()
[all …]
Dpalm.c354 transpix.red=(double) (QuantumRange*ReadBlobByte(image)/31); in ReadPALMImage()
355 transpix.green=(double) (QuantumRange*ReadBlobByte(image)/63); in ReadPALMImage()
356 transpix.blue=(double) (QuantumRange*ReadBlobByte(image)/31); in ReadPALMImage()
484 SetPixelRed(image,(Quantum) ((QuantumRange*((color16 >> 11) & in ReadPALMImage()
486 SetPixelGreen(image,(Quantum) ((QuantumRange*((color16 >> 5) & in ReadPALMImage()
488 SetPixelBlue(image,(Quantum) ((QuantumRange*((color16 >> 0) & in ReadPALMImage()
872 (size_t) QuantumRange) << 11) | (((63*(size_t) in WritePALMImage()
873 GetPixelGreen(image,p))/(size_t) QuantumRange) << 5) | in WritePALMImage()
874 ((31*(size_t) GetPixelBlue(image,p))/(size_t) QuantumRange)); in WritePALMImage()
964 (void) WriteBlobByte(image,(unsigned char) ((31*transpix.red)/QuantumRange)); in WritePALMImage()
[all …]
Dhald.c154 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()
Drgf.c160 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()
Dmat.c202 f = (*p / MaxVal) * (QuantumRange-GetPixelRed(image,q)); in InsertComplexDoubleRow()
203 if (f + GetPixelRed(image,q) > QuantumRange) in InsertComplexDoubleRow()
204 SetPixelRed(image,QuantumRange,q); in InsertComplexDoubleRow()
220 f = (*p / MaxVal) * (QuantumRange-GetPixelBlue(image,q)); in InsertComplexDoubleRow()
221 if (f+GetPixelBlue(image,q) > QuantumRange) in InsertComplexDoubleRow()
222 SetPixelBlue(image,QuantumRange,q); in InsertComplexDoubleRow()
264 f = (*p / MaxVal) * (QuantumRange-GetPixelRed(image,q)); in InsertComplexFloatRow()
265 if (f+GetPixelRed(image,q) > QuantumRange) in InsertComplexFloatRow()
266 SetPixelRed(image,QuantumRange,q); in InsertComplexFloatRow()
282 f = (*p / MaxVal) * (QuantumRange - GetPixelBlue(image,q)); in InsertComplexFloatRow()
[all …]
Dhistogram.c241 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/
Dpixel-wand.c1275 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 …]
Dcompare.c1038 (void) FormatLocaleFile(stderr,"%g (%g)",QuantumRange*distortion, in CompareImagesCommand()
1092 QuantumRange*channel_distortion[RedPixelChannel], in CompareImagesCommand()
1095 QuantumRange*channel_distortion[GreenPixelChannel], in CompareImagesCommand()
1098 QuantumRange*channel_distortion[BluePixelChannel], in CompareImagesCommand()
1102 QuantumRange*channel_distortion[AlphaPixelChannel], in CompareImagesCommand()
1109 QuantumRange*channel_distortion[CyanPixelChannel], in CompareImagesCommand()
1112 QuantumRange*channel_distortion[MagentaPixelChannel], in CompareImagesCommand()
1115 QuantumRange*channel_distortion[YellowPixelChannel], in CompareImagesCommand()
1118 QuantumRange*channel_distortion[BlackPixelChannel], in CompareImagesCommand()
1122 QuantumRange*channel_distortion[AlphaPixelChannel], in CompareImagesCommand()
[all …]
/external/ImageMagick/Magick++/lib/
DColor.cpp310 if (alpha_ == QuantumRange) in quantumAlpha()
408 return(static_cast<Magick::Quantum>(double_*QuantumRange)); in scaleDoubleToQuantum()
414 return(static_cast<double>(quantum_)/QuantumRange); in scaleQuantumToDouble()
416 return(quantum_/QuantumRange); in scaleQuantumToDouble()
730 : Color((mono_ ? QuantumRange : 0),(mono_ ? QuantumRange : 0), in ColorMono()
731 (mono_ ? QuantumRange : 0)) in ColorMono()
752 quantumRed(mono_ ? QuantumRange : 0); in mono()
753 quantumGreen(mono_ ? QuantumRange : 0); in mono()
754 quantumBlue(mono_ ? QuantumRange : 0); in mono()
/external/ImageMagick/Magick++/demo/
Ddemo.cpp252 example.level( 0.20*QuantumRange, 0.90*QuantumRange, 1.20 ); in main()
258 example.levelChannel( RedChannel, 0.20*QuantumRange, 0.90*QuantumRange, 1.20 ); in main()
439 example.threshold( QuantumRange/2.0 ); in main()
445 example.randomThreshold( (0.3*QuantumRange), in main()
446 (0.85*QuantumRange) ); in main()

12345