summaryrefslogtreecommitdiff
path: root/src/picture_frame.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-22 12:32:52 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-22 12:32:52 +0100
commitc70373ba74504ae39453c2a41ce1ab047fd441b4 (patch)
tree020b40133c93a797341b7a19c46c787f449cebe1 /src/picture_frame.h
parentdbdef419973ea00817022a4352126925025857dd (diff)
Rough support for 3D.
Diffstat (limited to 'src/picture_frame.h')
-rw-r--r--src/picture_frame.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/picture_frame.h b/src/picture_frame.h
index 76891d9f..b2693f49 100644
--- a/src/picture_frame.h
+++ b/src/picture_frame.h
@@ -20,25 +20,24 @@
#include <string>
#include <stdint.h>
#include <boost/shared_ptr.hpp>
+#include "types.h"
namespace ASDCP {
namespace JP2K {
class FrameBuffer;
+ class SFrameBuffer;
}
}
namespace libdcp {
-class ARGBFrame;
+class ARGBFrame;
-class PictureFrame
+class MonoPictureFrame
{
public:
- PictureFrame (std::string mxf_path, int n);
- ~PictureFrame ();
-
- uint8_t const * data () const;
- int size () const;
+ MonoPictureFrame (std::string mxf_path, int n);
+ ~MonoPictureFrame ();
boost::shared_ptr<ARGBFrame> argb_frame () const;
@@ -46,4 +45,16 @@ private:
ASDCP::JP2K::FrameBuffer* _buffer;
};
+class StereoPictureFrame
+{
+public:
+ StereoPictureFrame (std::string mxf_path, int n);
+ ~StereoPictureFrame ();
+
+ boost::shared_ptr<ARGBFrame> argb_frame (Eye eye) const;
+
+private:
+ ASDCP::JP2K::SFrameBuffer* _buffer;
+};
+
}