projects
/
OpenColorIO-Configs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve paths handling and strings concatenations.
[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
7a428ac
..
758ad14
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
@@
-6,6
+6,7
@@
Implements support for *Sony* colorspaces conversions and transfer functions.
"""
import array
"""
import array
+import os
import aces_ocio.generate_lut as genlut
from aces_ocio.utilities import ColorSpace, mat44_from_mat33
import aces_ocio.generate_lut as genlut
from aces_ocio.utilities import ColorSpace, mat44_from_mat33
@@
-102,12
+103,13
@@
def create_s_log(gamut,
data[c] = s_log1_to_linear(1023.0 * c / (lut_resolution_1d - 1))
lut = '%s_to_linear.spi1d' % transfer_function
data[c] = s_log1_to_linear(1023.0 * c / (lut_resolution_1d - 1))
lut = '%s_to_linear.spi1d' % transfer_function
- genlut.write_SPI_1d(lut_directory + '/' + lut,
- 0.0,
- 1.0,
- data,
- lut_resolution_1d,
- 1)
+ genlut.write_SPI_1d(
+ os.path.join(lut_directory, lut),
+ 0.0,
+ 1.0,
+ data,
+ lut_resolution_1d,
+ 1)
# print('Writing %s' % lut)
# print('Writing %s' % lut)
@@
-123,12
+125,13
@@
def create_s_log(gamut,
data[c] = s_log2_to_linear(1023.0 * c / (lut_resolution_1d - 1))
lut = '%s_to_linear.spi1d' % transfer_function
data[c] = s_log2_to_linear(1023.0 * c / (lut_resolution_1d - 1))
lut = '%s_to_linear.spi1d' % transfer_function
- genlut.write_SPI_1d(lut_directory + '/' + lut,
- 0.0,
- 1.0,
- data,
- lut_resolution_1d,
- 1)
+ genlut.write_SPI_1d(
+ os.path.join(lut_directory, lut),
+ 0.0,
+ 1.0,
+ data,
+ lut_resolution_1d,
+ 1)
# print('Writing %s' % lut)
# print('Writing %s' % lut)
@@
-144,12
+147,13
@@
def create_s_log(gamut,
data[c] = s_log3_to_linear(1023.0 * c / (lut_resolution_1d - 1))
lut = '%s_to_linear.spi1d' % transfer_function
data[c] = s_log3_to_linear(1023.0 * c / (lut_resolution_1d - 1))
lut = '%s_to_linear.spi1d' % transfer_function
- genlut.write_SPI_1d(lut_directory + '/' + lut,
- 0.0,
- 1.0,
- data,
- lut_resolution_1d,
- 1)
+ genlut.write_SPI_1d(
+ os.path.join(lut_directory, lut),
+ 0.0,
+ 1.0,
+ data,
+ lut_resolution_1d,
+ 1)
# print('Writing %s' % lut)
# print('Writing %s' % lut)