Change coefficients to 4 digit precision only.

Need to match convention and sum up to 1.0 (previous set had a minor
10^(-10) overflow) Thanks to Campbell for taking notice.
This commit is contained in:
Antony Riakiotakis
2015-03-23 12:18:42 +01:00
parent 0884c174b3
commit 3c21885ec4
3 changed files with 5 additions and 5 deletions

View File

@@ -170,9 +170,9 @@ void FallbackImpl::configGetDefaultLumaCoefs(OCIO_ConstConfigRcPtr * /*config*/,
* system in place. * system in place.
*/ */
rgb[0] = 0.2126729f; rgb[0] = 0.2126f;
rgb[1] = 0.7151522f; rgb[1] = 0.7152f;
rgb[2] = 0.0721750f; rgb[2] = 0.0722f;
} }
int FallbackImpl::configGetNumLooks(OCIO_ConstConfigRcPtr * /*config*/) int FallbackImpl::configGetNumLooks(OCIO_ConstConfigRcPtr * /*config*/)

View File

@@ -6,7 +6,7 @@ ocio_profile_version: 1
search_path: luts search_path: luts
strictparsing: true strictparsing: true
luma: [0.2126729, 0.7151522, 0.0721750] luma: [0.2126, 0.7152, 0.0722]
description: RRT version ut33 description: RRT version ut33

View File

@@ -93,7 +93,7 @@ static int global_tot_looks = 0;
/* Set to ITU-BT.709 / sRGB primaries weight. Brute force stupid, but only /* Set to ITU-BT.709 / sRGB primaries weight. Brute force stupid, but only
* option with no colormanagement in place. * 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 /* lock used by pre-cached processors getters, so processor wouldn't
* be created several times * be created several times