X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fcolorspaces%2Fgopro.py;h=2431ac9b99b5c89ab987a60e8227611230c10af0;hb=529f7b361204176430ea0df642e4ec00a5c54ad7;hp=0b05f5714a6284ff17f404f10a8d45e96b143014;hpb=ab7cfe33da8d699b47202e194ad1f1d543c98a22;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 0b05f57..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,8 +47,8 @@ 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 @@ -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 @@ -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