16 |
|
* |
17 |
|
* See the ranimove(1) man page for further details. |
18 |
|
*/ |
19 |
+ |
#ifndef _RAD_RANIMOVE_H_ |
20 |
+ |
#define _RAD_RANIMOVE_H_ |
21 |
|
|
20 |
– |
#include "copyright.h" |
21 |
– |
|
22 |
|
#include "ray.h" |
23 |
|
#include "view.h" |
24 |
|
#include "vars.h" |
25 |
+ |
|
26 |
+ |
#ifdef __cplusplus |
27 |
+ |
extern "C" { |
28 |
+ |
#endif |
29 |
+ |
|
30 |
|
/* input variables (alphabetical by name) */ |
31 |
|
#define BASENAME 0 /* output image base name */ |
32 |
|
#define END 1 /* number of animation frames */ |
109 |
|
extern int gargc; /* global argc for printargs */ |
110 |
|
extern char **gargv; /* global argv for printargs */ |
111 |
|
|
107 |
– |
VIEW *getview(); |
108 |
– |
int countviews(); |
109 |
– |
int getmove(); |
110 |
– |
char *getexp(), *getoctspec(), *getobjname(), *getxf(); |
111 |
– |
double expspec_val(), obj_prio(); |
112 |
– |
void setdefaults(), setmove(), animate(), getradfile(), setrendparams(); |
113 |
– |
void init_frame(), filter_frame(), send_frame(), free_frame(); |
114 |
– |
int refine_frame(); |
115 |
– |
double getTime(); |
116 |
– |
|
112 |
|
/************************************************************************* |
113 |
|
* Frame rendering stuff (defined in ranimove1.c and ranimove2.c) |
114 |
|
*/ |
130 |
|
extern OBJECT *obuffer; /* object id at each pixel */ |
131 |
|
extern short *xmbuffer; /* x motion at each pixel */ |
132 |
|
extern short *ymbuffer; /* y motion at each pixel */ |
133 |
< |
extern BYTE *abuffer; /* accuracy at each pixel */ |
134 |
< |
extern BYTE *sbuffer; /* sample count per pixel */ |
133 |
> |
extern uby8 *abuffer; /* accuracy at each pixel */ |
134 |
> |
extern uby8 *sbuffer; /* sample count per pixel */ |
135 |
|
|
136 |
|
extern VIEW vwprev; /* last frame's view */ |
137 |
|
extern COLOR *cprev; /* last frame colors */ |
138 |
|
extern float *zprev; /* last frame depth */ |
139 |
|
extern OBJECT *oprev; /* last frame objects */ |
140 |
< |
extern BYTE *aprev; /* last frame accuracy */ |
140 |
> |
extern uby8 *aprev; /* last frame accuracy */ |
141 |
|
|
142 |
|
extern float *cerrmap; /* conspicuous error map */ |
143 |
|
extern int cerrzero; /* is all of cerrmap zero? */ |
168 |
|
|
169 |
|
#define ATIDIFF 7 /* error difference for time extrapolation */ |
170 |
|
|
171 |
< |
void write_map(), sample_pos(), comp_frame_error(), conspicuity(); |
172 |
< |
int getclosest(), getambcolor(), refine_first(); |
173 |
< |
double sample_wt(), estimaterr(), comperr(); |
171 |
> |
/* ranimove1.c */ |
172 |
> |
extern void init_frame(void); |
173 |
> |
extern void filter_frame(void); |
174 |
> |
extern void send_frame(void); |
175 |
> |
extern void free_frame(void); |
176 |
> |
extern void write_map(float *mp, char *fn); |
177 |
> |
extern void sample_pos(double hv[2], int x, int y, int sn); |
178 |
> |
extern void comp_frame_error(void); |
179 |
> |
extern int getclosest(int *iarr, int nc, int x, int y); |
180 |
> |
extern int getambcolor(COLOR clr, int obj); |
181 |
> |
extern double sample_wt(int xo, int yo); |
182 |
> |
extern double estimaterr(COLOR cs, COLOR cs2, int ns, int ns0); |
183 |
> |
extern double comperr(int *neigh, int nc, int ns0); |
184 |
> |
|
185 |
> |
/* ranimove2.c */ |
186 |
> |
extern int refine_first(); |
187 |
> |
extern void conspicuity(void); |
188 |
> |
extern int refine_frame(int pass); |
189 |
> |
|
190 |
> |
/* ranimove.c */ |
191 |
> |
extern double getTime(void); |
192 |
> |
extern double obj_prio(OBJECT obj); |
193 |
> |
extern int getmove(OBJECT obj); |
194 |
> |
extern char * getoctspec(int n); |
195 |
> |
extern double expspec_val(char *s); |
196 |
> |
extern char *getexp(int n); /* XXX partly duplicated function */ |
197 |
> |
extern VIEW *getview(int n); /* XXX duplicated function */ |
198 |
> |
double getTime(); |
199 |
> |
/* |
200 |
> |
int countviews(); |
201 |
> |
void setdefaults(), |
202 |
> |
void setmove(), |
203 |
> |
setrendparams(); |
204 |
> |
getradfile(), |
205 |
> |
animate(), |
206 |
> |
*/ |
207 |
> |
|
208 |
> |
#ifdef __cplusplus |
209 |
> |
} |
210 |
> |
#endif |
211 |
> |
#endif /* _RAD_RANIMOVE_H_ */ |
212 |
> |
|