Merge branch 'master' of /home/carl/git/dvdomatic
[dcpomatic.git] / src / lib / imagemagick_decoder.h
index 6506d0177f1196667eccfe7d8eab5dbb6680f3f3..0e375f6e9e3127a040f862d014189e1d689527ca 100644 (file)
 
 */
 
-#include "decoder.h"
+#include "video_decoder.h"
 
 namespace Magick {
        class Image;
 }
 
-class ImageMagickDecoder : public Decoder
+class ImageMagickDecoder : public VideoDecoder
 {
 public:
-       ImageMagickDecoder (boost::shared_ptr<Film>, boost::shared_ptr<const Options>, Job *);
+       ImageMagickDecoder (boost::shared_ptr<Film>, DecodeOptions);
 
        float frames_per_second () const {
                /* We don't know */
                return 0;
        }
 
-       Size native_size () const;
+       libdcp::Size native_size () const;
+
+       SourceFrame length () const {
+               /* We don't know */
+               return 0;
+       }
 
        int audio_channels () const {
                return 0;
@@ -51,6 +56,9 @@ public:
                return false;
        }
 
+       bool seek (double);
+       bool seek_to_last ();
+
 protected:
        bool pass ();
        PixelFormat pixel_format () const;
@@ -74,6 +82,8 @@ protected:
        }
 
 private:
+       void film_changed (Film::Property);
+       
        std::list<std::string> _files;
        std::list<std::string>::iterator _iter;
 };