Change coefficients to 4 digit precision only.
authorAntony Riakiotakis <kalast@gmail.com>
Mon, 23 Mar 2015 11:18:42 +0000 (12:18 +0100)
committerAntony Riakiotakis <kalast@gmail.com>
Mon, 23 Mar 2015 11:18:42 +0000 (12:18 +0100)
Need to match convention and sum up to 1.0 (previous set had a minor
10^(-10) overflow) Thanks to Campbell for taking notice.

intern/opencolorio/fallback_impl.cc
release/datafiles/colormanagement/config.ocio
source/blender/imbuf/intern/colormanagement.c

index 136f427ee0e1266a2df9df4afedc976ad5404f5a..7ba540a7d77e580dd117bce4a0b9303e7a4e806d 100644 (file)
@@ -170,9 +170,9 @@ void FallbackImpl::configGetDefaultLumaCoefs(OCIO_ConstConfigRcPtr * /*config*/,
  * system in place.
  */
 
rgb[0] = 0.2126729f;
rgb[1] = 0.7151522f;
rgb[2] = 0.0721750f;
      rgb[0] = 0.2126f;
      rgb[1] = 0.7152f;
      rgb[2] = 0.0722f;
 }
 
 int FallbackImpl::configGetNumLooks(OCIO_ConstConfigRcPtr * /*config*/)
index 7ecc9768d5744ba2b5deaacd87b5da7adfebad3f..1cf9a3bb36e28640fbfc36bd08b4782861a62649 100644 (file)
@@ -6,7 +6,7 @@ ocio_profile_version: 1
 
 search_path: luts
 strictparsing: true
-luma: [0.2126729, 0.7151522, 0.0721750]
+luma: [0.2126, 0.7152, 0.0722]
 
 description: RRT version ut33
 
index a1b7a14c9fe7508a450c93f7f225c7f139ea8a8e..20baa1614c91faa09c2bbe4abea54fc8bfbb228c 100644 (file)
@@ -93,7 +93,7 @@ static int global_tot_looks = 0;
 /* Set to ITU-BT.709 / sRGB primaries weight. Brute force stupid, but only
  * option with no colormanagement in place.
  */
-static float luma_coefficients[3] = { 0.2126729f, 0.7151522f, 0.0721750f };
+static float luma_coefficients[3] = { 0.2126f, 0.7152f, 0.0722f };
 
 /* lock used by pre-cached processors getters, so processor wouldn't
  * be created several times