Main Page   Modules   Compound List   File List   Compound Members   File Members  

image_io.h

Go to the documentation of this file.
00001 
00014 /* This library is free software; you can redistribute it and/or
00015    modify it under the terms of the GNU Lesser General Public
00016    License as published by the Free Software Foundation; either
00017    version 2.1 of the License, or (at your option) any later version.
00018 
00019    This library is distributed in the hope that it will be useful,
00020    but WITHOUT ANY WARRANTY; without even the implied warranty of
00021    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022    Lesser General Public License for more details.
00023 
00024    You should have received a copy of the GNU Lesser General Public
00025    License along with this library; if not, write to the Free Software
00026    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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 /* #ifndef _GAN_IMAGE_IO_H */

Generated on Mon Oct 13 16:14:32 2003 by doxygen1.3-rc1