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

Comparing ray/src/rt/rcontrib.h (file contents):
Revision 2.3 by greg, Tue Jun 12 17:20:44 2012 UTC vs.
Revision 2.15 by greg, Mon Sep 12 20:31:34 2016 UTC

# Line 4 | Line 4
4   * Header file for rcontrib modules
5   */
6  
7 + #include "platform.h"
8 + #include "paths.h"
9 + #include "rtprocess.h"
10   #include "ray.h"
11   #include "func.h"
12   #include "lookup.h"
# Line 54 | Line 57 | typedef double         DCOLOR[3];      /* double-precision color *
57   typedef struct {
58          const char      *outspec;       /* output file specification */
59          const char      *modname;       /* modifier name */
60 +        const char      *params;        /* parameter list */
61          EPNODE          *binv;          /* bin value expression */
62 +        int             bin0;           /* starting bin offset */
63          int             nbins;          /* number of contribution bins */
64          DCOLOR          cbin[1];        /* contribution bins (extends struct) */
65   } MODCONT;                      /* modifier contribution */
# Line 75 | Line 80 | typedef struct {
80   extern LUTAB            ofiletab;       /* output stream table */
81  
82   #ifndef MAXPROCESS
83 < #ifdef _WIN32
83 > #if defined(_WIN32) || defined(_WIN64)
84   #define MAXPROCESS      1
85   #else
86   #define MAXPROCESS      128
# Line 83 | Line 88 | extern LUTAB           ofiletab;       /* output stream table */
88   #endif
89  
90   #ifndef MAXMODLIST
91 < #define MAXMODLIST      2048            /* maximum modifiers we'll track */
91 > #define MAXMODLIST      10000           /* maximum modifiers we'll track */
92   #endif
88 #ifndef  MAXTSET
89 #define  MAXTSET        16383           /* maximum number in trace set */
90 #endif
93  
94   extern const char       *modname[MAXMODLIST];   /* ordered modifier name list */
95   extern int              nmods;                  /* number of modifiers */
96  
97   extern char             RCCONTEXT[];            /* special evaluation context */
98  
97 extern void             tranotify(OBJECT obj);  /* new trace modifier */
98
99   extern char             *formstr(int f);        /* return format identifier */
100  
101   extern void             process_rcontrib(void); /* trace ray contributions */
# Line 107 | Line 107 | extern void            mod_output(MODCONT *mp);
107   extern void             end_record(void);
108  
109   extern MODCONT          *addmodifier(char *modn, char *outf,
110 <                                                char *binv, int bincnt);
110 >                                        char *prms, char *binv, int bincnt);
111   extern void             addmodfile(char *fname, char *outf,
112 <                                                char *binv, int bincnt);
112 >                                        char *prms, char *binv, int bincnt);
113  
114   extern void             reload_output(void);
115   extern void             recover_output(void);
# Line 117 | Line 117 | extern void            recover_output(void);
117   extern int              getvec(FVECT vec);
118  
119   extern int              in_rchild(void);
120 < extern void             end_children(void);
120 > extern void             end_children(int immed);
121  
122   extern void             put_zero_record(int ndx);
123 extern void             queue_modifiers(void);
123  
124   extern void             parental_loop(void);    /* controlling process */
125 +
126 + extern void             feeder_loop(void);      /* feeder process */
127  
128   extern void             rcontrib(void);         /* main calculation loop */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines