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

Comparing ray/src/common/tmprivat.h (file contents):
Revision 3.8 by schorsch, Fri Jun 6 16:38:47 2003 UTC vs.
Revision 3.11 by greg, Mon Jul 14 04:56:54 2003 UTC

# Line 8 | Line 8
8   extern "C" {
9   #endif
10  
11 #include "copyright.h"
12
11   #ifndef MEM_PTR
12   #define MEM_PTR         void *
13   #endif
# Line 47 | Line 45 | extern "C" {
45   #define BMESLOWER       ((int)(-5.18*TM_BRTSCALE-.5))
46   #define BMESUPPER       ((int)(1.73*TM_BRTSCALE+.5))
47   #endif
50
51 #ifndef int4
52 #define int4            int                     /* assume 32-bit integers */
53 #endif
48                                                  /* approximate scotopic lum. */
49   #define SCO_rf          0.062
50   #define SCO_gf          0.608
51   #define SCO_bf          0.330
52   #define scotlum(c)      (SCO_rf*(c)[RED] + SCO_gf*(c)[GRN] + SCO_bf*(c)[BLU])
53 < #define normscot(c)     ( (     (int4)(SCO_rf*256.+.5)*(c)[RED] + \
54 <                                (int4)(SCO_gf*256.+.5)*(c)[GRN] + \
55 <                                (int4)(SCO_bf*256.+.5)*(c)[BLU] ) >> 8 )
53 > #define normscot(c)     ( (     (int32)(SCO_rf*256.+.5)*(c)[RED] + \
54 >                                (int32)(SCO_gf*256.+.5)*(c)[GRN] + \
55 >                                (int32)(SCO_bf*256.+.5)*(c)[BLU]        ) >> 8 )
56  
57   #ifndef malloc
58   MEM_PTR         malloc();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines