Merge master.
[dcpomatic.git] / src / lib / imagemagick_decoder.h
index 2f4e2c9677a64e9a162f49a27645be9561f0840b..cb524b44ba2bad08b9fabcde78f7a815d72ccfa3 100644 (file)
@@ -23,22 +23,19 @@ namespace Magick {
        class Image;
 }
 
+class ImageMagickContent;
+
 class ImageMagickDecoder : public VideoDecoder
 {
 public:
-       ImageMagickDecoder (boost::shared_ptr<Film>, DecodeOptions);
+       ImageMagickDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const ImageMagickContent>);
 
-       float frames_per_second () const {
-               /* We don't know */
-               return 0;
+       float video_frame_rate () const {
+               return 24;
        }
 
        libdcp::Size native_size () const;
-
-       SourceFrame length () const {
-               /* We don't know */
-               return 0;
-       }
+       ContentVideoFrame video_length () const;
 
        int audio_channels () const {
                return 0;
@@ -54,9 +51,9 @@ public:
 
        bool seek (double);
        bool seek_to_last ();
+       bool pass ();
 
 protected:
-       bool pass ();
        PixelFormat pixel_format () const;
 
        int time_base_numerator () const {
@@ -78,8 +75,6 @@ protected:
        }
 
 private:
-       void film_changed (Film::Property);
-       
-       std::list<std::string> _files;
-       std::list<std::string>::iterator _iter;
+       boost::shared_ptr<const ImageMagickContent> _imagemagick_content;
+       ContentVideoFrame _position;
 };