summaryrefslogtreecommitdiff
path: root/src/picture_frame.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-25 01:21:51 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-25 01:21:51 +0000
commit103c20d48c22f0c604e402de41bce7336ef9b386 (patch)
tree67d9483b0a1133cc115765a84d2265290ade9447 /src/picture_frame.cc
parentdcdd532760f8970505b7fa5c83f86fbe39a73148 (diff)
Allow changing of MXF directory / filename; un-expose ASDCP frame buffer classes in the API.
Diffstat (limited to 'src/picture_frame.cc')
-rw-r--r--src/picture_frame.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/picture_frame.cc b/src/picture_frame.cc
index a2b90a0b..907f70ab 100644
--- a/src/picture_frame.cc
+++ b/src/picture_frame.cc
@@ -54,6 +54,18 @@ MonoPictureFrame::~MonoPictureFrame ()
delete _buffer;
}
+uint8_t const *
+MonoPictureFrame::j2k_data () const
+{
+ return _buffer->RoData ();
+}
+
+int
+MonoPictureFrame::j2k_size () const
+{
+ return _buffer->Size ();
+}
+
/** @param reduce a factor by which to reduce the resolution
* of the image, expressed as a power of two (pass 0 for no
* reduction).
@@ -127,3 +139,27 @@ StereoPictureFrame::argb_frame (Eye eye, int reduce) const
opj_image_destroy (xyz_frame);
return f;
}
+
+uint8_t const *
+StereoPictureFrame::left_j2k_data () const
+{
+ return _buffer->Left.RoData ();
+}
+
+int
+StereoPictureFrame::left_j2k_size () const
+{
+ return _buffer->Left.Size ();
+}
+
+uint8_t const *
+StereoPictureFrame::right_j2k_data () const
+{
+ return _buffer->Right.RoData ();
+}
+
+int
+StereoPictureFrame::right_j2k_size () const
+{
+ return _buffer->Right.Size ();
+}