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.18 by greg, Mon Feb 6 22:40:21 2023 UTC vs.
Revision 2.19 by greg, Wed Nov 15 18:02:53 2023 UTC

# Line 44 | Line 44 | extern RNUMBER         lastdone;       /* last ray processed */
44  
45   extern int              report_intvl;   /* reporting interval (seconds) */
46  
47 < typedef double          DCOLOR[3];      /* double-precision color */
47 > typedef double          DCOLORV;        /* double-precision color type */
48  
49   /*
50   * The MODCONT structure is used to accumulate ray contributions
# Line 53 | Line 53 | typedef double         DCOLOR[3];      /* double-precision color *
53   * be replaced with the modifier name.  If outspec contains a %d in it,
54   * this will be used to create one output file per bin, otherwise all bins
55   * will be written to the same file, in order.  If the global outfmt
56 < * is 'c', then a 4-byte RGBE pixel will be output for each bin value
57 < * and the file will conform to a RADIANCE image if xres & yres are set.
56 > * is 'c', then a common-exponent pixel will be output for each bin value
57 > * and the file will conform to a RADIANCE picture if NCSAMP==3 and
58 > * xres and yres are set.
59   */
60   typedef struct {
61          const char      *outspec;       /* output file specification */
# Line 63 | Line 64 | typedef struct {
64          EPNODE          *binv;          /* bin value expression */
65          int             bin0;           /* starting bin offset */
66          int             nbins;          /* number of contribution bins */
67 <        DCOLOR          cbin[1];        /* contribution bins (extends struct) */
67 >        DCOLORV         cbin[1];        /* contribution bins (extends struct) */
68   } MODCONT;                      /* modifier contribution */
69 +
70 + #define DCOLORSIZ       (sizeof(DCOLORV)*NCSAMP)
71 + #define mcsize(nb)      (sizeof(MODCONT)-sizeof(DCOLORV)+(nb)*DCOLORSIZ)
72 + #define mcbin(mp,bi)    ((mp)->cbin + (bi)*NCSAMP)
73  
74   extern LUTAB            modconttab;     /* modifier contribution table */
75  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines