From: cristy Date: Wed, 29 Aug 2012 12:55:46 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f9f93ad84485e4229ecb6e951168de13c8de9c2;p=imagemagick --- diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h index b6575f4d4..585752065 100644 --- a/MagickCore/pixel-accessor.h +++ b/MagickCore/pixel-accessor.h @@ -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)); }