Added vendor-specific names in front of gamuts that may be confused with non-vendor...
[OpenColorIO-Configs.git] / aces_1.0.0 / python / aces_ocio / create_canon_colorspaces.py
index f63c1bb..5fa0e91 100644 (file)
@@ -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
 
@@ -48,7 +50,7 @@ def create_c_log(gamut,
 
     name = '%s - %s' % (transfer_function, gamut)
     if transfer_function == '':
-        name = 'Linear - %s' % gamut
+        name = 'Linear - Canon %s' % gamut
     if gamut == '':
         name = '%s' % transfer_function
 
@@ -56,9 +58,14 @@ def create_c_log(gamut,
     cs.description = name
     cs.aliases = aliases
     cs.equality_group = ''
-    cs.family = 'Canon'
+    cs.family = 'Input/Canon'
     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 legal_to_full(code_value):
         return (code_value - 64) / (940 - 64)
 
@@ -238,7 +245,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d):
         'Canon-Log',
         lut_directory,
         lut_resolution_1d,
-        ["lin_rec709day"])
+        ["lin_canonrec709day"])
     colorspaces.append(c_log_8)
 
     c_log_9 = create_c_log(
@@ -247,7 +254,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d):
         'Canon-Log',
         lut_directory,
         lut_resolution_1d,
-        ["lin_rec709tung"])
+        ["lin_canonrec709tung"])
     colorspaces.append(c_log_9)
 
     c_log_10 = create_c_log(
@@ -256,7 +263,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d):
         'Canon-Log',
         lut_directory,
         lut_resolution_1d,
-        ["lin_dcip3day"])
+        ["lin_canondcip3day"])
     colorspaces.append(c_log_10)
 
     c_log_11 = create_c_log(
@@ -265,7 +272,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d):
         'Canon-Log',
         lut_directory,
         lut_resolution_1d,
-        ["lin_dcip3tung"])
+        ["lin_canondcip3tung"])
     colorspaces.append(c_log_11)
 
     c_log_12 = create_c_log(
@@ -274,7 +281,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d):
         'Canon-Log',
         lut_directory,
         lut_resolution_1d,
-        ["lin_cgamutday"])
+        ["lin_canoncgamutday"])
     colorspaces.append(c_log_12)
 
     c_log_13 = create_c_log(
@@ -283,7 +290,7 @@ def create_colorspaces(lut_directory, lut_resolution_1d):
         'Canon-Log',
         lut_directory,
         lut_resolution_1d,
-        ["lin_cgamuttung"])
+        ["lin_canoncgamuttung"])
     colorspaces.append(c_log_13)
 
     return colorspaces