1 |
+ |
#ifndef lint |
2 |
+ |
static char SCCSid[] = "$SunId$ LBL"; |
3 |
+ |
#endif |
4 |
+ |
|
5 |
|
/* Copyright 1989 Regents of the University of California */ |
6 |
|
|
7 |
|
#ifndef lint |
8 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
8 |
> |
static char SCCSid[] = "@(#)ra_pixar.c 1.2 9/12/89 LBL"; |
9 |
|
#endif |
10 |
|
|
11 |
|
/* ra_pixar.c */ |
36 |
|
#ifdef undef |
37 |
|
#include "color.h" |
38 |
|
#else |
39 |
+ |
#define XDECR 1 |
40 |
+ |
#define YDECR 2 |
41 |
+ |
#define YMAJOR 4 |
42 |
+ |
|
43 |
|
#define RED 0 |
44 |
|
#define GRN 1 |
45 |
|
#define BLU 2 |
170 |
|
exit(1); |
171 |
|
} |
172 |
|
getheader(radiance_fp,NULL); |
173 |
< |
if (fscanf(radiance_fp,"-Y %d +X %d\n",h,w) != 2) |
173 |
> |
if (fgetresolu(w, h, radiance_fp) != (YMAJOR|YDECR)) |
174 |
|
{ |
175 |
|
fprintf(stderr,"bad RADIANCE format\n"); |
176 |
|
exit(1); |
277 |
|
{ |
278 |
|
printargs(global_argc,global_argv,fp); |
279 |
|
fputc('\n',fp); |
280 |
< |
fprintf(fp,"-Y %d +X %d\n",y,x); |
280 |
> |
fputresolu(YMAJOR|YDECR, x, y, fp); |
281 |
|
fflush(fp); |
282 |
|
} |
283 |
|
|