ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/pflip.c
(Generate patch)

Comparing ray/src/px/pflip.c (file contents):
Revision 1.1 by greg, Wed Jan 9 11:15:13 1991 UTC vs.
Revision 1.4 by greg, Thu Apr 18 14:35:24 1991 UTC

# Line 8 | Line 8 | static char SCCSid[] = "$SunId$ LBL";
8   * flip picture file horizontally and/or vertically
9   */
10  
11 < #include "standard.h"
11 > #include <stdio.h>
12  
13   #include "color.h"
14  
# Line 52 | Line 52 | char   *argv[];
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)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines