1 /*! ========================================================================
3 ** Template Header File
4 ** $Id: mptr_png.h,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
6 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
8 ** This software and associated documentation
9 ** are CONFIDENTIAL and PROPRIETARY property of
10 ** the above-mentioned copyright holder.
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.
17 ** === N O T E S ===========================================================
19 ** ========================================================================= */
21 /* === S T A R T =========================================================== */
23 #ifndef __SYNFIG_MPTR_PNG_H
24 #define __SYNFIG_MPTR_PNG_H
26 /* === H E A D E R S ======================================================= */
28 #include <synfig/importer.h>
29 #include <synfig/string.h>
30 #include <synfig/surface.h>
33 /* === M A C R O S ========================================================= */
35 /* === T Y P E D E F S ===================================================== */
37 /* === C L A S S E S & S T R U C T S ======================================= */
39 class png_mptr : public synfig::Importer
41 SYNFIG_IMPORTER_MODULE_EXT
43 synfig::String filename;
44 synfig::Surface surface_buffer;
50 static void png_out_error(png_struct *png_data,const char *msg);
51 static void png_out_warning(png_struct *png_data,const char *msg);
52 static int read_chunk_callback(png_struct *png_data, png_unknown_chunkp chunk);
55 png_mptr(const char *filename);
58 virtual bool get_frame(synfig::Surface &,synfig::Time, synfig::ProgressCallback *);
61 /* === E N D =============================================================== */