13 |
|
|
14 |
|
#include <stdio.h> |
15 |
|
|
16 |
+ |
#include <math.h> |
17 |
+ |
|
18 |
|
#include <signal.h> |
19 |
|
|
20 |
|
#include <sys/ioctl.h> |
99 |
|
extern long ftell(); |
100 |
|
long scanpos[NROWS]; |
101 |
|
|
100 |
– |
extern double atof(); |
102 |
|
double exposure = 1.0; |
103 |
|
int wrong_fmt = 0; |
104 |
|
|
170 |
|
} |
171 |
|
|
172 |
|
|
173 |
+ |
int |
174 |
|
checkhead(line) /* deal with line from header */ |
175 |
|
char *line; |
176 |
|
{ |
182 |
|
formatval(fmt, line); |
183 |
|
wrong_fmt = strcmp(fmt, COLRFMT); |
184 |
|
} |
185 |
+ |
return(0); |
186 |
|
} |
187 |
|
|
188 |
|
|
523 |
|
picreadcm(map) /* do gamma correction */ |
524 |
|
colormap map; |
525 |
|
{ |
523 |
– |
extern double pow(); |
526 |
|
register int i, val; |
527 |
|
|
528 |
|
for (i = 0; i < 256; i++) { |