1 |
– |
/* Copyright (c) 1991 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 |
|
* ra_t16.c - program to convert between RADIANCE and |
6 |
|
* Targa 16, 24 and 32-bit images. |
14 |
|
#include <fcntl.h> |
15 |
|
#endif |
16 |
|
|
17 |
+ |
#include <time.h> |
18 |
+ |
|
19 |
|
#include <math.h> |
20 |
|
|
21 |
|
#include "color.h" |
173 |
|
} |
174 |
|
|
175 |
|
|
176 |
+ |
void |
177 |
|
eputs(s) |
178 |
|
char *s; |
179 |
|
{ |
181 |
|
} |
182 |
|
|
183 |
|
|
184 |
+ |
void |
185 |
|
quit(code) |
186 |
|
int code; |
187 |
|
{ |
292 |
|
if (fwritecolrs(scanline, hp->x, stdout) < 0) |
293 |
|
quiterr("error writing RADIANCE file"); |
294 |
|
} |
295 |
< |
free((char *)scanline); |
296 |
< |
free((char *)tarData); |
295 |
> |
free((void *)scanline); |
296 |
> |
free((void *)tarData); |
297 |
|
} |
298 |
|
|
299 |
|
|
341 |
|
/* write out targa data */ |
342 |
|
writetarga(hp, tarData, stdout); |
343 |
|
|
344 |
< |
free((char *)inl); |
345 |
< |
free((char *)tarData); |
344 |
> |
free((void *)inl); |
345 |
> |
free((void *)tarData); |
346 |
|
} |
347 |
|
|
348 |
|
|