X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fcolorspaces%2Fpanasonic.py;h=62d7264953487971901581e36b7e1c09495b7cd0;hb=742fd99417610892e0408e6f9d93aefff57dcd08;hp=359ec2efdb73f9168b16dc58cf60631dd458a7b3;hpb=60ea234c1a9c7be5898ba35a6f548357d6deb874;p=OpenColorIO-Configs.git diff --git a/aces_1.0.0/python/aces_ocio/colorspaces/panasonic.py b/aces_1.0.0/python/aces_ocio/colorspaces/panasonic.py index 359ec2e..62d7264 100644 --- a/aces_1.0.0/python/aces_ocio/colorspaces/panasonic.py +++ b/aces_1.0.0/python/aces_ocio/colorspaces/panasonic.py @@ -2,7 +2,8 @@ # -*- coding: utf-8 -*- """ -Implements support for *Panasonic* colorspaces conversions and transfer functions. +Implements support for *Panasonic* colorspaces conversions and transfer +functions. """ import array @@ -10,7 +11,7 @@ import os import PyOpenColorIO as ocio -import aces_ocio.generate_lut as genlut +import aces_ocio.lut as genlut from aces_ocio.utilities import ColorSpace __author__ = 'ACES Developers' @@ -26,7 +27,6 @@ __all__ = ['create_v_log', def create_v_log(gamut, transfer_function, - name, lut_directory, lut_resolution_1d, aliases): @@ -65,12 +65,12 @@ def create_v_log(gamut, cs.allocation_vars = [-8, 5, 0.00390625] def v_log_to_linear(x): - cutInv = 0.181 + cut_inv = 0.181 b = 0.00873 c = 0.241514 d = 0.598206 - if (x <= cutInv): + if x <= cut_inv: return (x - 0.125) / 5.6 else: return pow(10, (x - d) / c) - b @@ -131,30 +131,27 @@ def create_colorspaces(lut_directory, lut_resolution_1d): v_log_1 = create_v_log( 'V-Gamut', 'V-Log', - 'V-Log', lut_directory, lut_resolution_1d, - ["vlog_vgamut"]) + ['vlog_vgamut']) colorspaces.append(v_log_1) # Linearization Only v_log_2 = create_v_log( '', 'V-Log', - 'V-Log', lut_directory, lut_resolution_1d, - ["crv_vlog"]) + ['crv_vlog']) colorspaces.append(v_log_2) # Primaries Only v_log_3 = create_v_log( 'V-Gamut', '', - 'V-Log', lut_directory, lut_resolution_1d, - ["lin_vgamut"]) + ['lin_vgamut']) colorspaces.append(v_log_3) return colorspaces