diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-07 10:55:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-07 10:55:47 +0000 |
| commit | 107482fc19404e20db544e989d880752377fde26 (patch) | |
| tree | e6d8dc6857d79bf355d08248df4287bb4a838ef1 /src/rgb_xyz.h | |
| parent | 1ec06907de2eb4382e5f0e6f9953e3026f1461e7 (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.h | 9 |
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>); |
