Main Page | Modules | Class List | Directories | File List | Class 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_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 /* #ifndef _GAN_IMAGE_IO_H */

Generated on Sat May 21 23:52:47 2005 by  doxygen 1.4.3