X-Git-Url: http://users.mur.at/ms/git/gitweb/?a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2FcreateSonyColorSpaces.py;h=51be98f2d5a1bce4532cb541c918bdeda5c823fb;hb=70a314dd5edd3eeadf3593ef37b908993db3e801;hp=604777c9c462af9bb78bc6e214f1b407272ed15e;hpb=75d8749d3630921f8ced18c026cd3cf0d9af14b6;p=OpenColorIO-Configs.git diff --git a/aces_1.0.0/python/aces_ocio/createSonyColorSpaces.py b/aces_1.0.0/python/aces_ocio/createSonyColorSpaces.py index 604777c..51be98f 100644 --- a/aces_1.0.0/python/aces_ocio/createSonyColorSpaces.py +++ b/aces_1.0.0/python/aces_ocio/createSonyColorSpaces.py @@ -1,6 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +""" +Implements support for *Sony* colorspaces conversions and transfer functions. +""" + import array import aces_ocio.generateLUT as genlut @@ -16,10 +20,24 @@ __status__ = 'Production' __all__ = ['createSlog', 'createColorSpaces'] -# -# SLog to ACES -# + def createSlog(gamut, transferFunction, name, lutDir, lutResolution1d): + """ + Object description. + + SLog to ACES. + + Parameters + ---------- + parameter : type + Parameter description. + + Returns + ------- + type + Return value description. + """ + name = "%s - %s" % (transferFunction, gamut) if transferFunction == "": name = "Linear - %s" % gamut @@ -190,6 +208,20 @@ def createSlog(gamut, transferFunction, name, lutDir, lutResolution1d): def createColorSpaces(lutDir, lutResolution1d): + """ + Generates the colorspace conversions. + + Parameters + ---------- + parameter : type + Parameter description. + + Returns + ------- + type + Return value description. + """ + colorspaces = [] # SLog1