8 |
|
|
9 |
|
#include "tonemap.h" |
10 |
|
#include "rhdriver.h" |
11 |
+ |
|
12 |
+ |
#ifndef int2 |
13 |
+ |
#define int2 short |
14 |
+ |
#endif |
15 |
+ |
#ifndef int4 |
16 |
+ |
#define int4 int |
17 |
+ |
#endif |
18 |
|
/* child ordering */ |
19 |
|
#define DL 0 /* down left */ |
20 |
|
#define DR 1 /* down right */ |
40 |
|
|
41 |
|
extern struct rleaves { |
42 |
|
float (*wp)[3]; /* world intersection point array */ |
43 |
+ |
int4 *wd; /* world direction array */ |
44 |
|
TMbright *brt; /* encoded brightness array */ |
45 |
|
BYTE (*chr)[3]; /* encoded chrominance array */ |
46 |
|
BYTE (*rgb)[3]; /* tone-mapped color array */ |
55 |
|
extern RTREE qtrunk; /* trunk of quadtree */ |
56 |
|
extern double qtDepthEps; /* epsilon to compare depths (z fraction) */ |
57 |
|
extern int qtMinNodesiz; /* minimum node dimension (pixels) */ |
58 |
+ |
|
59 |
+ |
extern int4 encodedir(); |
60 |
+ |
extern double fdir2diff(), dir2diff(); |