Pass notes through MonoPictureFrame::rgb_frame().
authorCarl Hetherington <cth@carlh.net>
Wed, 7 Jan 2015 10:57:27 +0000 (10:57 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 7 Jan 2015 10:57:27 +0000 (10:57 +0000)
src/mono_picture_frame.cc
src/mono_picture_frame.h

index e7dc04abe46d48fb1e6bdcf6c6606f7bfd90f3c9..617d46875821f940af2f6bb00eb33d08f3fc11dd 100644 (file)
@@ -35,6 +35,7 @@
 
 using std::string;
 using boost::shared_ptr;
+using boost::optional;
 using namespace dcp;
 
 /** Make a picture frame from a JPEG2000 file.
@@ -128,11 +129,12 @@ MonoPictureFrame::argb_frame (int reduce, float srgb_gamma) const
 }
 
 void
-MonoPictureFrame::rgb_frame (uint16_t* buffer) const
+MonoPictureFrame::rgb_frame (uint16_t* buffer, optional<NoteHandler> note) const
 {
        xyz_to_rgb (
                decompress_j2k (const_cast<uint8_t*> (_buffer->RoData()), _buffer->Size(), 0),
                ColourConversion::xyz_to_srgb (),
-               buffer
+               buffer,
+               note
                );
 }
index 50ea08917ee62a09ea996ff062577501f600f0a2..bcd7024b1fc6f4618fa4ac7007b01e9781347b56 100644 (file)
@@ -25,6 +25,7 @@
 #include <boost/shared_ptr.hpp>
 #include <boost/noncopyable.hpp>
 #include <boost/filesystem.hpp>
+#include <boost/optional.hpp>
 #include <string>
 #include <stdint.h>
 
@@ -51,7 +52,7 @@ public:
        ~MonoPictureFrame ();
 
        boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0, float srgb_gamma = 2.4) const;
-       void rgb_frame (uint16_t* buffer) const;
+       void rgb_frame (uint16_t* buffer, boost::optional<NoteHandler> note = boost::optional<NoteHandler> ()) const;
        uint8_t const * j2k_data () const;
        uint8_t* j2k_data ();
        int j2k_size () const;