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 2.17 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 2.20 by greg, Thu Aug 2 18:33:47 2018 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11   #include  <string.h>
12  
13   #include  "platform.h"
14 < #include  "rtprocess.h"
14 > #include  "rtio.h"
15 > #include  "paths.h"
16   #include  "color.h"
17   #include  "resolu.h"
18  
19 < #define dumpheader(fp)  fwrite(headlines, 1, headlen, fp)
19 > #define dumpheader(fp)  putbinary(headlines, 1, headlen, fp)
20  
21   int  bradj = 0;                         /* brightness adjustment */
22   int  doflat = 1;                        /* produce flat file */
# Line 173 | Line 174 | transfer(                      /* transfer a Radiance picture */
174                  if (bradj)
175                          shiftcolrs(scanin, xmax, bradj);
176                  if (doflat)
177 <                        fwrite((char *)scanin, sizeof(COLR), xmax, fp);
177 >                        putbinary((char *)scanin, sizeof(COLR), xmax, fp);
178                  else
179                          fwritecolrs(scanin, xmax, fp);
180                  if (ferror(fp)) {
# Line 197 | Line 198 | addhline(                      /* add a line to our info. header */
198          void    *p
199   )
200   {
201 <        char    fmt[32];
201 >        char    fmt[MAXFMTLEN];
202          int     n;
203  
204          if (formatval(fmt, s))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines