X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fcreate_sony_colorspaces.py;h=ac6738214d66cc30f7a139812ce094c5e83ca396;hb=f4645c77f9ef867c32aa90d5143f252556456776;hp=c16b70896740e4699ccb43aa46a6d1790a95c4d3;hpb=89360f70a6c71121580324ed3c125a83c3973887;p=OpenColorIO-Configs.git 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 c16b708..ac67382 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 @@ -10,6 +10,8 @@ from __future__ import division import array import os +import PyOpenColorIO as ocio + import aces_ocio.generate_lut as genlut from aces_ocio.utilities import ColorSpace, mat44_from_mat33 @@ -56,9 +58,14 @@ def create_s_log(gamut, cs.description = name cs.aliases = aliases cs.equality_group = '' - cs.family = 'Sony' + cs.family = 'Input/Sony' cs.is_data = False + # A linear space needs allocation variables + if transfer_function == '': + cs.allocation_type = ocio.Constants.ALLOCATION_LG2 + cs.allocation_vars = [-8, 5, 0.00390625] + def s_log1_to_linear(s_log): b = 64. ab = 90.