| 8 |
|
* flip picture file horizontally and/or vertically |
| 9 |
|
*/ |
| 10 |
|
|
| 11 |
< |
#include "standard.h" |
| 11 |
> |
#include <stdio.h> |
| 12 |
|
|
| 13 |
|
#include "color.h" |
| 14 |
|
|
| 52 |
|
exit(1); |
| 53 |
|
} |
| 54 |
|
/* transfer header */ |
| 55 |
< |
copyheader(fin, stdout); |
| 55 |
> |
if (checkheader(fin, COLRFMT, stdout) < 0) { |
| 56 |
> |
fprintf(stderr, "%s: input not a Radiance picture\n", |
| 57 |
> |
progname); |
| 58 |
> |
exit(1); |
| 59 |
> |
} |
| 60 |
|
/* add new header info. */ |
| 61 |
< |
printargs(argc, argv, stdout); |
| 61 |
> |
printargs(i, argv, stdout); |
| 62 |
> |
fputformat(COLRFMT, stdout); |
| 63 |
|
putchar('\n'); |
| 64 |
|
/* get picture size */ |
| 65 |
|
if (fgetresolu(&xres, &yres, fin) != (YMAJOR|YDECR)) { |