-
Notifications
You must be signed in to change notification settings - Fork 0
/
inout.h
32 lines (26 loc) · 945 Bytes
/
inout.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* inout.h - routines for input and output
*
* Copyright 2004-7 Mark J. Stock mstock@umich.edu
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#define FALSE 0
#define TRUE 1
#define MAXCHARS 255
#define png_infopp_NULL (png_infopp)NULL
#define int_p_NULL (int*)NULL
#include "png.h"
int write_png (const char*, const int, const int, const int, const int, float**, float, float, float**, float, float, float**, float, float);
int read_png_res (const char *infile, int *hgt, int *wdt);
int read_png (const char*, const int, const int, const int, const int, const float, const int, float**, float, float, float**, float, float, float**, float, float);
png_byte** allocate_2d_array_pb (const int,const int,const int);
png_byte** allocate_2d_rgb_array_pb (const int,const int,const int);
int free_2d_array_pb (png_byte**);
float** allocate_2d_array_f(const int,const int);
int free_2d_array_f(float**);
#ifdef __cplusplus
}
#endif