From: cristy Date: Mon, 6 May 2013 12:06:06 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3728 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b8a4976d73e34de7c3d3038618b9889a223a281;p=imagemagick --- diff --git a/MagickCore/colorspace.c b/MagickCore/colorspace.c index cb71e2de9..fc6a267c0 100644 --- a/MagickCore/colorspace.c +++ b/MagickCore/colorspace.c @@ -118,9 +118,6 @@ static MagickBooleanType static inline void ConvertRGBToCMY(const double red,const double green, const double blue,double *cyan,double *magenta,double *yellow) { - /* - Convert RGB to CMY colorspace. - */ *cyan=QuantumScale*(QuantumRange-red); *magenta=QuantumScale*(QuantumRange-green); *yellow=QuantumScale*(QuantumRange-blue); @@ -129,9 +126,6 @@ static inline void ConvertRGBToCMY(const double red,const double green, static inline void ConvertXYZToLMS(const double x,const double y, const double z,double *L,double *M,double *S) { - /* - Convert XYZ to LMS colorspace. - */ *L=0.7328*x+0.4296*y-0.1624*z; *M=(-0.7036*x+1.6975*y+0.0061*z); *S=0.0030*x+0.0136*y+0.9834*z; @@ -176,9 +170,6 @@ static void ConvertRGBToLuv(const double red,const double green, static void ConvertRGBToYIQ(const double red,const double green, const double blue,double *Y,double *I,double *Q) { - /* - Convert RGB to YIQ colorspace. - */ *Y=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); *I=QuantumScale*(0.595716*red-0.274453*green-0.321263*blue)+0.5; *Q=QuantumScale*(0.211456*red-0.522591*green+0.311135*blue)+0.5; @@ -187,9 +178,6 @@ static void ConvertRGBToYIQ(const double red,const double green, static void ConvertRGBToYPbPr(const double red,const double green, const double blue,double *Y,double *Pb,double *Pr) { - /* - Convert RGB to YPbPr colorspace. - */ *Y=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); *Pb=QuantumScale*((-0.1687367)*red-0.331264*green+0.5*blue)+0.5; *Pr=QuantumScale*(0.5*red-0.418688*green-0.081312*blue)+0.5; @@ -198,18 +186,12 @@ static void ConvertRGBToYPbPr(const double red,const double green, static void ConvertRGBToYCbCr(const double red,const double green, const double blue,double *Y,double *Cb,double *Cr) { - /* - Convert RGB to YCbCr colorspace. - */ ConvertRGBToYPbPr(red,green,blue,Y,Cb,Cr); } static void ConvertRGBToYUV(const double red,const double green, const double blue,double *Y,double *U,double *V) { - /* - Convert RGB to YUV colorspace. - */ *Y=QuantumScale*(0.298839*red+0.586811*green+0.114350*blue); *U=QuantumScale*((-0.147)*red-0.289*green+0.436*blue)+0.5; *V=QuantumScale*(0.615*red-0.515*green-0.100*blue)+0.5; @@ -1183,9 +1165,6 @@ MagickExport MagickBooleanType TransformImageColorspace(Image *image, static inline void ConvertCMYToRGB(const double cyan,const double magenta, const double yellow,double *red,double *green,double *blue) { - /* - Convert CMY to RGB colorspace. - */ *red=QuantumRange*(1.0-cyan); *green=QuantumRange*(1.0-magenta); *blue=QuantumRange*(1.0-yellow); @@ -1257,9 +1236,6 @@ static inline void ConvertLabToRGB(const double L,const double a, static void ConvertYPbPrToRGB(const double Y,const double Pb,const double Pr, double *red,double *green,double *blue) { - /* - Convert YPbPr to RGB colorspace. - */ *red=QuantumRange*(0.99999999999914679361*Y-1.2188941887145875e-06*(Pb-0.5)+ 1.4019995886561440468*(Pr-0.5)); *green=QuantumRange*(0.99999975910502514331*Y-0.34413567816504303521*(Pb-0.5)- @@ -1271,18 +1247,12 @@ static void ConvertYPbPrToRGB(const double Y,const double Pb,const double Pr, static void ConvertYCbCrToRGB(const double Y,const double Cb, const double Cr,double *red,double *green,double *blue) { - /* - Convert YCbCr to RGB colorspace. - */ ConvertYPbPrToRGB(Y,Cb,Cr,red,green,blue); } static void ConvertYIQToRGB(const double Y,const double I,const double Q, double *red,double *green,double *blue) { - /* - Convert YIQ to RGB colorspace. - */ *red=QuantumRange*(Y+0.9562957197589482261*(I-0.5)+0.6210244164652610754* (Q-0.5)); *green=QuantumRange*(Y-0.2721220993185104464*(I-0.5)-0.6473805968256950427* @@ -1294,9 +1264,6 @@ static void ConvertYIQToRGB(const double Y,const double I,const double Q, static void ConvertYUVToRGB(const double Y,const double U,const double V, double *red,double *green,double *blue) { - /* - Convert YUV to RGB colorspace. - */ *red=QuantumRange*(Y-3.945707070708279e-05*(U-0.5)+1.1398279671717170825* (V-0.5)); *green=QuantumRange*(Y-0.3946101641414141437*(U-0.5)-0.5805003156565656797*