Extract, test and slightly adjust the piecewise LUT for inverse gamma.
[libdcp.git] / src / rgb_xyz.h
index 4a920efb3db9908a4e498c74f678e8ed166ad464..f0623940475ffc7ca63dea565a4519ba2442adfb 100644 (file)
@@ -37,6 +37,7 @@
  */
 
 
+#include "piecewise_lut.h"
 #include "types.h"
 #include <memory>
 #include <boost/optional.hpp>
@@ -92,6 +93,9 @@ extern void xyz_to_rgb (
        );
 
 
+extern PiecewiseLUT2 make_inverse_gamma_lut(std::shared_ptr<const TransferFunction> fn);
+
+
 /** @param rgb RGB data; packed RGB 16:16:16, 48bpp, 16R, 16G, 16B,
  *  with the 2-byte value for each R/G/B component stored as
  *  little-endian; i.e. AV_PIX_FMT_RGB48LE.