18 |
|
VIEW myview = STDVIEW; /* current output view */ |
19 |
|
int xres = 512, yres = 512; /* max. horizontal and vertical resolution */ |
20 |
|
char *outspec = NULL; /* output file specification */ |
21 |
+ |
int randflag = 0; /* random resampling algorithm? */ |
22 |
|
double pixaspect = 1.; /* pixel aspect ratio */ |
23 |
|
int seqstart = 0; /* sequence start frame */ |
24 |
|
double expval = 1.; /* exposure value */ |
75 |
|
goto userr; |
76 |
|
outspec = argv[++i]; |
77 |
|
break; |
78 |
+ |
case 'r': /* random sampling */ |
79 |
+ |
randflag = 1; |
80 |
+ |
break; |
81 |
+ |
case 's': /* smooth sampling */ |
82 |
+ |
randflag = 0; |
83 |
+ |
break; |
84 |
|
case 'S': /* sequence start */ |
85 |
|
if (badarg(argc-i-1,argv+i+1,"i")) |
86 |
|
goto userr; |
118 |
|
quit(0); /* all done! */ |
119 |
|
userr: |
120 |
|
fprintf(stderr, |
121 |
< |
"Usage: %s [-w][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n", |
121 |
> |
"Usage: %s [-w][-r|-s][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n", |
122 |
|
progname); |
123 |
|
quit(1); |
124 |
|
} |
178 |
|
bil[i].b = bl[i].bi; |
179 |
|
} |
180 |
|
hdloadbeams(bil, nb, pixBeam); |
181 |
< |
pixFlush(); |
181 |
> |
pixFinish(randflag); |
182 |
|
free((char *)bil); |
183 |
|
} |
184 |
|
|