X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fmono_picture_frame.h;h=68e4edf8fc39c006dd3c6c14ce7a4f5e0442bc8e;hb=273fd9a4f1b43ae0de0071e5efd3b6347b166ff1;hp=cc6096cd8c705093b8333c48ad989a5bdbe48391;hpb=93096af59d8235235c0caed929b6f72dcf09cdc9;p=libdcp.git diff --git a/src/mono_picture_frame.h b/src/mono_picture_frame.h index cc6096cd..68e4edf8 100644 --- a/src/mono_picture_frame.h +++ b/src/mono_picture_frame.h @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -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,11 +46,15 @@ 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 argb_frame (int reduce = 0, float srgb_gamma = 2.4) const; + boost::shared_ptr xyz_image (int reduce = 0) const; + uint8_t const * j2k_data () const; + uint8_t* j2k_data (); int j2k_size () const; private: