*/
-#include "decoder.h"
+#include "video_decoder.h"
namespace Magick {
class Image;
}
-class ImageMagickDecoder : public Decoder
+class ImageMagickContent;
+
+class ImageMagickDecoder : public VideoDecoder
{
public:
- ImageMagickDecoder (boost::shared_ptr<Film>, boost::shared_ptr<const Options>, Job *, bool, bool);
-
- float frames_per_second () const {
- return static_frames_per_second ();
- }
+ ImageMagickDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const ImageMagickContent>);
- Size native_size () const;
-
- int audio_channels () const {
- return 0;
- }
-
- int audio_sample_rate () const {
- return 0;
- }
-
- AVSampleFormat audio_sample_format () const {
- return AV_SAMPLE_FMT_NONE;
- }
-
- int64_t audio_channel_layout () const {
- return 0;
+ float video_frame_rate () const {
+ return 24;
}
- bool has_subtitles () const {
- return false;
- }
+ libdcp::Size native_size () const;
+ ContentVideoFrame video_length () const;
- static float static_frames_per_second () {
- return 24;
- }
+ bool seek (double);
+ bool pass ();
protected:
- bool do_pass ();
PixelFormat pixel_format () const;
int time_base_numerator () const {
}
private:
- Magick::Image* _magick_image;
- bool _done;
+ boost::shared_ptr<const ImageMagickContent> _imagemagick_content;
+ boost::shared_ptr<Image> _image;
+ ContentVideoFrame _position;
};