summaryrefslogtreecommitdiff
path: root/src/rgb_xyz.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-07 10:55:47 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-07 10:55:47 +0000
commit107482fc19404e20db544e989d880752377fde26 (patch)
treee6d8dc6857d79bf355d08248df4287bb4a838ef1 /src/rgb_xyz.h
parent1ec06907de2eb4382e5f0e6f9953e3026f1461e7 (diff)
Clamp out-of-range XYZ values in xyz_to_rgb() and pass notes about their existance.
Diffstat (limited to 'src/rgb_xyz.h')
-rw-r--r--src/rgb_xyz.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rgb_xyz.h b/src/rgb_xyz.h
index 4dd25b28..53568350 100644
--- a/src/rgb_xyz.h
+++ b/src/rgb_xyz.h
@@ -17,7 +17,9 @@
*/
+#include "types.h"
#include <boost/shared_ptr.hpp>
+#include <boost/optional.hpp>
#include <stdint.h>
namespace dcp {
@@ -28,7 +30,12 @@ class Image;
class ColourConversion;
extern boost::shared_ptr<ARGBFrame> xyz_to_rgba (boost::shared_ptr<const XYZFrame>, ColourConversion const & conversion);
-extern void xyz_to_rgb (boost::shared_ptr<const XYZFrame>, ColourConversion const & conversion, uint16_t* buffer);
+extern void xyz_to_rgb (
+ boost::shared_ptr<const XYZFrame>,
+ ColourConversion const & conversion,
+ uint16_t* buffer,
+ boost::optional<NoteHandler> note = boost::optional<NoteHandler> ()
+ );
extern boost::shared_ptr<XYZFrame> rgb_to_xyz (boost::shared_ptr<const Image>, ColourConversion const & conversion);
extern boost::shared_ptr<XYZFrame> xyz_to_xyz (boost::shared_ptr<const Image>);