summaryrefslogtreecommitdiff
path: root/src/lib/imagemagick_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-15 00:14:28 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-15 00:14:28 +0100
commitbb767c7e338414beee132af3e96829c1448e214b (patch)
treebec2858dcc7225a9bcc2acd8170c25508f6df6cb /src/lib/imagemagick_decoder.h
parent66c9be6bdb1361e5681e094a0c8170d268aa9518 (diff)
Move things round a bit.
Diffstat (limited to 'src/lib/imagemagick_decoder.h')
-rw-r--r--src/lib/imagemagick_decoder.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/lib/imagemagick_decoder.h b/src/lib/imagemagick_decoder.h
new file mode 100644
index 000000000..707e6cacd
--- /dev/null
+++ b/src/lib/imagemagick_decoder.h
@@ -0,0 +1,63 @@
+#include "decoder.h"
+
+namespace Magick {
+ class Image;
+}
+
+class ImageMagickDecoder : public Decoder
+{
+public:
+ ImageMagickDecoder (boost::shared_ptr<const FilmState>, boost::shared_ptr<const Options>, Job *, Log *, bool, bool);
+
+ int length_in_frames () const {
+ return 1;
+ }
+
+ float frames_per_second () const {
+ return static_frames_per_second ();
+ }
+
+ 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;
+ }
+
+ static float static_frames_per_second () {
+ return 24;
+ }
+
+protected:
+ bool do_pass ();
+ PixelFormat pixel_format () const;
+
+ int time_base_numerator () const {
+ return 0;
+ }
+
+ int time_base_denominator () const {
+ return 0;
+ }
+
+ int sample_aspect_ratio_numerator () const {
+ /* XXX */
+ return 1;
+ }
+
+ int sample_aspect_ratio_denominator () const {
+ /* XXX */
+ return 1;
+ }
+
+private:
+ Magick::Image* _magick_image;
+ bool _done;
+};