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

Comparing ray/src/px/ra_xyze.c (file contents):
Revision 2.10 by greg, Tue Aug 22 21:38:22 2006 UTC vs.
Revision 2.12 by greg, Thu Aug 2 18:33:48 2018 UTC

# Line 14 | Line 14 | static const char      RCSid[] = "$Id$";
14   #include  "platform.h"
15   #include  "color.h"
16   #include  "resolu.h"
17 + #include  "rtio.h"
18  
19   int  rgbinp = -1;                       /* input is RGBE? */
20   int  rgbout = 0;                        /* output should be RGBE? */
# Line 36 | Line 37 | headline(                              /* process header line */
37          void    *p
38   )
39   {
40 <        char    fmt[32];
40 >        char    fmt[MAXFMTLEN];
41  
42          if (formatval(fmt, s)) {        /* check if format string */
43                  if (!strcmp(fmt,COLRFMT))
# Line 224 | Line 225 | convert(void)                          /* convert to XYZE or RGBE picture */
225                                  setcolr(scanout[x], colval(scanin[x],RED),
226                                                  colval(scanin[x],GRN),
227                                                  colval(scanin[x],BLU));
228 <                        fwrite((char *)scanout, sizeof(COLR), xmax, stdout);
228 >                        putbinary((char *)scanout, sizeof(COLR), xmax, stdout);
229                  } else
230                          fwritescan(scanin, xmax, stdout);
231                  if (ferror(stdout))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines