From 516185e8542092bcd40d2db16758c5c84a13e7c8 Mon Sep 17 00:00:00 2001 From: Thomas Mansencal Date: Fri, 16 Jan 2015 20:02:59 +0100 Subject: [PATCH] Fix "Sony" "S-Log" related computations. --- aces_1.0.0/python/aces_ocio/create_sony_colorspaces.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/aces_1.0.0/python/aces_ocio/create_sony_colorspaces.py b/aces_1.0.0/python/aces_ocio/create_sony_colorspaces.py index db67cb1..3867e87 100644 --- a/aces_1.0.0/python/aces_ocio/create_sony_colorspaces.py +++ b/aces_1.0.0/python/aces_ocio/create_sony_colorspaces.py @@ -61,9 +61,9 @@ def create_s_log(gamut, if (s_log >= ab): linear = ((pow(10., - ((((s_log - b) / + ( ((s_log - b) / (w - b) - 0.616596 - 0.03) / 0.432699)) - - 0.037584) * 0.9)) + 0.037584) * 0.9) else: linear = ( ((s_log - b) / ( @@ -76,10 +76,10 @@ def create_s_log(gamut, w = 940. if (s_log >= ab): - linear = (219. * (pow(10., - ((((s_log - b) / + linear = ((219. * (pow(10., + (((s_log - b) / (w - b) - 0.616596 - 0.03) / 0.432699)) - - 0.037584) / 155.) * 0.9) + 0.037584) / 155.) * 0.9) else: linear = (((s_log - b) / ( w - b) - 0.030001222851889303) / 3.53881278538813) * 0.9 @@ -340,4 +340,3 @@ def create_colorspaces(lut_directory, lut_resolution_1d): colorspaces.append(s_gamut3) return colorspaces - -- 1.7.10.4