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

Comparing ray/src/util/glare.h (file contents):
Revision 1.16 by greg, Mon Apr 22 10:28:10 1991 UTC vs.
Revision 2.4 by schorsch, Fri Jun 27 11:32:12 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Common data structures for glare source finding routines
4   */
5 + #ifndef _RAD_GLARE_H_
6 + #define _RAD_GLARE_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11 +
12   #include "standard.h"
13   #include "view.h"
14   #include "color.h"
# Line 13 | Line 16
16  
17   #define GLAREBR         7.0             /* glare source is this * avg. lum. */
18  
19 < #define SAMPDENS        50              /* default samples per unit in image */
19 > #define SAMPDENS        75              /* default samples per unit in image */
20   #define TSAMPSTEP       10              /* sample step to compute threshold */
21  
22   #define SEPS            1               /* sources this close ==> contig. */
# Line 23 | Line 26
26  
27   #define TOOSMALL(s)     ((s)->brt*(s)->dom < threshold*SAMIN)
28  
29 + #define SABIG           .025            /* solid angle of splittable source */
30 + #define LCORR           .12             /* linearity of splittable source */
31 +
32   extern VIEW     ourview;                /* our view */
33   extern VIEW     pictview;               /* picture view */
34   extern VIEW     leftview, rightview;    /* leftmost and rightmost views */
# Line 67 | Line 73 | extern struct source {
73          struct source   *next;  /* next source in list */
74   } *donelist;                    /* finished sources */
75  
76 < extern double   getviewpix();
77 < extern double   pixsize();
76 > extern double   getviewpix(int vh, int vv);
77 > extern double   pixsize(int x, int y);
78  
79   extern long     npixinvw;       /* number of samples in view */
80   extern long     npixmiss;       /* number of samples missing */
81 +
82 +
83 +
84 + #ifdef __cplusplus
85 + }
86 + #endif
87 + #endif /* _RAD_GLARE_H_ */
88 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines