| 15 |
|
#include "color.h" |
| 16 |
|
#include "resolu.h" |
| 17 |
|
|
| 18 |
– |
extern int addhline(); |
| 19 |
– |
|
| 18 |
|
#define dumpheader(fp) fwrite(headlines, 1, headlen, fp) |
| 19 |
|
|
| 20 |
|
int bradj = 0; /* brightness adjustment */ |
| 23 |
– |
|
| 21 |
|
int doflat = 1; /* produce flat file */ |
| 25 |
– |
|
| 22 |
|
int force = 0; /* force file overwrite? */ |
| 27 |
– |
|
| 23 |
|
int findframe = 0; /* find a specific frame? */ |
| 29 |
– |
|
| 24 |
|
int frameno = 0; /* current frame number */ |
| 25 |
|
int fmterr = 0; /* got input format error */ |
| 26 |
|
char *headlines; /* current header info. */ |
| 28 |
|
|
| 29 |
|
char *progname; |
| 30 |
|
|
| 31 |
+ |
static gethfunc addhline; |
| 32 |
+ |
static int transfer(char *ospec); |
| 33 |
+ |
static int loadheader(FILE *fp); |
| 34 |
|
|
| 35 |
< |
main(argc, argv) |
| 36 |
< |
int argc; |
| 37 |
< |
char *argv[]; |
| 35 |
> |
|
| 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; |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
|
| 194 |
< |
int |
| 195 |
< |
addhline(s) /* add a line to our info. header */ |
| 196 |
< |
char *s; |
| 194 |
> |
static int |
| 195 |
> |
addhline( /* add a line to our info. header */ |
| 196 |
> |
char *s, |
| 197 |
> |
void *p |
| 198 |
> |
) |
| 199 |
|
{ |
| 200 |
|
char fmt[32]; |
| 201 |
|
int n; |
| 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 */ |