Lines Matching refs:red
89 const double luma,double *red,double *green,double *blue) in ConvertHCLToRGB() argument
103 assert(red != (double *) NULL); in ConvertHCLToRGB()
148 *red=QuantumRange*(r+m); in ConvertHCLToRGB()
182 const double luma,double *red,double *green,double *blue) in ConvertHCLpToRGB() argument
197 assert(red != (double *) NULL); in ConvertHCLpToRGB()
254 *red=QuantumRange*(z*r+m); in ConvertHCLpToRGB()
287 const double brightness,double *red,double *green,double *blue) in ConvertHSBToRGB() argument
299 assert(red != (double *) NULL); in ConvertHSBToRGB()
304 *red=QuantumRange*brightness; in ConvertHSBToRGB()
305 *green=(*red); in ConvertHSBToRGB()
306 *blue=(*red); in ConvertHSBToRGB()
319 *red=QuantumRange*brightness; in ConvertHSBToRGB()
326 *red=QuantumRange*q; in ConvertHSBToRGB()
333 *red=QuantumRange*p; in ConvertHSBToRGB()
340 *red=QuantumRange*p; in ConvertHSBToRGB()
347 *red=QuantumRange*t; in ConvertHSBToRGB()
354 *red=QuantumRange*brightness; in ConvertHSBToRGB()
390 const double intensity,double *red,double *green,double *blue) in ConvertHSIToRGB() argument
401 assert(red != (double *) NULL); in ConvertHSIToRGB()
430 *red=QuantumRange*r; in ConvertHSIToRGB()
463 const double lightness,double *red,double *green,double *blue) in ConvertHSLToRGB() argument
474 assert(red != (double *) NULL); in ConvertHSLToRGB()
490 *red=QuantumRange*(min+c); in ConvertHSLToRGB()
497 *red=QuantumRange*(min+x); in ConvertHSLToRGB()
504 *red=QuantumRange*min; in ConvertHSLToRGB()
511 *red=QuantumRange*min; in ConvertHSLToRGB()
518 *red=QuantumRange*(min+x); in ConvertHSLToRGB()
525 *red=QuantumRange*(min+c); in ConvertHSLToRGB()
532 *red=0.0; in ConvertHSLToRGB()
567 const double value,double *red,double *green,double *blue) in ConvertHSVToRGB() argument
578 assert(red != (double *) NULL); in ConvertHSVToRGB()
591 *red=QuantumRange*(min+c); in ConvertHSVToRGB()
598 *red=QuantumRange*(min+x); in ConvertHSVToRGB()
605 *red=QuantumRange*min; in ConvertHSVToRGB()
612 *red=QuantumRange*min; in ConvertHSVToRGB()
619 *red=QuantumRange*(min+x); in ConvertHSVToRGB()
626 *red=QuantumRange*(min+c); in ConvertHSVToRGB()
633 *red=0.0; in ConvertHSVToRGB()
668 const double blackness,double *red,double *green,double *blue) in ConvertHWBToRGB() argument
684 assert(red != (double *) NULL); in ConvertHWBToRGB()
690 *red=QuantumRange*v; in ConvertHWBToRGB()
711 *red=QuantumRange*r; in ConvertHWBToRGB()
752 const double hue,double *red,double *green,double *blue) in ConvertLCHabToRGB() argument
762 assert(red != (double *) NULL); in ConvertLCHabToRGB()
766 ConvertXYZToRGB(X,Y,Z,red,green,blue); in ConvertLCHabToRGB()
805 const double hue,double *red,double *green,double *blue) in ConvertLCHuvToRGB() argument
815 assert(red != (double *) NULL); in ConvertLCHuvToRGB()
819 ConvertXYZToRGB(X,Y,Z,red,green,blue); in ConvertLCHuvToRGB()
850 MagickPrivate void ConvertRGBToHCL(const double red,const double green, in ConvertRGBToHCL() argument
864 max=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHCL()
865 c=max-(double) MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCL()
870 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHCL()
874 h=((blue-red)/c)+2.0; in ConvertRGBToHCL()
877 h=((red-green)/c)+4.0; in ConvertRGBToHCL()
880 *luma=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); in ConvertRGBToHCL()
911 MagickPrivate void ConvertRGBToHCLp(const double red,const double green, in ConvertRGBToHCLp() argument
925 max=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHCLp()
926 c=max-MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHCLp()
931 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHCLp()
935 h=((blue-red)/c)+2.0; in ConvertRGBToHCLp()
938 h=((red-green)/c)+4.0; in ConvertRGBToHCLp()
941 *luma=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); in ConvertRGBToHCLp()
972 MagickPrivate void ConvertRGBToHSB(const double red,const double green, in ConvertRGBToHSB() argument
989 min=red < green ? red : green; in ConvertRGBToHSB()
992 max=red > green ? red : green; in ConvertRGBToHSB()
1002 if (fabs(red-max) < MagickEpsilon) in ConvertRGBToHSB()
1006 *hue=2.0+(blue-red)/delta; in ConvertRGBToHSB()
1008 *hue=4.0+(red-green)/delta; in ConvertRGBToHSB()
1042 MagickPrivate void ConvertRGBToHSI(const double red,const double green, in ConvertRGBToHSI() argument
1055 *intensity=(QuantumScale*red+QuantumScale*green+QuantumScale*blue)/3.0; in ConvertRGBToHSI()
1062 *saturation=1.0-MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSI()
1064 alpha=0.5*(2.0*QuantumScale*red-QuantumScale*green-QuantumScale*blue); in ConvertRGBToHSI()
1099 MagickExport void ConvertRGBToHSL(const double red,const double green, in ConvertRGBToHSL() argument
1113 max=MagickMax(QuantumScale*red,MagickMax(QuantumScale*green, in ConvertRGBToHSL()
1115 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSL()
1125 if (fabs(max-QuantumScale*red) < MagickEpsilon) in ConvertRGBToHSL()
1133 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c; in ConvertRGBToHSL()
1135 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c; in ConvertRGBToHSL()
1171 MagickPrivate void ConvertRGBToHSV(const double red,const double green, in ConvertRGBToHSV() argument
1185 max=MagickMax(QuantumScale*red,MagickMax(QuantumScale*green, in ConvertRGBToHSV()
1187 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green, in ConvertRGBToHSV()
1197 if (fabs(max-QuantumScale*red) < MagickEpsilon) in ConvertRGBToHSV()
1205 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c; in ConvertRGBToHSV()
1207 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c; in ConvertRGBToHSV()
1240 MagickPrivate void ConvertRGBToHWB(const double red,const double green, in ConvertRGBToHWB() argument
1255 w=MagickMin(red,MagickMin(green,blue)); in ConvertRGBToHWB()
1256 v=MagickMax(red,MagickMax(green,blue)); in ConvertRGBToHWB()
1264 f=(fabs(red-w) < MagickEpsilon) ? green-blue : in ConvertRGBToHWB()
1265 ((fabs(green-w) < MagickEpsilon) ? blue-red : red-green); in ConvertRGBToHWB()
1266 p=(fabs(red-w) < MagickEpsilon) ? 3.0 : in ConvertRGBToHWB()
1314 MagickPrivate void ConvertRGBToLCHab(const double red,const double green, in ConvertRGBToLCHab() argument
1328 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z); in ConvertRGBToLCHab()
1375 MagickPrivate void ConvertRGBToLCHuv(const double red,const double green, in ConvertRGBToLCHuv() argument
1389 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z); in ConvertRGBToLCHuv()