00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024
00025
00026 #ifndef __FLGR_IMAGE_IO_H
00027 #define __FLGR_IMAGE_IO_H
00028
00029 #include <flgrCoreDll.h>
00030 #include <flgrCoreErrors.h>
00031 #include <flgrCoreTypes.h>
00032 #include <flgrCoreData.h>
00033
00034 EXPORT_LIB char *flgr_get_supported_image_format(void);
00035
00036 EXPORT_LIB int flgr_check_extension(char *filename, char *extToCheck);
00037 EXPORT_LIB char *flgr_set_extension(char *filename, char *ext);
00038
00039 EXPORT_LIB FLGR_Data2D *flgr2d_load_raw_file(char *filename, int byte_offset, int size_y, int size_x, int spp, FLGR_Type type);
00040 EXPORT_LIB FLGR_Data2D *flgr2d_load_raw_desc(FILE *f, int byte_offset, int size_y, int size_x, int spp, FLGR_Type type);
00041
00042 EXPORT_LIB FLGR_Data2D *flgr2d_load_text_file(char *filename, int size_y, int size_x, int spp, FLGR_Type type);
00043 EXPORT_LIB FLGR_Data2D *flgr2d_load_text_desc(FILE *f, int size_y, int size_x, int spp, FLGR_Type type);
00044
00045 EXPORT_LIB FLGR_Data2D *flgr2d_load_pgm(char *filename);
00046 EXPORT_LIB FLGR_Data2D *flgr2d_load_bmp(char *filename);
00047 EXPORT_LIB FLGR_Data2D *flgr2d_load_png(char *filename);
00048 EXPORT_LIB FLGR_Data2D *flgr2d_load_jpeg(char *filename);
00049 EXPORT_LIB FLGR_Data2D *flgr2d_load_tiff(char *filename);
00050 EXPORT_LIB char *flgr2d_load_tiff_info(char *filename);
00051
00052 EXPORT_LIB FLGR_Ret flgr2d_save_raw_desc(FLGR_Data2D *dat, FILE *f);
00053 EXPORT_LIB FLGR_Ret flgr2d_save_text_desc(FLGR_Data2D *dat, FILE *f);
00054
00055 EXPORT_LIB FLGR_Ret flgr2d_save_png(FLGR_Data2D *img, char *filename);
00056 EXPORT_LIB FLGR_Ret flgr2d_save_pgm(FLGR_Data2D *img, char *filename, int format);
00057 EXPORT_LIB FLGR_Ret flgr2d_save_jpeg(FLGR_Data2D *img, char *filename, int quality);
00058 EXPORT_LIB FLGR_Ret flgr2d_save_tiff(FLGR_Data2D *img, char *filename, int quality);
00059
00060
00061 #endif
00062
00063 #ifdef __cplusplus
00064 }
00065 #endif