summaryrefslogtreecommitdiff
path: root/src/picture_frame.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-15 22:52:00 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-15 22:52:00 +0100
commit753912e0f4a70343b693b1b5aefff101edd28874 (patch)
treed9acfb4141eee2829433aa160ccee6b64472925f /src/picture_frame.h
parent851e9d3690f482948366d8b720b7dbee2d7eaa68 (diff)
Add support for obtaining a frame as RGBA.
Diffstat (limited to 'src/picture_frame.h')
-rw-r--r--src/picture_frame.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/picture_frame.h b/src/picture_frame.h
index b7eb5ff1..bb347294 100644
--- a/src/picture_frame.h
+++ b/src/picture_frame.h
@@ -19,6 +19,7 @@
#include <string>
#include <stdint.h>
+#include <boost/shared_ptr.hpp>
namespace ASDCP {
namespace JP2K {
@@ -28,6 +29,8 @@ namespace ASDCP {
namespace libdcp {
+class RGBAFrame;
+
class PictureFrame
{
public:
@@ -37,6 +40,8 @@ public:
uint8_t const * data () const;
int size () const;
+ boost::shared_ptr<RGBAFrame> rgba_frame () const;
+
private:
ASDCP::JP2K::FrameBuffer* _buffer;
};