1 /*! ========================================================================
4 ** Copyright (c) 2007 Chris Moore
6 ** This package is free software; you can redistribute it and/or
7 ** modify it under the terms of the GNU General Public License as
8 ** published by the Free Software Foundation; either version 2 of
9 ** the License, or (at your option) any later version.
11 ** This package is distributed in the hope that it will be useful,
12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 ** General Public License for more details.
16 ** === N O T E S ===========================================================
18 ** ========================================================================= */
20 /* === S T A R T =========================================================== */
22 #ifndef __SYNFIG_TRGT_MAGICKPP_H
23 #define __SYNFIG_TRGT_MAGICKPP_H
25 /* === H E A D E R S ======================================================= */
27 #include <synfig/target_scanline.h>
28 #include <synfig/string.h>
34 /* === M A C R O S ========================================================= */
36 /* === T Y P E D E F S ===================================================== */
38 /* === C L A S S E S & S T R U C T S ======================================= */
40 class magickpp_trgt
: public synfig::Target_Scanline
42 SYNFIG_TARGET_MODULE_EXT
48 synfig::String filename
;
49 unsigned char *buffer1
, *start_pointer
, *buffer_pointer
;
50 unsigned char *buffer2
, *previous_buffer_pointer
;
52 synfig::Color
*color_buffer
;
53 std::vector
<Magick::Image
> images
;
57 magickpp_trgt(const char *filename
) : filename(filename
) { }
58 virtual ~magickpp_trgt();
60 virtual bool set_rend_desc(synfig::RendDesc
*desc
);
63 virtual bool start_frame(synfig::ProgressCallback
*cb
);
64 virtual void end_frame();
66 virtual synfig::Color
* start_scanline(int scanline
);
67 virtual bool end_scanline();
70 /* === E N D =============================================================== */