1 |
– |
/* Copyright (c) 1986 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* aedimage.c - RADIANCE driver for AED 512 terminal. |
6 |
|
* |
10 |
|
|
11 |
|
#include <stdio.h> |
12 |
|
|
13 |
+ |
#include <math.h> |
14 |
+ |
|
15 |
|
#include <signal.h> |
16 |
|
|
17 |
|
#include <sys/ioctl.h> |
96 |
|
extern long ftell(); |
97 |
|
long scanpos[NROWS]; |
98 |
|
|
100 |
– |
extern double atof(); |
99 |
|
double exposure = 1.0; |
100 |
|
int wrong_fmt = 0; |
101 |
|
|
167 |
|
} |
168 |
|
|
169 |
|
|
170 |
+ |
int |
171 |
|
checkhead(line) /* deal with line from header */ |
172 |
|
char *line; |
173 |
|
{ |
179 |
|
formatval(fmt, line); |
180 |
|
wrong_fmt = strcmp(fmt, COLRFMT); |
181 |
|
} |
182 |
+ |
return(0); |
183 |
|
} |
184 |
|
|
185 |
|
|
244 |
|
} |
245 |
|
|
246 |
|
|
247 |
+ |
void |
248 |
|
eputs(s) |
249 |
|
char *s; |
250 |
|
{ |
252 |
|
} |
253 |
|
|
254 |
|
|
255 |
+ |
void |
256 |
|
quit(status) |
257 |
|
int status; |
258 |
|
{ |
522 |
|
picreadcm(map) /* do gamma correction */ |
523 |
|
colormap map; |
524 |
|
{ |
523 |
– |
extern double pow(); |
525 |
|
register int i, val; |
526 |
|
|
527 |
|
for (i = 0; i < 256; i++) { |