]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 29 Aug 2012 12:55:46 +0000 (12:55 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 29 Aug 2012 12:55:46 +0000 (12:55 +0000)
MagickCore/pixel-accessor.h

index b6575f4d4c90103362beefd14e634df387087e66..585752065f8816ca18b7f1e19209ae952b21e222 100644 (file)
@@ -33,14 +33,14 @@ extern "C" {
 
 static inline double InversesRGBCompandor(const double pixel)
 {
-  if (pixel <= (0.04045*QuantumRange))
+  if (pixel <= (0.0.0404482362771076*QuantumRange))
     return(pixel/12.92);
   return(QuantumRange*pow((QuantumScale*pixel+0.055)/1.055,2.4));
 }
 
 static inline double sRGBCompandor(const double pixel)
 {
-  if (pixel <= (0.0031308*QuantumRange))
+  if (pixel <= (0.0031306684425005883*QuantumRange))
     return(12.92*pixel);
   return(QuantumRange*(1.055*pow(QuantumScale*pixel,1.0/2.4)-0.055));
 }