From: cristy Date: Wed, 29 Aug 2012 14:41:23 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5034 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e7a882c8ba6f681384a6f930e513d181fe3caa6;p=imagemagick --- diff --git a/MagickCore/colorspace.c b/MagickCore/colorspace.c index cb7ba269a..65c152f61 100644 --- a/MagickCore/colorspace.c +++ b/MagickCore/colorspace.c @@ -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;