OpenCOlorIO: Add explicit linearSRGB -> sRGB lookup table

Previously converting from linear space to SRGB was doing rather
slow inverted 1D lookup. Adding explicit inverse LUT gives 20%
speedup of OpenGL render.

Next question is: why do we even bother with sRGB conversion here,
OpenGL is already in the proper space so in theory we can avoid
quite some color space conversions. In any case, having this case
optimized in nice anyway.
This commit is contained in:
Sergey Sharybin
2016-09-15 15:08:20 +02:00
parent 1af547a223
commit 6fb874369c
2 changed files with 65568 additions and 0 deletions

View File

@@ -247,6 +247,7 @@ colorspaces:
allocation: uniform
allocationvars: [-0.125, 4.875]
to_reference: !<FileTransform> {src: srgb.spi1d, interpolation: linear}
from_reference: !<FileTransform> {src: srgb_inv.spi1d, interpolation: linear}
- !<ColorSpace>
name: VD16

File diff suppressed because it is too large Load Diff