| 58 |
|
|
| 59 |
|
struct driver *dev = NULL; /* driver functions */ |
| 60 |
|
|
| 61 |
+ |
char rifname[128]; /* rad input file name */ |
| 62 |
+ |
|
| 63 |
|
VIEW oldview; /* previous view parameters */ |
| 64 |
|
|
| 65 |
|
PNODE ptrunk; /* the base of our image */ |
| 210 |
|
goto commerr; |
| 211 |
|
lastview(args); |
| 212 |
|
break; |
| 213 |
+ |
case 'V': /* save view */ |
| 214 |
+ |
if (badcom("V")) |
| 215 |
+ |
goto commerr; |
| 216 |
+ |
saveview(args); |
| 217 |
+ |
break; |
| 218 |
+ |
case 'L': /* load view */ |
| 219 |
+ |
if (badcom("L")) |
| 220 |
+ |
goto commerr; |
| 221 |
+ |
loadview(args); |
| 222 |
+ |
break; |
| 223 |
|
case 'e': /* exposure */ |
| 224 |
|
if (badcom("exposure")) |
| 225 |
|
goto commerr; |
| 327 |
|
* difference, we subsample the super-pixels. The testing process |
| 328 |
|
* includes initialization of the next row. |
| 329 |
|
*/ |
| 330 |
< |
xsiz = (((pframe.r-pframe.l)<<pdepth)+hresolu-1) / hresolu; |
| 331 |
< |
ysiz = (((pframe.u-pframe.d)<<pdepth)+vresolu-1) / vresolu; |
| 330 |
> |
xsiz = (((long)(pframe.r-pframe.l)<<pdepth)+hresolu-1) / hresolu; |
| 331 |
> |
ysiz = (((long)(pframe.u-pframe.d)<<pdepth)+vresolu-1) / vresolu; |
| 332 |
|
rl = (RECT *)malloc(xsiz*sizeof(RECT)); |
| 333 |
|
if (rl == NULL) |
| 334 |
|
return; |