ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/aedimage.c
(Generate patch)

Comparing ray/src/px/aedimage.c (file contents):
Revision 2.1 by greg, Tue Nov 12 16:05:36 1991 UTC vs.
Revision 2.5 by greg, Sat Feb 22 02:07:27 2003 UTC

# Line 1 | Line 1
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   *
# Line 13 | Line 10 | static char SCCSid[] = "$SunId$ LBL";
10  
11   #include  <stdio.h>
12  
13 + #include  <math.h>
14 +
15   #include  <signal.h>
16  
17   #include  <sys/ioctl.h>
# Line 97 | Line 96 | FILE  *fin;
96   extern long  ftell();
97   long  scanpos[NROWS];
98  
100 extern double  atof();
99   double  exposure = 1.0;
100   int  wrong_fmt = 0;
101  
# Line 169 | Line 167 | userr:
167   }
168  
169  
170 + int
171   checkhead(line)                         /* deal with line from header */
172   char  *line;
173   {
# Line 180 | Line 179 | char  *line;
179                  formatval(fmt, line);
180                  wrong_fmt = strcmp(fmt, COLRFMT);
181          }
182 +        return(0);
183   }
184  
185  
# Line 244 | Line 244 | char  *err;
244   }
245  
246  
247 + void
248   eputs(s)
249   char  *s;
250   {
# Line 251 | Line 252 | char  *s;
252   }
253  
254  
255 + void
256   quit(status)
257   int  status;
258   {
# Line 520 | Line 522 | int  offset[3];
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++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines