1 |
< |
/* RCSid: $Id$ */ |
1 |
> |
/* RCSid $Id$ */ |
2 |
|
/* |
3 |
|
* ranimove.h |
4 |
|
* |
16 |
|
* |
17 |
|
* See the ranimove(1) man page for further details. |
18 |
|
*/ |
19 |
+ |
#ifndef _RAD_RANIMOVE_H_ |
20 |
+ |
#define _RAD_RANIMOVE_H_ |
21 |
|
|
20 |
– |
/* ==================================================================== |
21 |
– |
* The Radiance Software License, Version 1.0 |
22 |
– |
* |
23 |
– |
* Copyright (c) 1990 - 2002 The Regents of the University of California, |
24 |
– |
* through Lawrence Berkeley National Laboratory. All rights reserved. |
25 |
– |
* |
26 |
– |
* Redistribution and use in source and binary forms, with or without |
27 |
– |
* modification, are permitted provided that the following conditions |
28 |
– |
* are met: |
29 |
– |
* |
30 |
– |
* 1. Redistributions of source code must retain the above copyright |
31 |
– |
* notice, this list of conditions and the following disclaimer. |
32 |
– |
* |
33 |
– |
* 2. Redistributions in binary form must reproduce the above copyright |
34 |
– |
* notice, this list of conditions and the following disclaimer in |
35 |
– |
* the documentation and/or other materials provided with the |
36 |
– |
* distribution. |
37 |
– |
* |
38 |
– |
* 3. The end-user documentation included with the redistribution, |
39 |
– |
* if any, must include the following acknowledgment: |
40 |
– |
* "This product includes Radiance software |
41 |
– |
* (http://radsite.lbl.gov/) |
42 |
– |
* developed by the Lawrence Berkeley National Laboratory |
43 |
– |
* (http://www.lbl.gov/)." |
44 |
– |
* Alternately, this acknowledgment may appear in the software itself, |
45 |
– |
* if and wherever such third-party acknowledgments normally appear. |
46 |
– |
* |
47 |
– |
* 4. The names "Radiance," "Lawrence Berkeley National Laboratory" |
48 |
– |
* and "The Regents of the University of California" must |
49 |
– |
* not be used to endorse or promote products derived from this |
50 |
– |
* software without prior written permission. For written |
51 |
– |
* permission, please contact [email protected]. |
52 |
– |
* |
53 |
– |
* 5. Products derived from this software may not be called "Radiance", |
54 |
– |
* nor may "Radiance" appear in their name, without prior written |
55 |
– |
* permission of Lawrence Berkeley National Laboratory. |
56 |
– |
* |
57 |
– |
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
58 |
– |
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
59 |
– |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
60 |
– |
* DISCLAIMED. IN NO EVENT SHALL Lawrence Berkeley National Laboratory OR |
61 |
– |
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
62 |
– |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
63 |
– |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
64 |
– |
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
65 |
– |
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
66 |
– |
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
67 |
– |
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
68 |
– |
* SUCH DAMAGE. |
69 |
– |
* ==================================================================== |
70 |
– |
* |
71 |
– |
* This software consists of voluntary contributions made by many |
72 |
– |
* individuals on behalf of Lawrence Berkeley National Laboratory. For more |
73 |
– |
* information on Lawrence Berkeley National Laboratory, please see |
74 |
– |
* <http://www.lbl.gov/>. |
75 |
– |
*/ |
76 |
– |
|
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 |
|
|
162 |
– |
VIEW *getview(); |
163 |
– |
int countviews(); |
164 |
– |
int getmove(); |
165 |
– |
char *getexp(), *getoctspec(), *getobjname(), *getxf(); |
166 |
– |
double expspec_val(), obj_prio(); |
167 |
– |
void setdefaults(), setmove(), animate(), getradfile(), setrendparams(); |
168 |
– |
void init_frame(), filter_frame(), send_frame(), free_frame(); |
169 |
– |
int refine_frame(); |
170 |
– |
double getTime(); |
171 |
– |
|
112 |
|
/************************************************************************* |
113 |
|
* Frame rendering stuff (defined in ranimove1.c and ranimove2.c) |
114 |
|
*/ |
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 |
> |
|