summaryrefslogtreecommitdiff
path: root/src/lib/image.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-12 23:45:44 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-12 23:45:44 +0000
commit5161626c3c28ba528511a8b211286a5e81a0f02a (patch)
tree2690e09169d7d0e36167c842eb8260ae7a2cfe04 /src/lib/image.h
parentc8b0b0f61a1188b3ce8010a65e4c617a0e66eaa1 (diff)
Untested; extend CompactImage to return a AVPicture.
Diffstat (limited to 'src/lib/image.h')
-rw-r--r--src/lib/image.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/lib/image.h b/src/lib/image.h
index b2b987279..bb4a32319 100644
--- a/src/lib/image.h
+++ b/src/lib/image.h
@@ -138,29 +138,15 @@ class CompactImage : public SimpleImage
public:
CompactImage (AVPixelFormat, Size);
CompactImage (boost::shared_ptr<Image>);
-};
-
-/** @class RGBFrameImage
- * @brief An RGB image that is held within an AVFrame.
- */
-class RGBFrameImage : public Image
-{
-public:
- RGBFrameImage (Size);
- ~RGBFrameImage ();
- uint8_t ** data () const;
- int * line_size () const;
- int * stride () const;
- Size size () const;
- AVFrame * frame () const {
- return _frame;
+ AVPicture const * picture () const {
+ return &_picture;
}
private:
- Size _size;
- AVFrame* _frame;
- uint8_t* _data;
+ void setup_picture ();
+
+ AVPicture _picture;
};
#endif