X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Fcreate_canon_colorspaces.py;h=ec419fd3864c7fa6c77f5c6562fded72e6ad368f;hp=ed39c9d6979d72258442a52b507721898721bf1e;hb=1c4efc5c67e2313dfadf4a0786baaabd8d6489a6;hpb=616d30ea450f7d8b669649b1bb57a54d51db0a9a diff --git a/aces_1.0.0/python/aces_ocio/create_canon_colorspaces.py b/aces_1.0.0/python/aces_ocio/create_canon_colorspaces.py index ed39c9d..ec419fd 100644 --- a/aces_1.0.0/python/aces_ocio/create_canon_colorspaces.py +++ b/aces_1.0.0/python/aces_ocio/create_canon_colorspaces.py @@ -57,17 +57,17 @@ def create_c_log(gamut, cs.family = 'Canon' cs.is_data = False - def legal_to_full(codeValue): - return (codeValue - 64.0) / (940.0 - 64.0) + def legal_to_full(code_value): + return (code_value - 64.0) / (940.0 - 64.0) - def c_log_to_linear(codeValue): + def c_log_to_linear(code_value): # log = fullToLegal(c1 * log10(c2*linear + 1) + c3) # linear = (pow(10, (legalToFul(log) - c3)/c1) - 1)/c2 c1 = 0.529136 c2 = 10.1596 c3 = 0.0730597 - linear = (pow(10.0, (legal_to_full(codeValue) - c3) / c1) - 1.0) / c2 + linear = (pow(10.0, (legal_to_full(code_value) - c3) / c1) - 1.0) / c2 linear *= 0.9 return linear