summaryrefslogtreecommitdiff
path: root/src/picture_frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/picture_frame.h')
-rw-r--r--src/picture_frame.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/picture_frame.h b/src/picture_frame.h
index ad51abed..42c5d629 100644
--- a/src/picture_frame.h
+++ b/src/picture_frame.h
@@ -40,10 +40,9 @@ public:
MonoPictureFrame (std::string mxf_path, int n);
~MonoPictureFrame ();
- boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0) const;
- ASDCP::JP2K::FrameBuffer* j2k_frame () const {
- return _buffer;
- }
+ boost::shared_ptr<ARGBFrame> argb_frame (int reduce = 0, float srgb_gamma = 2.4) const;
+ uint8_t const * j2k_data () const;
+ int j2k_size () const;
private:
ASDCP::JP2K::FrameBuffer* _buffer;
@@ -56,10 +55,11 @@ public:
StereoPictureFrame (std::string mxf_path, int n);
~StereoPictureFrame ();
- boost::shared_ptr<ARGBFrame> argb_frame (Eye eye, int reduce = 0) const;
- ASDCP::JP2K::SFrameBuffer* j2k_frame () const {
- return _buffer;
- }
+ boost::shared_ptr<ARGBFrame> argb_frame (Eye eye, int reduce = 0, float srgb_gamma = 2.4) const;
+ uint8_t const * left_j2k_data () const;
+ int left_j2k_size () const;
+ uint8_t const * right_j2k_data () const;
+ int right_j2k_size () const;
private:
ASDCP::JP2K::SFrameBuffer* _buffer;