summaryrefslogtreecommitdiff
path: root/src/rgb_xyz.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-09 10:00:34 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-09 10:00:34 +0100
commit205fd96fc2592d5b50c91871fe0f2bd9d79783c5 (patch)
treeea646bc640e68d5cb9bf9248f1b3bd7c20191bf9 /src/rgb_xyz.h
parent7c386ee3f400d80f043bc0b271a0184e35a08169 (diff)
Add method to return frames as RGB to a given buffer.
Diffstat (limited to 'src/rgb_xyz.h')
-rw-r--r--src/rgb_xyz.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rgb_xyz.h b/src/rgb_xyz.h
index 998c6401..ee354d53 100644
--- a/src/rgb_xyz.h
+++ b/src/rgb_xyz.h
@@ -18,6 +18,7 @@
*/
#include <boost/shared_ptr.hpp>
+#include <stdint.h>
namespace dcp {
@@ -30,6 +31,10 @@ extern boost::shared_ptr<ARGBFrame> xyz_to_rgba (
boost::shared_ptr<const XYZFrame>, boost::shared_ptr<const GammaLUT>, boost::shared_ptr<const GammaLUT>
);
+extern void xyz_to_rgb (
+ boost::shared_ptr<const XYZFrame>, boost::shared_ptr<const GammaLUT>, boost::shared_ptr<const GammaLUT>, uint8_t* buffer
+ );
+
extern boost::shared_ptr<XYZFrame> rgb_to_xyz (
boost::shared_ptr<const Image>, boost::shared_ptr<const GammaLUT>, boost::shared_ptr<const GammaLUT>, double const colour_matrix[3][3]
);