Commit ddba92f
authored
fix(oiiotool): be cautious promoting to float due to color space name with --autocc (#5192)
Background: OCIO 1.x configs were LUT based and so tended to have
different color space names for different data types/bit depths. We
capitalized on this to let `oiiotool --autocc` also select type/bits,
but this trick doesn't work so well for OCIO 2.x configs with procedural
(non-LUT) transformations that all look like "float". We don't want to
promote to float just because of this!
Solution: When using color space data type (nearly always float for new
configs and certainly the built-in configs) to infer output, DO NOT use
"float" as a real request. Treat it as not being a specific type, don't
let it override the intended output type for --autocc. (But a color
space still marked as a particular integer bit depth is still an
--autocc inferred request.)
Signed-off-by: Larry Gritz <lg@larrygritz.com>1 parent 90f308b commit ddba92f
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5905 | 5905 | | |
5906 | 5906 | | |
5907 | 5907 | | |
5908 | | - | |
| 5908 | + | |
5909 | 5909 | | |
5910 | | - | |
5911 | | - | |
| 5910 | + | |
| 5911 | + | |
| 5912 | + | |
5912 | 5913 | | |
5913 | 5914 | | |
5914 | 5915 | | |
| |||
0 commit comments