1 /*! ========================================================================
4 ** Copyright (c) 2007 Paul Wise
5 ** Copyright (c) 2007 Chris Moore
7 ** This package is free software; you can redistribute it and/or
8 ** modify it under the terms of the GNU General Public License as
9 ** published by the Free Software Foundation; either version 2 of
10 ** the License, or (at your option) any later version.
12 ** This package is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 ** General Public License for more details.
17 ** === N O T E S ===========================================================
19 ** ========================================================================= */
21 /* === S T A R T =========================================================== */
23 #ifndef __SYNFIG_TRGT_MNG_H
24 #define __SYNFIG_TRGT_MNG_H
26 /* === H E A D E R S ======================================================= */
28 #include <synfig/target_scanline.h>
29 #include <synfig/string.h>
30 #include <synfig/targetparam.h>
34 // #include <jpeglib.h>
36 #if !defined(MNG_SUPPORT_FULL)
37 #define MNG_SUPPORT_FULL 1
40 #if !defined(MNG_SUPPORT_READ)
41 #define MNG_SUPPORT_READ 1
44 #if !defined(MNG_SUPPORT_WRITE)
45 #define MNG_SUPPORT_WRITE 1
48 #if !defined(MNG_SUPPORT_DISPLAY)
49 #define MNG_SUPPORT_DISPLAY 1
52 #if !defined(MNG_ACCESS_CHUNKS)
53 #define MNG_ACCESS_CHUNKS 1
58 /* === M A C R O S ========================================================= */
60 /* === T Y P E D E F S ===================================================== */
62 /* === C L A S S E S & S T R U C T S ======================================= */
64 class mng_trgt : public synfig::Target_Scanline
66 SYNFIG_TARGET_MODULE_EXT
74 bool multi_image,ready;
76 synfig::String filename;
77 unsigned char *buffer;
78 synfig::Color *color_buffer;
81 unsigned char* zbuffer;
82 unsigned int zbuffer_len;
86 mng_trgt(const char *filename, const synfig::TargetParam& /* params */);
89 virtual bool set_rend_desc(synfig::RendDesc *desc);
91 virtual bool start_frame(synfig::ProgressCallback *cb);
92 virtual void end_frame();
94 virtual synfig::Color * start_scanline(int scanline);
95 virtual bool end_scanline();
98 /* === E N D =============================================================== */