/*
- Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
+ Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
#ifndef _MAGICKCORE_GEM_PRIVATE_H
#define _MAGICKCORE_GEM_PRIVATE_H
+#include "MagickCore/pixel-private.h"
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
-#include "MagickCore/pixel-private.h"
-
#define D65X 0.950456
#define D65Y 1.0
#define D65Z 1.088754
*v=(*v+140.0)/262.0;
}
-static inline void ConvertXYZToRGB(const double x,const double y,const double z,
+static inline void ConvertXYZToRGB(const double X,const double Y,const double Z,
double *red,double *green,double *blue)
{
double
assert(red != (double *) NULL);
assert(green != (double *) NULL);
assert(blue != (double *) NULL);
- r=3.2406*x-1.5372*y-0.4986*z;
- g=(-0.9689*x+1.8758*y+0.0415*z);
- b=0.0557*x-0.2040*y+1.0570*z;
+ r=3.2406*X-1.5372*Y-0.4986*Z;
+ g=(-0.9689)*X+1.8758*Y+0.0415*Z;
+ b=0.0557*X-0.2040*Y+1.0570*Z;
*red=EncodePixelGamma(QuantumRange*r);
*green=EncodePixelGamma(QuantumRange*g);
*blue=EncodePixelGamma(QuantumRange*b);