summaryrefslogtreecommitdiff
path: root/src/stereo_picture_frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stereo_picture_frame.h')
-rw-r--r--src/stereo_picture_frame.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/stereo_picture_frame.h b/src/stereo_picture_frame.h
index 6dd6269b..c38124c0 100644
--- a/src/stereo_picture_frame.h
+++ b/src/stereo_picture_frame.h
@@ -52,7 +52,10 @@ namespace ASDCP {
namespace dcp {
+
class OpenJPEGImage;
+class StereoPictureFrame;
+
/** A single frame of a 3D (stereoscopic) picture asset */
class StereoPictureFrame : public boost::noncopyable
@@ -62,13 +65,25 @@ public:
boost::shared_ptr<OpenJPEGImage> xyz_image (Eye eye, int reduce = 0) const;
- uint8_t const * left_j2k_data () const;
- uint8_t* left_j2k_data ();
- int left_j2k_size () const;
+ class Part : public Data
+ {
+ public:
+ uint8_t const * data () const;
+ uint8_t * data ();
+ int size () const;
+
+ private:
+ friend class StereoPictureFrame;
+
+ Part (boost::shared_ptr<ASDCP::JP2K::SFrameBuffer> buffer, Eye eye);
+ ASDCP::JP2K::FrameBuffer& mono () const;
+
+ boost::shared_ptr<ASDCP::JP2K::SFrameBuffer> _buffer;
+ Eye _eye;
+ };
- uint8_t const * right_j2k_data () const;
- uint8_t* right_j2k_data ();
- int right_j2k_size () const;
+ boost::shared_ptr<Part> left () const;
+ boost::shared_ptr<Part> right () const;
private:
/* XXX: this is a bit of a shame, but I tried friend StereoPictureAssetReader and it's