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

Comparing ray/src/px/pfilt.c (file contents):
Revision 2.6 by greg, Tue Nov 3 16:52:20 1992 UTC vs.
Revision 2.8 by greg, Fri Jun 18 16:20:16 1993 UTC

# Line 40 | Line 40 | int  singlepass = 0;           /* true means skip first pass */
40  
41   int  avghot = 0;                /* true means average in bright spots */
42  
43 < double  hotlvl = 1000.0;        /* level considered "hot" */
43 > double  hotlvl = 100.0;         /* level considered "hot" */
44  
45   int  npts = 0;                  /* (half) number of points for stars */
46  
# Line 292 | Line 292 | char  *s;
292          fputs(s, stdout);               /* copy to output */
293          if (isaspect(s))                /* get aspect ratio */
294                  inpaspect *= aspectval(s);
295 +        else if (isexpos(s))
296 +                hotlvl *= exposval(s);
297          else if (isformat(s)) {
298                  formatval(fmt, s);
299                  wrongformat = strcmp(fmt, COLRFMT);
# Line 329 | Line 331 | FILE  *in;
331          }
332          for (i = 0; i < yres; i++) {
333                  if (freadscan(scan, xres, in) < 0) {
334 <                        nrows = nrows * i / yres;       /* adjust frame */
334 >                        nrows = (long)nrows * i / yres; /* adjust frame */
335                          if (nrows <= 0) {
336                                  fprintf(stderr, "%s: empty frame\n", progname);
337                                  quit(1);
338                          }
339                          fprintf(stderr, "%s: warning - partial frame (%d%%)\n",
340 <                                        progname, 100*i/yres);
340 >                                        progname, (int)(100L*i/yres));
341                          yres = i;
342                          y_r = (double)nrows/yres;
343                          break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines