| 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? */ |
| 21 |
> |
double randfrac = -1.; /* random resampling fraction */ |
| 22 |
|
double pixaspect = 1.; /* pixel aspect ratio */ |
| 23 |
|
int seqstart = 0; /* sequence start frame */ |
| 24 |
|
double expval = 1.; /* exposure value */ |
| 76 |
|
outspec = argv[++i]; |
| 77 |
|
break; |
| 78 |
|
case 'r': /* random sampling */ |
| 79 |
< |
randflag = 1; |
| 79 |
> |
if (badarg(argc-i-1,argv+i+1,"f")) |
| 80 |
> |
goto userr; |
| 81 |
> |
randfrac = atof(argv[++i]); |
| 82 |
|
break; |
| 83 |
|
case 's': /* smooth sampling */ |
| 84 |
< |
randflag = 0; |
| 84 |
> |
randfrac = -1.; |
| 85 |
|
break; |
| 86 |
|
case 'S': /* sequence start */ |
| 87 |
|
if (badarg(argc-i-1,argv+i+1,"i")) |
| 120 |
|
quit(0); /* all done! */ |
| 121 |
|
userr: |
| 122 |
|
fprintf(stderr, |
| 123 |
< |
"Usage: %s [-w][-r|-s][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n", |
| 123 |
> |
"Usage: %s [-w][-r rf][-pa pa][-pe ex][-x hr][-y vr][-S stfn][-o outp][view] input.hdk\n", |
| 124 |
|
progname); |
| 125 |
|
quit(1); |
| 126 |
|
} |
| 180 |
|
bil[i].b = bl[i].bi; |
| 181 |
|
} |
| 182 |
|
hdloadbeams(bil, nb, pixBeam); |
| 183 |
< |
pixFinish(randflag); |
| 183 |
> |
pixFinish(randfrac); |
| 184 |
|
free((char *)bil); |
| 185 |
|
} |
| 186 |
|
|