1 |
+ |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
+ |
|
3 |
|
#ifndef lint |
4 |
< |
static char SCCSid[] = "$SunId$ AU"; |
4 |
> |
static char SCCSid[] = "$SunId$ LBL"; |
5 |
|
#endif |
6 |
+ |
|
7 |
|
/* |
8 |
|
rad2pict - Convert an Radiance image to APPLE pict format. |
9 |
|
|
13 |
|
#include <stdio.h> |
14 |
|
#include "pict.h" |
15 |
|
#include "color.h" |
16 |
+ |
#include "resolu.h" |
17 |
|
|
18 |
|
extern char *malloc(); |
19 |
|
|
107 |
|
} |
108 |
|
|
109 |
|
if (checkheader(inf, COLRFMT, NULL) < 0 || |
110 |
< |
fgetresolu(&xsize, &ysize, inf) != (YMAJOR|YDECR)) { |
110 |
> |
fgetresolu(&xsize, &ysize, inf) < 0) { |
111 |
|
fprintf(stderr, "%s: not a radiance picture\n", argv[1]); |
112 |
|
exit(1); |
113 |
|
} |