Home
last modified time | relevance | path

Searched refs:MagickRealType (Results 1 – 25 of 61) sorted by relevance

123

/external/ImageMagick/MagickCore/
Dpixel-accessor.h36 static inline Quantum ClampPixel(const MagickRealType pixel) in ClampPixel()
40 if (pixel >= (MagickRealType) QuantumRange) in ClampPixel()
209 static inline MagickRealType GetPixelInfoChannel( in GetPixelInfoChannel()
220 default: return((MagickRealType) 0.0); in GetPixelInfoChannel()
238 static inline MagickRealType GetPixelInfoLuma( in GetPixelInfoLuma()
241 MagickRealType in GetPixelInfoLuma()
246 intensity=(MagickRealType) (0.212656f*pixel->red+0.715158f*pixel->green+ in GetPixelInfoLuma()
250 intensity=(MagickRealType) (0.212656f*EncodePixelGamma(pixel->red)+ in GetPixelInfoLuma()
256 static inline MagickRealType GetPixelInfoLuminance( in GetPixelInfoLuminance()
259 MagickRealType in GetPixelInfoLuminance()
[all …]
Dcolorspace.c77 MagickRealType
717 red=(double) DecodePixelGamma((MagickRealType) in sRGBTransformImage()
719 green=(double) DecodePixelGamma((MagickRealType) in sRGBTransformImage()
721 blue=(double) DecodePixelGamma((MagickRealType) in sRGBTransformImage()
784 red=DecodePixelGamma((MagickRealType) GetPixelRed(image,q)); in sRGBTransformImage()
785 green=DecodePixelGamma((MagickRealType) GetPixelGreen(image,q)); in sRGBTransformImage()
786 blue=DecodePixelGamma((MagickRealType) GetPixelBlue(image,q)); in sRGBTransformImage()
848 x_map[i].x=(MagickRealType) (0.33333*(double) i); in sRGBTransformImage()
849 y_map[i].x=(MagickRealType) (0.33334*(double) i); in sRGBTransformImage()
850 z_map[i].x=(MagickRealType) (0.33333*(double) i); in sRGBTransformImage()
[all …]
Dcomposite.c181 static void HCLComposite(const MagickRealType hue,const MagickRealType chroma, in HCLComposite()
182 const MagickRealType luma,MagickRealType *red,MagickRealType *green, in HCLComposite()
183 MagickRealType *blue) in HCLComposite()
185 MagickRealType in HCLComposite()
197 assert(red != (MagickRealType *) NULL); in HCLComposite()
198 assert(green != (MagickRealType *) NULL); in HCLComposite()
199 assert(blue != (MagickRealType *) NULL); in HCLComposite()
247 static void CompositeHCL(const MagickRealType red,const MagickRealType green, in CompositeHCL()
248 const MagickRealType blue,MagickRealType *hue,MagickRealType *chroma, in CompositeHCL()
249 MagickRealType *luma) in CompositeHCL()
[all …]
Dcolorspace-private.h42 MagickRealType in ConvertRGBToCMYK()
67 pixel->black=(MagickRealType) QuantumRange; in ConvertRGBToCMYK()
70 cyan=(MagickRealType) (1.0-red); in ConvertRGBToCMYK()
71 magenta=(MagickRealType) (1.0-green); in ConvertRGBToCMYK()
72 yellow=(MagickRealType) (1.0-blue); in ConvertRGBToCMYK()
78 cyan=(MagickRealType) ((cyan-black)/(1.0-black)); in ConvertRGBToCMYK()
79 magenta=(MagickRealType) ((magenta-black)/(1.0-black)); in ConvertRGBToCMYK()
80 yellow=(MagickRealType) ((yellow-black)/(1.0-black)); in ConvertRGBToCMYK()
Dpixel.h190 MagickRealType
238 extern MagickExport MagickRealType
252 extern MagickExport MagickRealType
253 DecodePixelGamma(const MagickRealType) magick_hot_spot,
254 EncodePixelGamma(const MagickRealType) magick_hot_spot;
Dmorphology.c314 kernel->values=(MagickRealType *) MagickAssumeAligned(AcquireAlignedMemory( in ParseKernelArray()
316 if (kernel->values == (MagickRealType *) NULL) in ParseKernelArray()
1037 kernel->values=(MagickRealType *) MagickAssumeAligned( in AcquireKernelBuiltIn()
1039 if (kernel->values == (MagickRealType *) NULL) in AcquireKernelBuiltIn()
1061 kernel->values=(MagickRealType *) MagickAssumeAligned( in AcquireKernelBuiltIn()
1064 if (kernel->values == (MagickRealType *) NULL) in AcquireKernelBuiltIn()
1153 kernel->values=(MagickRealType *) MagickAssumeAligned( in AcquireKernelBuiltIn()
1156 if (kernel->values == (MagickRealType *) NULL) in AcquireKernelBuiltIn()
1240 kernel->values=(MagickRealType *) MagickAssumeAligned( in AcquireKernelBuiltIn()
1243 if (kernel->values == (MagickRealType *) NULL) in AcquireKernelBuiltIn()
[all …]
Deffect.c905 MagickRealType in Hull()
916 v=(MagickRealType) p[i]; in Hull()
917 if ((MagickRealType) r[i] >= (v+ScaleCharToQuantum(2))) in Hull()
925 v=(MagickRealType) p[i]; in Hull()
926 if ((MagickRealType) r[i] <= (v-ScaleCharToQuantum(2))) in Hull()
946 MagickRealType in Hull()
953 v=(MagickRealType) q[i]; in Hull()
954 if (((MagickRealType) s[i] >= (v+ScaleCharToQuantum(2))) && in Hull()
955 ((MagickRealType) r[i] > v)) in Hull()
963 v=(MagickRealType) q[i]; in Hull()
[all …]
Dquantum.h84 static inline Quantum ClampToQuantum(const MagickRealType value) in ClampToQuantum()
91 if (value >= (MagickRealType) QuantumRange) in ClampToQuantum()
Dquantum-private.h354 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
455 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
548 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
639 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
Dshear.c415 if (((MagickRealType) GetPixelRed(image,p) < threshold) || in RadonTransform()
416 ((MagickRealType) GetPixelGreen(image,p) < threshold) || in RadonTransform()
417 ((MagickRealType) GetPixelBlue(image,p) < threshold)) in RadonTransform()
472 if (((MagickRealType) GetPixelRed(image,p) < threshold) || in RadonTransform()
473 ((MagickRealType) GetPixelGreen(image,p) < threshold) || in RadonTransform()
474 ((MagickRealType) GetPixelBlue(image,p) < threshold)) in RadonTransform()
1639 status=CropToFitImage(&shear_image,shear.x,shear.y,(MagickRealType) in ShearImage()
1640 image->columns,(MagickRealType) image->rows,MagickFalse,exception); in ShearImage()
1699 MagickRealType in ShearRotateImage()
1796 status=CropToFitImage(&rotate_image,shear.x,shear.y,(MagickRealType) width, in ShearRotateImage()
[all …]
Denhance.c1445 image->colormap[i].red=(MagickRealType) red; in ContrastImage()
1446 image->colormap[i].green=(MagickRealType) green; in ContrastImage()
1447 image->colormap[i].blue=(MagickRealType) blue; in ContrastImage()
2406 q[j]=gamma_map[ScaleQuantumToMap(ClampToQuantum((MagickRealType) in GammaImage()
2528 MagickRealType in GrayscaleImage()
2534 red=(MagickRealType) GetPixelRed(image,q); in GrayscaleImage()
2535 green=(MagickRealType) GetPixelGreen(image,q); in GrayscaleImage()
2536 blue=(MagickRealType) GetPixelBlue(image,q); in GrayscaleImage()
2558 intensity=(MagickRealType) (((double) red*red+green*green+ in GrayscaleImage()
2609 intensity=(MagickRealType) (sqrt((double) red*red+green*green+ in GrayscaleImage()
[all …]
Dcolor-private.h41 fuzz=(double) MagickMax(MagickMax(p->fuzz,q->fuzz),(MagickRealType) in GetFuzzyColorDistance()
Dthreshold.c981 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()
1159 q[i]=ClampPixel((MagickRealType) q[i]); in ClampImage()
2360 threshold.red*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2361 threshold.green*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2362 threshold.blue*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
2363 threshold.black*=(MagickRealType) (QuantumRange/100.0); in WhiteThresholdImage()
[all …]
Dcolor.c2438 color->red=(double) ClampToQuantum((MagickRealType) (scale* in QueryColorCompliance()
2441 color->green=(double) ClampToQuantum((MagickRealType) (scale* in QueryColorCompliance()
2444 color->blue=(double) ClampToQuantum((MagickRealType) (scale* in QueryColorCompliance()
2450 color->black=(double) ClampToQuantum((MagickRealType) (scale* in QueryColorCompliance()
2463 color->green=(MagickRealType) ClampToQuantum((MagickRealType) in QueryColorCompliance()
2466 color->blue=(MagickRealType) ClampToQuantum((MagickRealType) in QueryColorCompliance()
2525 color->red=(MagickRealType) red; in QueryColorCompliance()
2526 color->green=(MagickRealType) green; in QueryColorCompliance()
2527 color->blue=(MagickRealType) blue; in QueryColorCompliance()
/external/ImageMagick/coders/
Dtga.c329 pixel.alpha=(MagickRealType) OpaqueAlpha; in ReadTGAImage()
351 pixel.red=(MagickRealType) ScaleCharToQuantum((unsigned char) in ReadTGAImage()
369 pixel.red=(MagickRealType) ScaleAnyToQuantum(1UL*(k & 0x7c) >> 2, in ReadTGAImage()
371 pixel.green=(MagickRealType) ScaleAnyToQuantum((1UL*(k & 0x03) in ReadTGAImage()
373 pixel.blue=(MagickRealType) ScaleAnyToQuantum(1UL*(j & 0x1f),range); in ReadTGAImage()
381 pixel.blue=(MagickRealType) ScaleCharToQuantum((unsigned char) in ReadTGAImage()
383 pixel.green=(MagickRealType) ScaleCharToQuantum((unsigned char) in ReadTGAImage()
385 pixel.red=(MagickRealType) ScaleCharToQuantum((unsigned char) in ReadTGAImage()
394 pixel.blue=(MagickRealType) ScaleCharToQuantum((unsigned char) in ReadTGAImage()
396 pixel.green=(MagickRealType) ScaleCharToQuantum((unsigned char) in ReadTGAImage()
[all …]
Dmiff.c226 pixel->index=(MagickRealType) ConstrainColormapIndex(image,(ssize_t) in PushRunlengthPacket()
234 pixel->index=(MagickRealType) ConstrainColormapIndex(image,(ssize_t) in PushRunlengthPacket()
241 pixel->index=(MagickRealType) ConstrainColormapIndex(image, in PushRunlengthPacket()
260 pixel->alpha=(MagickRealType) ScaleCharToQuantum(quantum); in PushRunlengthPacket()
272 pixel->alpha=(MagickRealType) (quantum >> (image->depth- in PushRunlengthPacket()
285 pixel->alpha=(MagickRealType) (quantum >> (image->depth- in PushRunlengthPacket()
305 pixel->red=(MagickRealType) ScaleCharToQuantum(quantum); in PushRunlengthPacket()
311 pixel->green=(MagickRealType) ScaleCharToQuantum(quantum); in PushRunlengthPacket()
313 pixel->blue=(MagickRealType) ScaleCharToQuantum(quantum); in PushRunlengthPacket()
318 pixel->black=(MagickRealType) ScaleCharToQuantum(quantum); in PushRunlengthPacket()
[all …]
Dpalm.c372 image->colormap[index].red=(MagickRealType) in ReadPALMImage()
374 image->colormap[index].green=(MagickRealType) in ReadPALMImage()
376 image->colormap[index].blue=(MagickRealType) in ReadPALMImage()
384 image->colormap[index].red=(MagickRealType) in ReadPALMImage()
386 image->colormap[index].green=(MagickRealType) in ReadPALMImage()
388 image->colormap[index].blue=(MagickRealType) in ReadPALMImage()
913 transpix.red=(MagickRealType) GetPixelRed(image,p); in WritePALMImage()
914 transpix.green=(MagickRealType) GetPixelGreen(image,p); in WritePALMImage()
915 transpix.blue=(MagickRealType) GetPixelBlue(image,p); in WritePALMImage()
916 transpix.alpha=(MagickRealType) GetPixelAlpha(image,p); in WritePALMImage()
Drle.c590 image->colormap[i].red=(MagickRealType) in ReadRLEImage()
592 image->colormap[i].green=(MagickRealType) in ReadRLEImage()
594 image->colormap[i].blue=(MagickRealType) in ReadRLEImage()
601 image->colormap[i].red=(MagickRealType) in ReadRLEImage()
603 image->colormap[i].green=(MagickRealType) in ReadRLEImage()
605 image->colormap[i].blue=(MagickRealType) in ReadRLEImage()
Dmpc.c929 image->colormap[i].red=(MagickRealType) in ReadMPCImage()
932 image->colormap[i].green=(MagickRealType) in ReadMPCImage()
935 image->colormap[i].blue=(MagickRealType) in ReadMPCImage()
948 image->colormap[i].red=(MagickRealType) in ReadMPCImage()
951 image->colormap[i].green=(MagickRealType) in ReadMPCImage()
954 image->colormap[i].blue=(MagickRealType) in ReadMPCImage()
967 image->colormap[i].red=(MagickRealType) in ReadMPCImage()
970 image->colormap[i].green=(MagickRealType) in ReadMPCImage()
973 image->colormap[i].blue=(MagickRealType) in ReadMPCImage()
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()
Dtxt.c566 pixel.red=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (red+0.5), in ReadTXTImage()
568 pixel.green=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (green+0.5), in ReadTXTImage()
570 pixel.blue=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (blue+0.5), in ReadTXTImage()
572 pixel.black=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (black+0.5), in ReadTXTImage()
574 pixel.alpha=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (alpha+0.5), in ReadTXTImage()
Dxbm.c289 image->colormap[0].red=(MagickRealType) QuantumRange; in ReadXBMImage()
290 image->colormap[0].green=(MagickRealType) QuantumRange; in ReadXBMImage()
291 image->colormap[0].blue=(MagickRealType) QuantumRange; in ReadXBMImage()
/external/ImageMagick/www/source/
Dcontrast.c8 #define QuantumScale ((MagickRealType) 1.0/(MagickRealType) QuantumRange) in main()
/external/ImageMagick/www/source/wand/
Dsigmoidal-contrast.c9 #define QuantumScale ((MagickRealType) 1.0/(MagickRealType) QuantumRange) in SigmoidalContrast()
/external/ImageMagick/www/source/core/
Dsigmoidal-contrast.c9 #define QuantumScale ((MagickRealType) 1.0/(MagickRealType) QuantumRange) in SigmoidalContrast()

123