27 |
|
fputs("Usage: ", stderr); |
28 |
|
fputs(progname, stderr); |
29 |
|
fputs( |
30 |
< |
" [-d ref_depth/unit][-h[io]][-H[io]][-f[afd]] [input [output]]\n", |
30 |
> |
" [-d ref_depth/unit][-h[io]][-H[io]][-f[afd]] [input [output.dpt]]\n", |
31 |
|
stderr); |
32 |
|
fputs(" Or: ", stderr); |
33 |
|
fputs(progname, stderr); |
34 |
|
fputs( |
35 |
< |
" {-r|-p} [-i][-u][-h[io]][-H[io]][-f[afd]] [input [output]]\n", |
35 |
> |
" {-r|-p} [-i][-u][-h[io]][-H[io]][-f[afd]] [input.dpt [output]]\n", |
36 |
|
stderr); |
37 |
|
exit(code); |
38 |
|
} |
45 |
|
long nexpected = (long)dcp->res.xr * dcp->res.yr; |
46 |
|
|
47 |
|
if (dcp->inpfmt[0]) { |
48 |
< |
if (strcasestr(dcp->inpfmt, "ascii") != NULL) |
48 |
> |
if (strstr(dcp->inpfmt, "ascii") != NULL) |
49 |
|
dcp->format = 'a'; |
50 |
< |
else if (strcasestr(dcp->inpfmt, "float") != NULL) |
50 |
> |
else if (strstr(dcp->inpfmt, "float") != NULL) |
51 |
|
dcp->format = 'f'; |
52 |
< |
else if (strcasestr(dcp->inpfmt, "double") != NULL) |
52 |
> |
else if (strstr(dcp->inpfmt, "double") != NULL) |
53 |
|
dcp->format = 'd'; |
54 |
|
else { |
55 |
|
fputs(dcp->inpname, stderr); |
383 |
|
fputs(": -i option requires input resolution\n", stderr); |
384 |
|
usage_exit(1); |
385 |
|
} |
386 |
< |
dc.hdrflags &= ~(HF_HEADOUT|HF_RESOUT); |
386 |
> |
dc.hdrflags &= ~HF_RESOUT; |
387 |
|
} |
388 |
|
if (a < argc-2) { |
389 |
|
fputs(progname, stderr); |