|
11 | 11 | from utils.csp_helper import write_1d_csp_lut |
12 | 12 | from utils.cube_helper import write_1d_cube_lut |
13 | 13 | from utils.spi_helper import write_1d_spi_lut |
| 14 | +from utils.scratch_helper import write_1d_scratch_lut |
14 | 15 | from utils import debug_helper |
15 | 16 | from utils.lut_utils import check_extension, LUTException |
16 | 17 | import sys |
@@ -67,6 +68,9 @@ def curve_to_lut(colorspace, outlutpath, lut_type='1D_CUBE', |
67 | 68 | write_function = lambda lutfile, values: write_1d_spi_lut(lutfile, |
68 | 69 | values, |
69 | 70 | lut_range) |
| 71 | + elif lut_type == '1D_SCRATCH': |
| 72 | + ext = ".lut" |
| 73 | + write_function = write_1d_scratch_lut |
70 | 74 | else: |
71 | 75 | raise CurveToLUTException(("Unsupported export " |
72 | 76 | "format: {0}").format(lut_type)) |
@@ -125,7 +129,8 @@ def __get_options(): |
125 | 129 | ), type=str) |
126 | 130 | # type |
127 | 131 | 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'], |
129 | 134 | default='1D_CUBE') |
130 | 135 | # in range |
131 | 136 | parser.add_argument("-ir", "--in-range", help=("In range value."), |
|
0 commit comments