Efros-Leung
Exemplar-basedtexturesynthesis(Efros-Leung)
|
00001 #ifndef _IO_PNG_H 00002 #define _IO_PNG_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 #define IO_PNG_VERSION "0.20110616" 00009 00010 #include <stddef.h> 00011 00012 unsigned char *io_png_read_u8(const char *fname, size_t *nxp, size_t *nyp, size_t *ncp); 00013 unsigned char *io_png_read_u8_rgb(const char *fname, size_t *nxp, size_t *nyp); 00014 unsigned char *io_png_read_u8_gray(const char *fname, size_t *nxp, size_t *nyp); 00015 float *io_png_read_f32(const char *fname, size_t *nxp, size_t *nyp, size_t *ncp); 00016 float *io_png_read_f32_rgb(const char *fname, size_t *nxp, size_t *nyp); 00017 float *io_png_read_f32_gray(const char *fname, size_t *nxp, size_t *nyp); 00018 int io_png_write_u8(const char *fname, const unsigned char *data, size_t nx, size_t ny, size_t nc); 00019 int io_png_write_f32(const char *fname, const float *data, size_t nx, size_t ny, size_t nc); 00020 00021 #ifdef __cplusplus 00022 } 00023 #endif 00024 00025 #endif /* !_IO_PNG_H */