Try to fix build on OS X.
[libdcp.git] / src / mono_picture_frame.h
index 707c54cd4341727c426b236d88b8d1e23cbc069a..68e4edf8fc39c006dd3c6c14ce7a4f5e0442bc8e 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>
 
@@ -37,7 +38,7 @@ namespace ASDCP {
 
 namespace dcp {
 
-class ARGBFrame;
+class OpenJPEGImage;
 
 /** @class MonoPictureFrame
  *  @brief A single frame of a 2D (monoscopic) picture asset.
@@ -45,12 +46,13 @@ class ARGBFrame;
 class MonoPictureFrame : public boost::noncopyable
 {
 public:
-       MonoPictureFrame (boost::filesystem::path mxf_path, int n, ASDCP::AESDecContext *);
+       MonoPictureFrame (boost::filesystem::path path, int n, ASDCP::AESDecContext *);
+       MonoPictureFrame (boost::filesystem::path path);
        MonoPictureFrame ();
        ~MonoPictureFrame ();
 
-       boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0, float srgb_gamma = 2.4) const;
-       void rgb_frame (uint8_t* buffer) const;
+       boost::shared_ptr<OpenJPEGImage> xyz_image (int reduce = 0) const;
+
        uint8_t const * j2k_data () const;
        uint8_t* j2k_data ();
        int j2k_size () const;