Merge master; fix crash on new film.
[dcpomatic.git] / src / lib / image.h
index 31035d272d99a33f4791ff210d0cff23db47e991..de03d0e3f60485a8d316deb00cef21ad80bc92f7 100644 (file)
@@ -21,8 +21,8 @@
  *  @brief A set of classes to describe video images.
  */
 
-#ifndef DVDOMATIC_IMAGE_H
-#define DVDOMATIC_IMAGE_H
+#ifndef DCPOMATIC_IMAGE_H
+#define DCPOMATIC_IMAGE_H
 
 #include <string>
 #include <boost/shared_ptr.hpp>
@@ -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 ();