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

Comparing ray/src/util/glareval.c (file contents):
Revision 2.11 by schorsch, Fri Jan 2 12:48:36 2004 UTC vs.
Revision 2.14 by greg, Wed Oct 10 21:41:02 2012 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include <stdlib.h>
11   #include <string.h>
12  
13 + #include "platform.h"
14   #include "rtprocess.h" /* Windows: must come first because of conflicts */
15   #include "glare.h"
16  
# Line 144 | Line 145 | seekerr:
145  
146  
147   #ifdef DEBUG
148 < static void
148 > void
149   pict_stats(void)                        /* print out picture read statistics */
150   {
151          static long     lastcall = 0L;  /* ncall at last report */
# Line 248 | Line 249 | getviewspan(           /* compute a span of view pixels */
249                                                  /* send to rtrace */
250                  if (n >= maxpix) {                      /* flush */
251                          rt_compute(rt_buf, n);
252 <                        while (n-- > 0)
252 >                        while (n > 0) {
253 >                                --n;
254                                  vb[buf_vh[n]+hsize] = luminance(rt_buf+3*n);
255 +                        }
256                  }
257                  rt_buf[6*n] = ourview.vp[0];
258                  rt_buf[6*n+1] = ourview.vp[1];
# Line 319 | Line 322 | open_pict(                     /* open picture file */
322                  fprintf(stderr, "%s: cannot open\n", fn);
323                  exit(1);
324          }
325 +        SET_FILE_BINARY(pictfp);
326          exposure = 1.0;
327          getheader(pictfp, getexpos, NULL);
328          if (wrongformat || !fscnresolu(&pxsiz, &pysiz, pictfp)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines