summaryrefslogtreecommitdiff
path: root/src/lib/image.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-24 01:02:25 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-24 01:02:25 +0100
commit8dd9ea3086b4934f2719648ffa6333c0d106ff36 (patch)
tree15f334ab2d096d0a7f310c1427ff8a3107eae069 /src/lib/image.h
parentbe1862fefb1378c78bcc4bd6334694797755ea47 (diff)
Some const correctness.
Diffstat (limited to 'src/lib/image.h')
-rw-r--r--src/lib/image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/image.h b/src/lib/image.h
index 6b9ade99e..31035d272 100644
--- a/src/lib/image.h
+++ b/src/lib/image.h
@@ -70,6 +70,8 @@ public:
virtual bool aligned () const = 0;
+ virtual boost::shared_ptr<Image> clone () const = 0;
+
int components () const;
int lines (int) const;
@@ -118,6 +120,9 @@ private:
/* Not allowed */
FilterBufferImage (FilterBufferImage const &);
FilterBufferImage& operator= (FilterBufferImage const &);
+ boost::shared_ptr<Image> clone () const {
+ assert (false);
+ }
AVFilterBufferRef* _buffer;
int* _line_size;
@@ -139,6 +144,7 @@ public:
int * stride () const;
libdcp::Size size () const;
bool aligned () const;
+ boost::shared_ptr<Image> clone () const;
protected:
void allocate ();