| 763 |
|
argv[0]); |
| 764 |
|
return(!output_stream(stdin)); |
| 765 |
|
} |
| 766 |
< |
if (i_header) { /* read header */ |
| 767 |
< |
if (getheader(stdin, headline, NULL) < 0) |
| 768 |
< |
return(1); |
| 769 |
< |
if (!check_sizes()) |
| 770 |
< |
return(1); |
| 771 |
< |
} else if (!check_sizes()) |
| 766 |
> |
/* read input header? */ |
| 767 |
> |
if (i_header && getheader(stdin, headline, NULL) < 0) |
| 768 |
|
return(1); |
| 769 |
< |
if (o_header) { /* write/add to header */ |
| 769 |
> |
if (!check_sizes()) /* adjust sizes */ |
| 770 |
> |
return(1); |
| 771 |
> |
if (o_header) { /* add to output header? */ |
| 772 |
|
if (!i_header) |
| 773 |
|
newheader("RADIANCE", stdout); |
| 774 |
|
printargs(a, argv, stdout); |
| 775 |
|
printf("NCOMP=%d\n", n_comp); |
| 776 |
|
} |
| 777 |
< |
if (!comp_size) { /* a little late... */ |
| 777 |
> |
if (!comp_size) { /* a little late, here... */ |
| 778 |
|
SET_FILE_TEXT(stdin); |
| 779 |
|
SET_FILE_TEXT(stdout); |
| 780 |
|
} |