00001 00016 /* This library is free software; you can redistribute it and/or 00017 modify it under the terms of the GNU Lesser General Public 00018 License as published by the Free Software Foundation; either 00019 version 2.1 of the License, or (at your option) any later version. 00020 00021 This library is distributed in the hope that it will be useful, 00022 but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 Lesser General Public License for more details. 00025 00026 You should have received a copy of the GNU Lesser General Public 00027 License along with this library; if not, write to the Free Software 00028 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00029 */ 00030 00031 #ifndef _GAN_IMAGE_PNG_IO_H 00032 #define _GAN_IMAGE_PNG_IO_H 00033 00034 #include <stdio.h> 00035 #include <gandalf/common/misc_defs.h> 00036 #include <gandalf/image/image_defs.h> 00037 00038 #ifdef __cplusplus 00039 extern "C" { 00040 #endif 00041 00042 /* only compile if you have PNG */ 00043 #ifdef HAVE_PNG 00044 00045 /* Prototypes for public functions in png_io.c */ 00046 Gan_Image* gan_read_png_image_stream ( FILE *infile, Gan_Image *image, 00047 double gam ); 00048 Gan_Image* gan_read_png_image ( const char *filename, Gan_Image *image, 00049 double gam ); 00050 Gan_Bool gan_write_png_image_stream ( FILE *outfile, Gan_Image *image, 00051 double gam ); 00052 Gan_Bool gan_write_png_image ( const char *filename, Gan_Image *image, 00053 double gam ); 00054 00055 #endif /* #ifdef HAVE_PNG */ 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif /* #ifndef _GAN_IMAGE_PNG_IO_H */