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

Comparing ray/src/cv/bsdfrep.h (file contents):
Revision 2.8 by greg, Thu Sep 26 17:05:00 2013 UTC vs.
Revision 2.9 by greg, Sat Oct 19 00:11:50 2013 UTC

# Line 18 | Line 18
18  
19   typedef struct {
20          float           vsum;           /* DSF sum */
21 <        unsigned short  nval;           /* number of values in sum */
21 >        unsigned int    nval;           /* number of values in sum */
22          unsigned short  crad;           /* radius (coded angle) */
23   } GRIDVAL;                      /* grid value */
24  
# Line 74 | Line 74 | extern int             output_orient;
74   #define BSDF2BIG        (1./M_PI)
75   #define BSDF2SML        1e-8
76   #define HISTLNR         17.2759509              /* log(BSDF2BIG/BSDF2SML) */
77 < extern int              bsdf_hist[HISTLEN];
77 > extern unsigned long    bsdf_hist[HISTLEN];
78   #define histndx(v)      (int)(log((v)*(1./BSDF2SML))*(HISTLEN/HISTLNR))
79   #define histval(i)      (exp(((i)+.5)*(HISTLNR/HISTLEN))*BSDF2SML)
80  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines