Functions | |
FLGR_Data2D * | flgr2d_load_bmp (char *filename) |
FLGR_Data2D * | flgr2d_load_jpeg (char *filename) |
FLGR_Data2D * | flgr2d_load_pgm (char *filename) |
FLGR_Data2D * | flgr2d_load_png (char *filename) |
FLGR_Data2D * | flgr2d_load_raw_desc (FILE *f, int byte_offset, int size_y, int size_x, int spp, FLGR_Type type) |
FLGR_Data2D * | flgr2d_load_raw_file (char *filename, int byte_offset, int size_y, int size_x, int spp, FLGR_Type type) |
FLGR_Data2D * | flgr2d_load_text_desc (FILE *f, int size_y, int size_x, int spp, FLGR_Type type) |
FLGR_Data2D * | flgr2d_load_text_file (char *filename, int size_y, int size_x, int spp, FLGR_Type type) |
FLGR_Data2D * | flgr2d_load_tiff (char *filename) |
char * | flgr2d_load_tiff_info (char *filename) |
FLGR_Ret | flgr2d_save_jpeg (FLGR_Data2D *img, char *filename, int quality) |
FLGR_Ret | flgr2d_save_pgm (FLGR_Data2D *img, char *filename, int format) |
FLGR_Ret | flgr2d_save_png (FLGR_Data2D *img, char *filename) |
FLGR_Ret | flgr2d_save_raw_desc (FLGR_Data2D *dat, FILE *f) |
FLGR_Ret | flgr2d_save_text_desc (FLGR_Data2D *img, FILE *f) |
FLGR_Ret | flgr2d_save_tiff (FLGR_Data2D *img, char *filename, int quality) |
char * | flgr_get_supported_image_format (void) |
FLGR_Data2D* flgr2d_load_bmp | ( | char * | filename | ) |
Load a BMP Image File
filename | : String for bmp file name |
Definition at line 1651 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_jpeg | ( | char * | filename | ) |
Load a JPEG Image File
filename | : String for png file name |
Definition at line 513 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_pgm | ( | char * | filename | ) |
Load a Gray level PGM Image File (P2 or P5)
filename | : String for pgm file name |
Definition at line 1491 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_png | ( | char * | filename | ) |
Load a Gray level PNG Image File
filename | : String for png file name |
Definition at line 158 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_raw_desc | ( | FILE * | f, | |
int | byte_offset, | |||
int | size_y, | |||
int | size_x, | |||
int | spp, | |||
FLGR_Type | type | |||
) |
Load a raw from a file descriptor.
The descriptor is not closed.
f | : file descriptor | |
byte_offset | : how many byte to skip (to skip header) | |
size_x | : image width | |
size_y | : image height | |
spp | : how many sample per pixels | |
type | : data type to use |
Definition at line 1162 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_raw_file | ( | char * | filename, | |
int | byte_offset, | |||
int | size_y, | |||
int | size_x, | |||
int | spp, | |||
FLGR_Type | type | |||
) |
Load a raw image File
filename | : String for raw file name | |
byte_offset | : how many byte to skip (to skip header) | |
size_x | : image width | |
size_y | : image height | |
spp | : how many sample per pixels | |
type | : data type to use |
Definition at line 1208 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_text_desc | ( | FILE * | f, | |
int | size_y, | |||
int | size_x, | |||
int | spp, | |||
FLGR_Type | type | |||
) |
Load a text from a file descriptor.
The descriptor is not closed.
f | : file descriptor | |
size_x | : image width | |
size_y | : image height | |
spp | : how many sample per pixels | |
type | : data type to use |
Definition at line 1287 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_text_file | ( | char * | filename, | |
int | size_y, | |||
int | size_x, | |||
int | spp, | |||
FLGR_Type | type | |||
) |
Load a text file and copy values to an images
filename | : String for raw file name | |
size_x | : image width | |
size_y | : image height | |
spp | : how many sample per pixels | |
type | : data type to use |
Definition at line 1363 of file flgrImageIO.c.
FLGR_Data2D* flgr2d_load_tiff | ( | char * | filename | ) |
Load a Tiff Image File
filename | : String for png file name |
Definition at line 983 of file flgrImageIO.c.
char* flgr2d_load_tiff_info | ( | char * | filename | ) |
Get Tiff Image Informations
filename | : String for png file name |
Definition at line 708 of file flgrImageIO.c.
FLGR_Ret flgr2d_save_jpeg | ( | FLGR_Data2D * | img, | |
char * | filename, | |||
int | quality | |||
) |
Save Image to JPEG File format
img | : FLGR_Data2D | |
quality | : Value in [0;100] | |
filename | : string for filename |
Definition at line 605 of file flgrImageIO.c.
FLGR_Ret flgr2d_save_pgm | ( | FLGR_Data2D * | img, | |
char * | filename, | |||
int | format | |||
) |
Save a Gray level Image in PGM File format
img | : FLGR_Data2D | |
format | : 2 for P2 or 5 for P5 | |
filename | : string for file name (if no extension is given, '.pgm' is concatened) |
Definition at line 1574 of file flgrImageIO.c.
FLGR_Ret flgr2d_save_png | ( | FLGR_Data2D * | img, | |
char * | filename | |||
) |
Save a Gray level Image in PNG File format
img | : FLGR_Data2D | |
filename | : string for filename (if no extension is given, '.png' is concatened) |
Definition at line 334 of file flgrImageIO.c.
FLGR_Ret flgr2d_save_raw_desc | ( | FLGR_Data2D * | dat, | |
FILE * | f | |||
) |
sav a raw to a file descriptor.
dat | : 2d data to save | |
f | : file descriptor |
Definition at line 1240 of file flgrImageIO.c.
FLGR_Ret flgr2d_save_text_desc | ( | FLGR_Data2D * | img, | |
FILE * | f | |||
) |
save an image to a text file
dat | : 2d data to save | |
f | : file descriptor |
Definition at line 1395 of file flgrImageIO.c.
FLGR_Ret flgr2d_save_tiff | ( | FLGR_Data2D * | img, | |
char * | filename, | |||
int | quality | |||
) |
Save Image to Tiff File format
img | : FLGR_Data2D | |
filename | : string for filename | |
quality | : tiff quality |
Definition at line 1121 of file flgrImageIO.c.
char* flgr_get_supported_image_format | ( | void | ) |
Get supported image file format
Definition at line 140 of file flgrImageIO.c.