diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-02-02 22:33:27 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-02-02 22:33:27 +0000 |
| commit | 989f182558193a51e0a26603fb2ca59f827216a0 (patch) | |
| tree | 7d2b2511967e5417838a4343341e5aa9d26cf2b8 /src/rgb_xyz.h | |
| parent | 0d7fe66361a40702cb97357955cf35256f1d2c26 (diff) | |
Remove Image and ARGBImage and just dump RGB data into
uint8_t* buffers. This is hopefully simpler than trying
to come up with some Image hierarchy that suits everything.
Diffstat (limited to 'src/rgb_xyz.h')
| -rw-r--r-- | src/rgb_xyz.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/rgb_xyz.h b/src/rgb_xyz.h index cd0125cb..5d1a4d17 100644 --- a/src/rgb_xyz.h +++ b/src/rgb_xyz.h @@ -29,14 +29,21 @@ class XYZImage; class Image; class ColourConversion; -extern boost::shared_ptr<ARGBImage> xyz_to_rgba (boost::shared_ptr<const XYZImage>, ColourConversion const & conversion); +extern void xyz_to_rgba ( + boost::shared_ptr<const XYZImage>, + ColourConversion const & conversion, + uint8_t* rgba + ); + extern void xyz_to_rgb ( boost::shared_ptr<const XYZImage>, ColourConversion const & conversion, - boost::shared_ptr<Image> rgb, + uint8_t* rgb, + int stride, boost::optional<NoteHandler> note = boost::optional<NoteHandler> () ); -extern boost::shared_ptr<XYZImage> rgb_to_xyz (boost::shared_ptr<const Image>, ColourConversion const & conversion); -extern boost::shared_ptr<XYZImage> xyz_to_xyz (boost::shared_ptr<const Image>); + +extern boost::shared_ptr<XYZImage> rgb_to_xyz (uint8_t const * rgb, dcp::Size size, int stride, ColourConversion const & conversion); +extern boost::shared_ptr<XYZImage> xyz_to_xyz (uint8_t const * xyz, dcp::Size size, int stride); } |
