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>
33 // #include <jpeglib.h>
35 #if !defined(MNG_SUPPORT_FULL)
36 #define MNG_SUPPORT_FULL 1
39 #if !defined(MNG_SUPPORT_READ)
40 #define MNG_SUPPORT_READ 1
43 #if !defined(MNG_SUPPORT_WRITE)
44 #define MNG_SUPPORT_WRITE 1
47 #if !defined(MNG_SUPPORT_DISPLAY)
48 #define MNG_SUPPORT_DISPLAY 1
51 #if !defined(MNG_ACCESS_CHUNKS)
52 #define MNG_ACCESS_CHUNKS 1
57 /* === M A C R O S ========================================================= */
59 /* === T Y P E D E F S ===================================================== */
61 /* === C L A S S E S & S T R U C T S ======================================= */
63 class mng_trgt : public synfig::Target_Scanline
65 SYNFIG_TARGET_MODULE_EXT
73 bool multi_image,ready;
75 synfig::String filename;
76 unsigned char *buffer;
77 synfig::Color *color_buffer;
80 unsigned char* zbuffer;
81 unsigned int zbuffer_len;
85 mng_trgt(const char *filename);
88 virtual bool set_rend_desc(synfig::RendDesc *desc);
90 virtual bool start_frame(synfig::ProgressCallback *cb);
91 virtual void end_frame();
93 virtual synfig::Color * start_scanline(int scanline);
94 virtual bool end_scanline();
97 /* === E N D =============================================================== */