]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 29 Aug 2012 14:41:23 +0000 (14:41 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 29 Aug 2012 14:41:23 +0000 (14:41 +0000)
MagickCore/colorspace.c

index cb7ba269ad08589b37231ba2c28ba2f4a3501d67..65c152f614c0e37ac3fcd62fb89e37aa27267f8d 100644 (file)
@@ -1175,9 +1175,9 @@ static MagickBooleanType sRGBTransformImage(Image *image,
       /*
         Initialize YCbCr tables (ITU-R BT.601):
 
-          Y =  0.298839*R+0.586811*G+0.114350*B
-          Cb= -0.168736*R-0.331264*G+0.500000*B
-          Cr=  0.500000*R-0.418688*G-0.081312*B
+          Y =  0.2988390*R+0.5868110*G+0.1143500*B
+          Cb= -0.1687367*R-0.3312640*G+0.5000000*B
+          Cr=  0.5000000*R-0.4186880*G-0.0813120*B
 
         Cb and Cr, normally -0.5 through 0.5, are normalized to the range 0
         through QuantumRange.
@@ -1193,7 +1193,7 @@ static MagickBooleanType sRGBTransformImage(Image *image,
         x_map[i].x=0.298839*(double) i;
         y_map[i].x=0.586811*(double) i;
         z_map[i].x=0.114350*(double) i;
-        x_map[i].y=(-0.168730)*(double) i;
+        x_map[i].y=(-0.1687367)*(double) i;
         y_map[i].y=(-0.331264)*(double) i;
         z_map[i].y=0.500000*(double) i;
         x_map[i].z=0.500000*(double) i;