1 |
– |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Radiance picture to PostScript file translator -- one way! |
6 |
|
*/ |
58 |
|
|
59 |
|
int xmax, ymax; /* input image dimensions */ |
60 |
|
|
64 |
– |
extern char *malloc(); |
61 |
|
extern double unit2inch(); |
62 |
|
|
63 |
|
|
64 |
+ |
int |
65 |
|
headline(s) /* check header line */ |
66 |
|
char *s; |
67 |
|
{ |
72 |
|
wrongformat = strcmp(fmt, COLRFMT); |
73 |
|
} else if (isaspect(s)) |
74 |
|
pixaspect *= aspectval(s); |
75 |
+ |
return(0); |
76 |
|
} |
77 |
|
|
78 |
|
|
189 |
|
unit2inch(s) /* determine unit */ |
190 |
|
register char *s; |
191 |
|
{ |
192 |
< |
static struct unit {char n; float f} u[] = { |
192 |
> |
static struct unit {char n; float f;} u[] = { |
193 |
|
'i', 1., |
194 |
|
'm', 1./25.4, |
195 |
|
'c', 1./2.54, |
301 |
|
/* EPS comments */ |
302 |
|
puts("%!PS-Adobe-2.0 EPSF-2.0"); |
303 |
|
printf("%%%%Title: "); printargs(ac, av, stdout); |
304 |
< |
printf("%%%%Creator: %s\n", SCCSid); |
304 |
> |
printf("%%%%Creator: %s\n", progname); |
305 |
|
printf("%%%%Pages: %d\n", ncopies); |
306 |
|
if (landscape = xmax > pixaspect*ymax) |
307 |
|
puts("%%Orientation: Landscape"); |
470 |
|
} |
471 |
|
putchar('\n'); |
472 |
|
/* free scanline */ |
473 |
< |
free((char *)scanin); |
473 |
> |
free((void *)scanin); |
474 |
|
} |
475 |
|
|
476 |
|
|