diff options
Diffstat (limited to 'src/picture_frame.cc')
| -rw-r--r-- | src/picture_frame.cc | 36 |
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 (); +} |
