00001 /* === S Y N F I G ========================================================= */ 00025 /* === S T A R T =========================================================== */ 00026 00027 #ifndef __SYNFIG_MPTR_IMAGEMAGICK_H 00028 #define __SYNFIG_MPTR_IMAGEMAGICK_H 00029 00030 /* === H E A D E R S ======================================================= */ 00031 00032 #include <synfig/importer.h> 00033 #include <stdio.h> 00034 #include "string.h" 00035 #include <synfig/surface.h> 00036 00037 /* === M A C R O S ========================================================= */ 00038 00039 /* === T Y P E D E F S ===================================================== */ 00040 00041 /* === C L A S S E S & S T R U C T S ======================================= */ 00042 00043 class imagemagick_mptr : public synfig::Importer 00044 { 00045 SYNFIG_IMPORTER_MODULE_EXT 00046 private: 00047 synfig::String filename; 00048 FILE *file; 00049 int cur_frame; 00050 synfig::Surface frame; 00051 00052 public: 00053 imagemagick_mptr(const char *filename); 00054 00055 ~imagemagick_mptr(); 00056 00057 virtual bool get_frame(synfig::Surface &surface,synfig::Time time, synfig::ProgressCallback *callback); 00058 }; 00059 00060 /* === E N D =============================================================== */ 00061 00062 #endif