X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimagemagick_decoder.h;h=e7c9dee9a3ac35373668433e6208d02128aafc0a;hb=47f25009bcbc765e397bcb471dd361a511c99daf;hp=6f426f308058a403330af912baa0acdc7d58b281;hpb=dedac27070ac5ad65265a0db1fa316b3e436cea7;p=dcpomatic.git diff --git a/src/lib/imagemagick_decoder.h b/src/lib/imagemagick_decoder.h index 6f426f308..e7c9dee9a 100644 --- a/src/lib/imagemagick_decoder.h +++ b/src/lib/imagemagick_decoder.h @@ -23,44 +23,24 @@ namespace Magick { class Image; } +class ImageMagickContent; + class ImageMagickDecoder : public VideoDecoder { public: - ImageMagickDecoder (boost::shared_ptr, boost::shared_ptr, Job *); - - float frames_per_second () const { - /* We don't know */ - return 0; - } - - Size native_size () const; - - SourceFrame length () const { - /* We don't know */ - return 0; - } - - int audio_channels () const { - return 0; - } + ImageMagickDecoder (boost::shared_ptr, boost::shared_ptr); - int audio_sample_rate () const { - return 0; + float video_frame_rate () const { + return 24; } - int64_t audio_channel_layout () const { - return 0; - } - - bool has_subtitles () const { - return false; - } + libdcp::Size native_size () const; + ContentVideoFrame video_length () const; bool seek (double); - bool seek_to_last (); + bool pass (); protected: - bool pass (); PixelFormat pixel_format () const; int time_base_numerator () const { @@ -82,8 +62,7 @@ protected: } private: - void film_changed (Film::Property); - - std::list _files; - std::list::iterator _iter; + boost::shared_ptr _imagemagick_content; + boost::shared_ptr _image; + ContentVideoFrame _position; };