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

Comparing ray/src/util/ranimove.h (file contents):
Revision 3.4 by schorsch, Fri Jun 27 11:32:12 2003 UTC vs.
Revision 3.7 by greg, Fri May 20 02:06:39 2011 UTC

# Line 18 | Line 18
18   */
19   #ifndef _RAD_RANIMOVE_H_
20   #define _RAD_RANIMOVE_H_
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
21  
25
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 */
# Line 108 | Line 109 | extern int             haveprio;       /* high-level saliency specified
109   extern int              gargc;          /* global argc for printargs */
110   extern char             **gargv;        /* global argv for printargs */
111  
111 VIEW    *getview();
112 int     countviews();
113 int     getmove();
114 char    *getexp(), *getoctspec(), *getobjname(), *getxf();
115 double  expspec_val(), obj_prio();
116 void    setdefaults(), setmove(), animate(), getradfile(), setrendparams();
117 void    init_frame(), filter_frame(), send_frame(), free_frame();
118 int     refine_frame();
119 double  getTime();
120
112   /*************************************************************************
113   * Frame rendering stuff (defined in ranimove1.c and ranimove2.c)
114   */
# Line 139 | Line 130 | extern float   *zbuffer;       /* depth at each pixel */
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? */
# Line 177 | Line 168 | extern double  hlsmax;         /* maximum high-level saliency
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines