| 83 |
|
pmat = cm_alloc(myYR, myXR); |
| 84 |
|
memset(pmat->cmem, 0, sizeof(COLOR)*myXR*myYR); |
| 85 |
|
/* finish header */ |
| 86 |
< |
fputformat((char *)cm_fmt_id[myDT], fout); |
| 86 |
> |
fputformat(cm_fmt_id[myDT], fout); |
| 87 |
|
fputc('\n', fout); |
| 88 |
|
fflush(fout); |
| 89 |
|
} else if ((dt != myDT) | (xr != myXR) | (yr != myYR)) { |
| 300 |
|
if ((argc-a < 2) | (argc-a > 5)) |
| 301 |
|
goto userr; |
| 302 |
|
/* single bounce daylight coefficients file */ |
| 303 |
< |
direct_path = argv[++a]; |
| 303 |
> |
direct_path = argv[a++]; |
| 304 |
|
#else |
| 305 |
|
if ((argc-a < 1) | (argc-a > 4)) |
| 306 |
|
goto userr; |
| 475 |
|
fprintf(ofp, "FRAME=%d\n", i); |
| 476 |
|
fprintf(ofp, "NROWS=%d\n", rvec->nrows); |
| 477 |
|
fputs("NCOLS=1\nNCOMP=3\n", ofp); |
| 478 |
< |
if ((outfmt == 'f') | (outfmt == 'd')) |
| 478 |
> |
if ((outfmt == DTfloat) | (outfmt == DTdouble)) |
| 479 |
|
fputendian(ofp); |
| 480 |
< |
fputformat((char *)cm_fmt_id[outfmt], ofp); |
| 480 |
> |
fputformat(cm_fmt_id[outfmt], ofp); |
| 481 |
|
fputc('\n', ofp); |
| 482 |
|
} |
| 483 |
|
cm_write(rvec, outfmt, ofp); |
| 508 |
|
fprintf(ofp, "NCOLS=%d\n", rmtx->ncols); |
| 509 |
|
fputs("NCOMP=3\n", ofp); |
| 510 |
|
#endif /* DC_GLARE */ |
| 511 |
< |
if ((outfmt == 'f') | (outfmt == 'd')) |
| 511 |
> |
if ((outfmt == DTfloat) | (outfmt == DTdouble)) |
| 512 |
|
fputendian(ofp); |
| 513 |
< |
fputformat((char *)cm_fmt_id[outfmt], ofp); |
| 513 |
> |
fputformat(cm_fmt_id[outfmt], ofp); |
| 514 |
|
fputc('\n', ofp); |
| 515 |
|
} |
| 516 |
|
#ifdef DC_GLARE |