316 |
|
asiz = sizeof(float); |
317 |
|
} else if (!strcmp(fmt, "double")) { |
318 |
|
asiz = sizeof(double); |
319 |
+ |
} else if (!strcmp(fmt, "32-bit_encoded_normal")) { |
320 |
+ |
asiz = 4; |
321 |
+ |
ncomp = 1; |
322 |
+ |
} else if (!strcmp(fmt, "16-bit_encoded_depth")) { |
323 |
+ |
asiz = 2; |
324 |
+ |
ncomp = 1; |
325 |
|
} else if (globmatch(PICFMT, fmt)) { |
326 |
|
asiz = -1; |
327 |
|
if (!ncomp) ncomp = 3; |
341 |
|
if (!(asiz < 0 ? colr_copyf(fp) : |
342 |
|
!asiz ? ascii_copyf(fp) : binary_copyf(fp, asiz))) |
343 |
|
return(1); |
344 |
+ |
/* need to consume the rest? */ |
345 |
+ |
if (fp == stdin && rmin+nrows < numscans(&res) && |
346 |
+ |
fseek(fp, 0L, SEEK_END) < 0) |
347 |
+ |
while (getc(fp) != EOF) |
348 |
+ |
; |
349 |
|
return(0); |
350 |
|
usage: |
351 |
|
fputs("Usage: ", stderr); |