Lines Matching refs:red
99 const double intensity,double *red,double *green,double *blue)
109 *red=intensity*(1.0+saturation*cos(h*(MagickPI/180.0))/cos((60.0-h)*
111 *green=3.0*intensity-*red-*blue;
117 *red=intensity*(1.0-saturation);
120 *blue=3.0*intensity-*red-*green;
128 *red=3.0*intensity-*green-*blue;
130 *red*=QuantumRange;
135 static void ConvertRGBToHSI(const double red,const double green,
142 *intensity=(QuantumScale*red+QuantumScale*green+QuantumScale*blue)/3.0;
149 *saturation=1.0-MagickMin(QuantumScale*red,MagickMin(QuantumScale*green,
151 alpha=0.5*(2.0*QuantumScale*red-QuantumScale*green-QuantumScale*blue);
159 const double value,double *red,double *green,double *blue)
177 *red=QuantumRange*(min+c);
184 *red=QuantumRange*(min+x);
191 *red=QuantumRange*min;
198 *red=QuantumRange*min;
205 *red=QuantumRange*(min+x);
212 *red=QuantumRange*(min+c);
219 *red=0.0;
226 static inline void ConvertRGBToXYZ(const double red,const double green,
234 r=QuantumScale*DecodePixelGamma(red);
267 static void ConvertRGBToLab(const double red,const double green,
275 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z);
308 double *red,double *green,double *blue)
318 *red=EncodePixelGamma(QuantumRange*r);
324 const double b,double *red,double *green,double *blue)
332 ConvertXYZToRGB(X,Y,Z,red,green,blue);
335 static void ConvertRGBToYPbPr(const double red,const double green,
338 *Y=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue);
339 *Pb=QuantumScale*((-0.1687367)*red-0.331264*green+0.5*blue)+0.5;
340 *Pr=QuantumScale*(0.5*red-0.418688*green-0.081312*blue)+0.5;
343 static void ConvertRGBToYCbCr(const double red,const double green,
346 ConvertRGBToYPbPr(red,green,blue,Y,Cb,Cr);
350 double *red,double *green,double *blue)
352 *red=QuantumRange*(0.99999999999914679361*Y-1.2188941887145875e-06*(Pb-0.5)+
361 const double Cr,double *red,double *green,double *blue)
363 ConvertYPbPrToRGB(Y,Cb,Cr,red,green,blue);
374 const double hue,double *red,double *green,double *blue)
382 ConvertXYZToRGB(X,Y,Z,red,green,blue);
385 static void ConvertRGBToHSV(const double red,const double green,
393 max=MagickMax(QuantumScale*red,MagickMax(QuantumScale*green,
395 min=MagickMin(QuantumScale*red,MagickMin(QuantumScale*green,
405 if (max == (QuantumScale*red))
413 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c;
415 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c;
434 static void ConvertRGBToLCHab(const double red,const double green,
442 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z);
455 const double S,double *red,double *green,double *blue)
463 ConvertXYZToRGB(X,Y,Z,red,green,blue);
474 static void ConvertRGBToLMS(const double red,const double green,
482 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z);
504 static void ConvertRGBToLuv(const double red,const double green,
512 ConvertRGBToXYZ(red,green,blue,&X,&Y,&Z);
531 const double v,double *red,double *green,double *blue)
539 ConvertXYZToRGB(X,Y,Z,red,green,blue);
542 static void ConvertRGBToYDbDr(const double red,const double green,
545 *Y=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue);
546 *Db=QuantumScale*(-0.450*red-0.883*green+1.333*blue)+0.5;
547 *Dr=QuantumScale*(-1.333*red+1.116*green+0.217*blue)+0.5;
551 double *red,double *green,double *blue)
553 *red=QuantumRange*(Y+9.2303716147657e-05*(Db-0.5)-0.52591263066186533*
561 static void ConvertRGBToYIQ(const double red,const double green,
564 *Y=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue);
565 *I=QuantumScale*(0.595716*red-0.274453*green-0.321263*blue)+0.5;
566 *Q=QuantumScale*(0.211456*red-0.522591*green+0.311135*blue)+0.5;
570 double *red,double *green,double *blue)
572 *red=QuantumRange*(Y+0.9562957197589482261*(I-0.5)+0.6210244164652610754*
580 static void ConvertRGBToYUV(const double red,const double green,
583 *Y=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue);
584 *U=QuantumScale*((-0.147)*red-0.289*green+0.436*blue)+0.5;
585 *V=QuantumScale*(0.615*red-0.515*green-0.100*blue)+0.5;
589 double *red,double *green,double *blue)
591 *red=QuantumRange*(Y-3.945707070708279e-05*(U-0.5)+1.1398279671717170825*