11 |
|
#include <string.h> |
12 |
|
|
13 |
|
#include "platform.h" |
14 |
< |
#include "rtprocess.h" |
14 |
> |
#include "paths.h" |
15 |
|
#include "color.h" |
16 |
|
#include "resolu.h" |
17 |
|
|
18 |
|
#define dumpheader(fp) fwrite(headlines, 1, headlen, fp) |
19 |
|
|
20 |
|
int bradj = 0; /* brightness adjustment */ |
21 |
– |
|
21 |
|
int doflat = 1; /* produce flat file */ |
23 |
– |
|
22 |
|
int force = 0; /* force file overwrite? */ |
25 |
– |
|
23 |
|
int findframe = 0; /* find a specific frame? */ |
27 |
– |
|
24 |
|
int frameno = 0; /* current frame number */ |
25 |
|
int fmterr = 0; /* got input format error */ |
26 |
|
char *headlines; /* current header info. */ |
29 |
|
char *progname; |
30 |
|
|
31 |
|
static gethfunc addhline; |
32 |
+ |
static int transfer(char *ospec); |
33 |
+ |
static int loadheader(FILE *fp); |
34 |
|
|
35 |
|
|
36 |
< |
main(argc, argv) |
37 |
< |
int argc; |
40 |
< |
char *argv[]; |
36 |
> |
int |
37 |
> |
main(int argc, char *argv[]) |
38 |
|
{ |
39 |
|
char *ospec; |
40 |
|
int i; |
87 |
|
} |
88 |
|
|
89 |
|
|
90 |
< |
transfer(ospec) /* transfer a Radiance picture */ |
91 |
< |
char *ospec; |
90 |
> |
static int |
91 |
> |
transfer( /* transfer a Radiance picture */ |
92 |
> |
char *ospec |
93 |
> |
) |
94 |
|
{ |
95 |
|
char oname[PATH_MAX]; |
96 |
|
FILE *fp; |
219 |
|
} |
220 |
|
|
221 |
|
|
222 |
< |
loadheader(fp) /* load an info. header into memory */ |
223 |
< |
FILE *fp; |
222 |
> |
static int |
223 |
> |
loadheader( /* load an info. header into memory */ |
224 |
> |
FILE *fp |
225 |
> |
) |
226 |
|
{ |
227 |
|
fmterr = 0; frameno = 0; |
228 |
|
if (headlen) { /* free old header */ |