marked stable
[synfig.git] / synfig-core / tags / stable / src / modules / mod_imagemagick / trgt_imagemagick.h
1 /*! ========================================================================
2 ** Sinfg
3 ** Template Header File
4 ** $Id: trgt_imagemagick.h,v 1.1.1.1 2005/01/04 01:23:11 darco Exp $
5 **
6 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
7 **
8 ** This software and associated documentation
9 ** are CONFIDENTIAL and PROPRIETARY property of
10 ** the above-mentioned copyright holder.
11 **
12 ** You may not copy, print, publish, or in any
13 ** other way distribute this software without
14 ** a prior written agreement with
15 ** the copyright holder.
16 **
17 ** === N O T E S ===========================================================
18 **
19 ** ========================================================================= */
20
21 /* === S T A R T =========================================================== */
22
23 #ifndef __SINFG_TRGT_IMAGEMAGICK_H
24 #define __SINFG_TRGT_IMAGEMAGICK_H
25
26 /* === H E A D E R S ======================================================= */
27
28 #include <sinfg/target_scanline.h>
29 #include <sinfg/string.h>
30 #include <cstdio>
31
32 /* === M A C R O S ========================================================= */
33
34 /* === T Y P E D E F S ===================================================== */
35
36 /* === C L A S S E S & S T R U C T S ======================================= */
37
38
39 class imagemagick_trgt : public sinfg::Target_Scanline
40 {
41         SINFG_TARGET_MODULE_EXT
42 private:
43         int imagecount;
44         bool multi_image;
45         FILE *file;
46         sinfg::String filename;
47         unsigned char *buffer;
48         sinfg::Color *color_buffer;
49         sinfg::PixelFormat pf;
50 public:
51         imagemagick_trgt(const char *filename);
52         virtual ~imagemagick_trgt();
53
54         virtual bool set_rend_desc(sinfg::RendDesc *desc);
55         virtual bool init();
56         virtual bool start_frame(sinfg::ProgressCallback *cb);
57         virtual void end_frame();       
58         virtual sinfg::Color * start_scanline(int scanline);
59         virtual bool end_scanline();
60 };
61
62 /* === E N D =============================================================== */
63
64 #endif