00001 #ifdef __cplusplus
00002 extern "C" {
00003 #endif
00004
00005 #define IO_PNG_VERSION 0.20100727
00006
00007
00008 unsigned char *read_png_u8(const char *fname, size_t *nx, size_t *ny, size_t *nc);
00009 unsigned char *read_png_u8_rgb(const char *fname, size_t *nx, size_t *ny);
00010 unsigned char *read_png_u8_gray(const char *fname, size_t *nx, size_t *ny);
00011 float *read_png_f32(const char *fname, size_t *nx, size_t *ny, size_t *nc);
00012 float *read_png_f32_rgb(const char *fname, size_t *nx, size_t *ny);
00013 float *read_png_f32_gray(const char *fname, size_t *nx, size_t *ny);
00014 int write_png_u8(const char *fname, const unsigned char *data, size_t nx, size_t ny, size_t nc);
00015 int write_png_f32(const char *fname, const float *data, size_t nx, size_t ny, size_t nc);
00016
00017 #ifdef __cplusplus
00018 }
00019 #endif