#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
#include <boost/filesystem.hpp>
+#include <boost/optional.hpp>
#include <string>
#include <stdint.h>
namespace dcp {
-class ARGBFrame;
+class OpenJPEGImage;
/** @class MonoPictureFrame
* @brief A single frame of a 2D (monoscopic) picture asset.
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 (uint8_t const * data, int size);
~MonoPictureFrame ();
- boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0, float srgb_gamma = 2.4) 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;
private: