projects
/
OpenColorIO-Configs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix "Sony" "S-Log" related computations.
[OpenColorIO-Configs.git]
/
aces_1.0.0
/
python
/
aces_ocio
/
create_sony_colorspaces.py
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
db67cb1
..
3867e87
100644
(file)
--- a/
aces_1.0.0/python/aces_ocio/create_sony_colorspaces.py
+++ b/
aces_1.0.0/python/aces_ocio/create_sony_colorspaces.py
@@
-61,9
+61,9
@@
def create_s_log(gamut,
if (s_log >= ab):
linear = ((pow(10.,
if (s_log >= ab):
linear = ((pow(10.,
- (
(
((s_log - b) /
+ (
((s_log - b) /
(w - b) - 0.616596 - 0.03) / 0.432699)) -
(w - b) - 0.616596 - 0.03) / 0.432699)) -
-
0.037584) * 0.9)
)
+
0.037584) * 0.9
)
else:
linear = (
((s_log - b) / (
else:
linear = (
((s_log - b) / (
@@
-76,10
+76,10
@@
def create_s_log(gamut,
w = 940.
if (s_log >= ab):
w = 940.
if (s_log >= ab):
- linear = (219. * (pow(10.,
-
(
(((s_log - b) /
+ linear = (
(
219. * (pow(10.,
+
(((s_log - b) /
(w - b) - 0.616596 - 0.03) / 0.432699)) -
(w - b) - 0.616596 - 0.03) / 0.432699)) -
-
0.037584) / 155.) * 0.9)
+ 0.037584) / 155.) * 0.9)
else:
linear = (((s_log - b) / (
w - b) - 0.030001222851889303) / 3.53881278538813) * 0.9
else:
linear = (((s_log - b) / (
w - b) - 0.030001222851889303) / 3.53881278538813) * 0.9
@@
-340,4
+340,3
@@
def create_colorspaces(lut_directory, lut_resolution_1d):
colorspaces.append(s_gamut3)
return colorspaces
colorspaces.append(s_gamut3)
return colorspaces
-