00001 /* === S Y N F I G ========================================================= */ 00025 /* === S T A R T =========================================================== */ 00026 00027 #ifndef __SYNFIG_TRGT_FFMPEG_H 00028 #define __SYNFIG_TRGT_FFMPEG_H 00029 00030 /* === H E A D E R S ======================================================= */ 00031 00032 #include <synfig/target_scanline.h> 00033 #include <synfig/string.h> 00034 #include <sys/types.h> 00035 #include <cstdio> 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 ffmpeg_trgt : public synfig::Target_Scanline 00044 { 00045 SYNFIG_TARGET_MODULE_EXT 00046 private: 00047 pid_t pid; 00048 int imagecount; 00049 bool multi_image; 00050 FILE *file; 00051 synfig::String filename; 00052 unsigned char *buffer; 00053 synfig::Color *color_buffer; 00054 public: 00055 ffmpeg_trgt(const char *filename); 00056 00057 virtual bool set_rend_desc(synfig::RendDesc *desc); 00058 virtual bool init(); 00059 virtual bool start_frame(synfig::ProgressCallback *cb); 00060 virtual void end_frame(); 00061 00062 virtual ~ffmpeg_trgt(); 00063 00064 virtual synfig::Color * start_scanline(int scanline); 00065 virtual bool end_scanline(); 00066 }; 00067 00068 /* === E N D =============================================================== */ 00069 00070 #endif