diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-25 13:44:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-25 13:44:02 +0100 |
| commit | 7b2ec1dd69951649f2c912fcf90b22913b1f6c3a (patch) | |
| tree | b25ae258f6bb14b06f6d8079f6bb8daf81811470 /src/lib/image.h | |
| parent | 6aa1a3e3808319d26659d3008a83f79f695fb6b2 (diff) | |
Remove Image::clone in favour of a copy constructor for SimpleImage; clean up A/B transcoder slightly; fix combiner if image strides differ; try to fix problems when destroying Encoders; fix SimpleImage copy constructor to cope with aligned images; don't call encoder::process_end if the encode throws an exception.
Diffstat (limited to 'src/lib/image.h')
| -rw-r--r-- | src/lib/image.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/image.h b/src/lib/image.h index 31035d272..62961a92e 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -70,8 +70,6 @@ public: virtual bool aligned () const = 0; - virtual boost::shared_ptr<Image> clone () const = 0; - int components () const; int lines (int) const; @@ -120,9 +118,6 @@ private: /* Not allowed */ FilterBufferImage (FilterBufferImage const &); FilterBufferImage& operator= (FilterBufferImage const &); - boost::shared_ptr<Image> clone () const { - assert (false); - } AVFilterBufferRef* _buffer; int* _line_size; @@ -136,6 +131,7 @@ class SimpleImage : public Image public: SimpleImage (AVPixelFormat, libdcp::Size, bool); SimpleImage (SimpleImage const &); + SimpleImage (boost::shared_ptr<const Image>); SimpleImage& operator= (SimpleImage const &); ~SimpleImage (); @@ -144,7 +140,6 @@ public: int * stride () const; libdcp::Size size () const; bool aligned () const; - boost::shared_ptr<Image> clone () const; protected: void allocate (); |
