17 |
|
#endif |
18 |
|
|
19 |
|
extern struct ODview { |
20 |
+ |
int sfirst, snext; /* first sample and first in next view */ |
21 |
|
short hhi, vhi; /* screen image resolution */ |
22 |
|
short hlow, vlow; /* block resolution */ |
23 |
+ |
int n2redraw; /* approx. number of samples needing redraw */ |
24 |
|
struct ODblock { |
25 |
|
short nsamp; /* number of samples in block */ |
26 |
|
short nused; /* number actually allocated */ |
27 |
|
int first; /* first sample in this block */ |
28 |
|
int free; /* index for block free list */ |
29 |
+ |
float pthresh; /* proximity threshold */ |
30 |
|
} *bmap; /* low resolution image map */ |
31 |
|
int4 *emap; /* low resolution edge presence map */ |
32 |
+ |
int4 *pmap; /* high resolution presence map */ |
33 |
|
GLfloat *dmap; /* high resolution depth map */ |
34 |
|
} *odView; /* our view list */ |
35 |
|
|
115 |
|
|
116 |
|
|
117 |
|
void |
118 |
+ |
odRedrawAll() : everything needs to be redrawn |
119 |
+ |
|
120 |
+ |
Redraw everything in all views on the next call to odUpdate(). |
121 |
+ |
Unless odRemap() is called, no new tone mapping will be done. |
122 |
+ |
|
123 |
+ |
|
124 |
+ |
void |
125 |
|
odUpdate(vn) : update the current view |
126 |
|
int vn; : view number |
127 |
|
|
129 |
|
|
130 |
|
|
131 |
|
void |
132 |
< |
odRemap() : recompute tone mapping |
132 |
> |
odRemap(newhist) : recompute tone mapping |
133 |
> |
int newhist; : flag whether to clear history |
134 |
|
|
135 |
|
Recompute the tone mapping for all the samples in all the views |
136 |
< |
and redraw them on the next call(s) to odUpdate(). |
136 |
> |
and redraw them on the next call(s) to odUpdate(). If newhist |
137 |
> |
is non-zero, then clear the previous sample history. |
138 |
|
|
139 |
|
**********************************************************************/ |