1 /*! ========================================================================
4 ** Copyright (c) 2007 Paul Wise
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_MNG_H
23 #define __SYNFIG_TRGT_MNG_H
25 /* === H E A D E R S ======================================================= */
27 #include <synfig/target_scanline.h>
28 #include <synfig/string.h>
32 // #include <jpeglib.h>
34 #if !defined(MNG_SUPPORT_FULL)
35 #define MNG_SUPPORT_FULL 1
38 #if !defined(MNG_SUPPORT_READ)
39 #define MNG_SUPPORT_READ 1
42 #if !defined(MNG_SUPPORT_WRITE)
43 #define MNG_SUPPORT_WRITE 1
46 #if !defined(MNG_SUPPORT_DISPLAY)
47 #define MNG_SUPPORT_DISPLAY 1
50 #if !defined(MNG_ACCESS_CHUNKS)
51 #define MNG_ACCESS_CHUNKS 1
56 /* === M A C R O S ========================================================= */
58 /* === T Y P E D E F S ===================================================== */
60 /* === C L A S S E S & S T R U C T S ======================================= */
62 class mng_trgt : public synfig::Target_Scanline
64 SYNFIG_TARGET_MODULE_EXT
72 bool multi_image,ready;
74 synfig::String filename;
75 unsigned char *buffer;
76 synfig::Color *color_buffer;
79 unsigned char* zbuffer;
80 unsigned int zbuffer_len;
84 mng_trgt(const char *filename);
87 virtual bool set_rend_desc(synfig::RendDesc *desc);
89 virtual bool start_frame(synfig::ProgressCallback *cb);
90 virtual void end_frame();
92 virtual synfig::Color * start_scanline(int scanline);
93 virtual bool end_scanline();
96 /* === E N D =============================================================== */