summaryrefslogtreecommitdiff
path: root/src/rgb_xyz.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-08 23:47:12 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-09 00:21:21 +0200
commit6de2bb3751b449abf06d44e4dda5e41b66df3f62 (patch)
treee163f6b83d3bbf2981e4e727ac067d9eeea47282 /src/rgb_xyz.h
parentee48fc460c9dc03b89bd7c7ab17fd3ad4560657d (diff)
Extract, test and slightly adjust the piecewise LUT for inverse gamma.
Diffstat (limited to 'src/rgb_xyz.h')
-rw-r--r--src/rgb_xyz.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rgb_xyz.h b/src/rgb_xyz.h
index 4a920efb..f0623940 100644
--- a/src/rgb_xyz.h
+++ b/src/rgb_xyz.h
@@ -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.