Merge master.
[dcpomatic.git] / src / lib / imagemagick_decoder.h
index c4795b003732dd3c500d5e326df6de7fbecca131..52c7bec186495cdbe4026e7bce1d325d3d6a8211 100644 (file)
@@ -23,22 +23,19 @@ namespace Magick {
        class Image;
 }
 
+class ImageMagickContent;
+
 class ImageMagickDecoder : public VideoDecoder
 {
 public:
-       ImageMagickDecoder (boost::shared_ptr<Film>, boost::shared_ptr<const DecodeOptions>, Job *);
+       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;
@@ -52,15 +49,10 @@ public:
                return 0;
        }
 
-       bool has_subtitles () const {
-               return false;
-       }
-
        bool seek (double);
-       bool seek_to_last ();
+       bool pass ();
 
 protected:
-       bool pass ();
        PixelFormat pixel_format () const;
 
        int time_base_numerator () const {
@@ -82,8 +74,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;
 };