8 #define IO_PNG_VERSION "0.20110608" 13 unsigned char *
io_png_read_u8(
const char *fname,
size_t *nxp,
size_t *nyp,
size_t *ncp);
16 float *
io_png_read_f32(
const char *fname,
size_t *nxp,
size_t *nyp,
size_t *ncp);
19 int io_png_write_u8(
const char *fname,
const unsigned char *data,
size_t nx,
size_t ny,
size_t nc);
20 int io_png_write_f32(
const char *fname,
const float *data,
size_t nx,
size_t ny,
size_t nc);
float * io_png_read_f32_gray(const char *fname, size_t *nxp, size_t *nyp)
read a PNG file into a 32bit float array, converted to gray
Definition: io_png.c:415
unsigned char * io_png_read_u8_rgb(const char *fname, size_t *nxp, size_t *nyp)
read a PNG file into a 8bit integer array, converted to RGB
Definition: io_png.c:268
unsigned char * io_png_read_u8(const char *fname, size_t *nxp, size_t *nyp, size_t *ncp)
read a PNG file into a 8bit integer array
Definition: io_png.c:255
float * io_png_read_f32(const char *fname, size_t *nxp, size_t *nyp, size_t *ncp)
read a PNG file into a 32bit float array
Definition: io_png.c:364
int io_png_write_f32(const char *fname, const float *data, size_t nx, size_t ny, size_t nc)
write a float array into a PNG file
Definition: io_png.c:669
float * io_png_read_f32_rgb(const char *fname, size_t *nxp, size_t *nyp)
read a PNG file into a 32bit float array, converted to RGB
Definition: io_png.c:376
int io_png_write_u8(const char *fname, const unsigned char *data, size_t nx, size_t ny, size_t nc)
write a 8bit unsigned integer array into a PNG file
Definition: io_png.c:650
unsigned char * io_png_read_u8_gray(const char *fname, size_t *nxp, size_t *nyp)
read a PNG file into a 8bit integer array, converted to gray
Definition: io_png.c:310