Make batch converter basically work.
[dcpomatic.git] / src / lib / imagemagick_decoder.h
index cf417d373e3906afee7aa9c4a09ba829bd436053..80a08f81f8374a3126a425ee413d0c0eedf21e29 100644 (file)
@@ -26,14 +26,11 @@ namespace Magick {
 class ImageMagickDecoder : public VideoDecoder
 {
 public:
-       ImageMagickDecoder (boost::shared_ptr<Film>, boost::shared_ptr<const DecodeOptions>, Job *);
+       ImageMagickDecoder (boost::shared_ptr<Film>, DecodeOptions);
 
-       float frames_per_second () const {
-               /* We don't know */
-               return 0;
-       }
+       float frames_per_second () const;
 
-       Size native_size () const;
+       libdcp::Size native_size () const;
 
        SourceFrame length () const {
                /* We don't know */
@@ -52,11 +49,8 @@ public:
                return 0;
        }
 
-       bool has_subtitles () const {
-               return false;
-       }
-
-       bool seek (SourceFrame);
+       bool seek (double);
+       bool seek_to_last ();
 
 protected:
        bool pass ();
@@ -85,4 +79,6 @@ private:
        
        std::list<std::string> _files;
        std::list<std::string>::iterator _iter;
+
+       boost::shared_ptr<Image> _image;
 };