X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;ds=sidebyside;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fcolorspaces%2Fgopro.py;h=2431ac9b99b5c89ab987a60e8227611230c10af0;hb=742fd99417610892e0408e6f9d93aefff57dcd08;hp=b20853715038f6eeb524b7a0a7c7267be9b2940e;hpb=9404c06b163b18672794ced12638b6063fc2b8dd;p=OpenColorIO-Configs.git diff --git a/aces_1.0.0/python/aces_ocio/colorspaces/gopro.py b/aces_1.0.0/python/aces_ocio/colorspaces/gopro.py index b208537..2431ac9 100644 --- a/aces_1.0.0/python/aces_ocio/colorspaces/gopro.py +++ b/aces_1.0.0/python/aces_ocio/colorspaces/gopro.py @@ -12,7 +12,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, sanitize) __author__ = 'ACES Developers' @@ -28,7 +28,6 @@ __all__ = ['create_protune', def create_protune(gamut, transfer_function, - name, lut_directory, lut_resolution_1d, aliases): @@ -48,13 +47,13 @@ def create_protune(gamut, Return value description. """ - # The gamut should be marked as experimental until - # matrices are fully verified + # The gamut should be marked as experimental until matrices are fully + # verified. name = '%s - %s - Experimental' % (transfer_function, gamut) if transfer_function == '': name = 'Linear - %s - Experimental' % gamut if gamut == '': - name = '%s' % transfer_function + name = 'Curve - %s' % transfer_function cs = ColorSpace(name) cs.description = name @@ -63,7 +62,7 @@ def create_protune(gamut, cs.family = 'Input/GoPro' cs.is_data = False - # A linear space needs allocation variables + # A linear space needs allocation variables. if transfer_function == '': cs.allocation_type = ocio.Constants.ALLOCATION_LG2 cs.allocation_vars = [-8, 5, 0.00390625] @@ -72,7 +71,7 @@ def create_protune(gamut, c1 = 113.0 c2 = 1.0 c3 = 112.0 - linear = ((pow(c1, (normalized_code_value)) - c2) / c3) + linear = ((pow(c1, normalized_code_value) - c2) / c3) return linear @@ -99,7 +98,7 @@ def create_protune(gamut, 'interpolation': 'linear', 'direction': 'forward'}) - if gamut == 'Protune Gamut': + if gamut == 'Protune Native': cs.to_reference_transforms.append({ 'type': 'matrix', 'matrix': [0.533448429, 0.32413911, 0.142412421, 0, @@ -133,30 +132,27 @@ def create_colorspaces(lut_directory, lut_resolution_1d): protune_1 = create_protune( 'Protune Native', 'Protune Flat', - 'Protune', lut_directory, lut_resolution_1d, - ["protuneflat_protunegamutexp"]) + ['protuneflat_protunegamutexp']) colorspaces.append(protune_1) # Linearization Only protune_2 = create_protune( '', 'Protune Flat', - 'Protune', lut_directory, lut_resolution_1d, - ["crv_protuneflat"]) + ['crv_protuneflat']) colorspaces.append(protune_2) # Primaries Only protune_3 = create_protune( 'Protune Native', '', - 'Protune', lut_directory, lut_resolution_1d, - ["lin_protunegamutexp"]) + ['lin_protunegamutexp']) colorspaces.append(protune_3) return colorspaces