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

Comparing ray/src/px/ra_rgbe.c (file contents):
Revision 1.1 by greg, Fri Aug 23 17:37:14 1991 UTC vs.
Revision 1.2 by greg, Mon Nov 11 14:01:34 1991 UTC

# Line 11 | Line 11 | static char SCCSid[] = "$SunId$ LBL";
11   #include  <stdio.h>
12  
13   #include  "color.h"
14 + #include  "resolu.h"
15  
16   int  bradj = 0;                         /* brightness adjustment */
17  
# Line 79 | Line 80 | char  *err;
80   transfer()              /* transfer Radiance picture */
81   {
82          extern double   pow();
83 +        int     order;
84          int     xmax, ymax;
85          COLR    *scanin;
86          register int    x;
87          int     y;
88                                  /* get header info. */
89          if (checkheader(stdin, COLRFMT, stdout) < 0 ||
90 <                        fgetresolu(&xmax, &ymax, stdin) != (YMAJOR|YDECR))
90 >                        (order = fgetresolu(&xmax, &ymax, stdin)) < 0)
91                  quiterr("bad picture format");
92          if (bradj)
93                  fputexpos(pow(2.0, (double)bradj), stdout);
# Line 94 | Line 96 | transfer()             /* transfer Radiance picture */
96                  printf("%s -r\n\n", progname);
97          } else
98                  printf("%s\n\n", progname);
99 <        fputresolu(YMAJOR|YDECR, xmax, ymax, stdout);
99 >        fputresolu(order, xmax, ymax, stdout);
100                                                  /* allocate scanline */
101          scanin = (COLR *)malloc(xmax*sizeof(COLR));
102          if (scanin == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines