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

Comparing ray/src/px/pf2.c (file contents):
Revision 2.4 by greg, Wed Nov 9 15:04:52 1994 UTC vs.
Revision 2.5 by greg, Tue Apr 2 10:32:29 1996 UTC

# Line 36 | Line 36 | extern char  *progname;
36  
37   extern COLOR  exposure;         /* exposure for frame */
38  
39 + extern double  (*ourbright)();  /* brightness calculation function */
40 +
41   #define  AVGLVL         0.5     /* target mean brightness */
42  
43   double  avgbrt;                 /* average picture brightness */
# Line 80 | Line 82 | int  y;
82  
83          for (x = 0; x < xres; x++) {
84          
85 <                cbrt = bright(scan[x]);
85 >                cbrt = (*ourbright)(scan[x]);
86  
87                  if (cbrt <= 0)
88                          continue;
# Line 118 | Line 120 | pass2init()                    /* prepare for final pass */
120  
121          scalecolor(exposure,  AVGLVL/avgbrt);
122          
123 <        sprdfact = spread / (hotlvl * bright(exposure))
123 >        sprdfact = spread / (hotlvl * (*ourbright)(exposure))
124                          * ((double)xres*xres + (double)yres*yres) / 4.0;
125   }
126  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines