| 31 |
|
|
| 32 |
|
int nfiles; /* number of input files */ |
| 33 |
|
|
| 34 |
+ |
VIEW commvw; /* common view parameters */ |
| 35 |
+ |
|
| 36 |
|
char ourfmt[LPICFMT+1] = PICFMT; /* input picture format */ |
| 37 |
|
|
| 38 |
|
char StandardInput[] = "<stdin>"; |
| 224 |
|
} |
| 225 |
|
/* complete header */ |
| 226 |
|
printargs(argc, argv, stdout); |
| 227 |
+ |
if (commvw.type) { |
| 228 |
+ |
fputs(VIEWSTR, stdout); |
| 229 |
+ |
fprintview(&commvw, stdout); |
| 230 |
+ |
fputc('\n', stdout); |
| 231 |
+ |
} |
| 232 |
|
if (strcmp(ourfmt, PICFMT)) |
| 233 |
|
fputformat(ourfmt, stdout); /* print format if known */ |
| 234 |
|
putchar('\n'); |
| 307 |
|
} |
| 308 |
|
if (!gotview || setview(&input[nfiles].vw) != NULL) |
| 309 |
|
input[nfiles].vw.type = 0; |
| 310 |
+ |
else if (!commvw.type) |
| 311 |
+ |
commvw = input[nfiles].vw; |
| 312 |
|
if (!fgetsresolu(&input[nfiles].rs, input[nfiles].fp)) { |
| 313 |
|
eputs(input[nfiles].name); |
| 314 |
|
eputs(": bad picture size\n"); |