21 |
|
#include "view.h" |
22 |
|
|
23 |
|
#define MAXINP 32 /* maximum number of input files */ |
24 |
< |
#define WINSIZ 9 /* scanline window size */ |
25 |
< |
#define MIDSCN 4 /* current scan position */ |
24 |
> |
#define WINSIZ 17 /* scanline window size */ |
25 |
> |
#define MIDSCN ((WINSIZ-1)/2+1) |
26 |
|
|
27 |
|
struct { |
28 |
|
char *name; /* file or command name */ |
106 |
|
} |
107 |
|
break; |
108 |
|
} |
109 |
+ |
newheader("RADIANCE", stdout); /* start header */ |
110 |
|
/* process files */ |
111 |
|
for (nfiles = 0; nfiles < MAXINP; nfiles++) { |
112 |
|
setcolor(input[nfiles].coef, 1.0, 1.0, 1.0); |
225 |
|
double d; |
226 |
|
COLOR ctmp; |
227 |
|
|
228 |
< |
if (isformat(s)) { /* check format */ |
229 |
< |
formatval(fmt, s); |
228 |
> |
if (isheadid(s)) /* header id */ |
229 |
> |
return; /* don't echo */ |
230 |
> |
if (formatval(fmt, s)) { /* check format */ |
231 |
|
wrongformat = strcmp(fmt, COLRFMT); |
232 |
|
return; /* don't echo */ |
233 |
|
} |
467 |
|
l_ray(nam) /* return ray origin or direction */ |
468 |
|
register char *nam; |
469 |
|
{ |
470 |
< |
static long ltick[MAXINP]; |
470 |
> |
static unsigned long ltick[MAXINP]; |
471 |
|
static FVECT lorg[MAXINP], ldir[MAXINP]; |
472 |
|
FLOAT loc[2]; |
473 |
|
double d; |