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_DPX_FORMAT,
00060 GAN_CINEON_FORMAT,
00061 GAN_UNKNOWN_FORMAT
00062 } Gan_ImageFileFormat;
00063
00064 Gan_ImageFileFormat
00065 gan_image_interpret_format_string ( const char *format_string );
00066 Gan_Image *gan_image_read ( const char *filename,
00067 Gan_ImageFileFormat file_format,
00068 Gan_Image *image );
00069 Gan_Image *gan_image_read_stream ( FILE *infile,
00070 Gan_ImageFileFormat file_format,
00071 Gan_Image *image );
00072 Gan_Bool gan_image_write ( const char *filename,
00073 Gan_ImageFileFormat file_format,
00074 Gan_Image *image );
00075 Gan_Bool gan_image_write_stream ( FILE *outfile,
00076 Gan_ImageFileFormat file_format,
00077 Gan_Image *image );
00078
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090
00091 #endif