Skip to content
This repository was archived by the owner on Nov 22, 2019. It is now read-only.

Commit 6aa6d12

Browse files
author
mfe
committed
Add Scratch 1D LUT export to curve_to_lut
1 parent da39e35 commit 6aa6d12

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lutLab/curve_to_lut.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from utils.csp_helper import write_1d_csp_lut
1212
from utils.cube_helper import write_1d_cube_lut
1313
from utils.spi_helper import write_1d_spi_lut
14+
from utils.scratch_helper import write_1d_scratch_lut
1415
from utils import debug_helper
1516
from utils.lut_utils import check_extension, LUTException
1617
import sys
@@ -67,6 +68,9 @@ def curve_to_lut(colorspace, outlutpath, lut_type='1D_CUBE',
6768
write_function = lambda lutfile, values: write_1d_spi_lut(lutfile,
6869
values,
6970
lut_range)
71+
elif lut_type == '1D_SCRATCH':
72+
ext = ".lut"
73+
write_function = write_1d_scratch_lut
7074
else:
7175
raise CurveToLUTException(("Unsupported export "
7276
"format: {0}").format(lut_type))
@@ -125,7 +129,8 @@ def __get_options():
125129
), type=str)
126130
# type
127131
parser.add_argument("-t", "--out-type", help=("Output LUT type."),
128-
type=str, choices=['1D_CSP', '1D_CUBE', '1D_SPI'],
132+
type=str, choices=['1D_CSP', '1D_CUBE', '1D_SPI',
133+
'1D_SCRATCH'],
129134
default='1D_CUBE')
130135
# in range
131136
parser.add_argument("-ir", "--in-range", help=("In range value."),

0 commit comments

Comments
 (0)