00001
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _GAN_IMAGE_IO_H
00030 #define _GAN_IMAGE_IO_H
00031
00032 #include <gandalf/image/image_defs.h>
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00051 typedef enum
00052 {
00053 GAN_PNG_FORMAT,
00054 GAN_PBM_FORMAT,
00055 GAN_PGM_FORMAT,
00056 GAN_PPM_FORMAT,
00057 GAN_TIFF_FORMAT,
00058 GAN_JPEG_FORMAT,
00059 GAN_UNKNOWN_FORMAT
00060 } Gan_ImageFileFormat;
00061
00062 Gan_ImageFileFormat
00063 gan_image_interpret_format_string ( const char *format_string );
00064 Gan_Image *gan_image_read ( const char *filename,
00065 Gan_ImageFileFormat file_format,
00066 Gan_Image *image );
00067 Gan_Image *gan_image_read_stream ( FILE *infile,
00068 Gan_ImageFileFormat file_format,
00069 Gan_Image *image );
00070 Gan_Bool gan_image_write ( const char *filename,
00071 Gan_ImageFileFormat file_format,
00072 Gan_Image *image );
00073 Gan_Bool gan_image_write_stream ( FILE *outfile,
00074 Gan_ImageFileFormat file_format,
00075 Gan_Image *image );
00076
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088
00089 #endif