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

Comparing ray/src/common/tonemap.c (file contents):
Revision 3.18 by greg, Fri Jan 7 22:05:30 2005 UTC vs.
Revision 3.19 by greg, Tue Nov 15 06:53:00 2005 UTC

# Line 239 | Line 239 | int    len
239   }
240  
241  
242 + TMbright
243 + tmCvLuminance(                          /* convert a single luminance */
244 + double  lum
245 + )
246 + {
247 +        double  d;
248 +
249 +        if (lum <= TM_NOLUM)
250 +                return(TM_NOBRT);
251 +        d = TM_BRTSCALE*log(lum);
252 +        if (d > 0.)
253 +                return((TMbright)(d+.5));
254 +        return((TMbright)(d-.5));
255 + }
256 +
257 +
258   int
259   tmCvGrays(                              /* convert float gray values */
260   TMstruct        *tms,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines