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

Comparing ray/src/common/tonemap.h (file contents):
Revision 3.12 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 3.14 by greg, Fri Jun 27 06:53:22 2003 UTC

# Line 4 | Line 4
4   *
5   * Include after "color.h"
6   */
7 <
8 < #include "copyright.h"
9 <
7 > #ifndef _RAD_TONEMAP_H_
8 > #define _RAD_TONEMAP_H_
9   #ifdef __cplusplus
10   extern "C" {
11   #endif
# Line 88 | Line 87 | extern struct tmStruct {
87   }       *tmTop;                 /* current tone mapping stack */
88  
89                                  /* conversion package functions */
91 #ifdef  NOPROTO
90   struct tmPackage {
93        MEM_PTR         (*Init)();      /* initialize private data */
94        void            (*NewSpace)();  /* new input color space (optional) */
95        void            (*Free)();      /* free private data */
96 };
97 #else
98 struct tmPackage {
91          MEM_PTR         (*Init)(struct tmStruct *tms);
92          void            (*NewSpace)(struct tmStruct *tms);
93          void            (*Free)(MEM_PTR pp);
94   };
103 #endif
95                                  /* our list of conversion packages */
96   extern struct tmPackage *tmPkg[TM_MAXPKG];
97   extern int      tmNumPkgs;      /* number of registered packages */
# Line 124 | Line 115 | extern int     tmNumPkgs;      /* number of registered packages
115  
116   /****    Library Function Calls    ****/
117  
127 #ifdef  NOPROTO
118  
129 extern struct tmStruct  *tmInit(), *tmPop(), *tmDup();
130 extern int      tmSetSpace(), tmPull(), tmPush();
131 extern void     tmClearHisto(), tmDone();
132 extern int      tmAddHisto();
133 extern int      tmFixedMapping(), tmComputeMapping(), tmMapPixels();
134 extern int      tmCvColors(), tmCvGrays(), tmCvColrs();
135 extern int      tmLoadPicture(), tmMapPicture();
136
137 #else
138
119   extern struct tmStruct *
120   tmInit(int flags, RGBPRIMP monpri, double gamval);
121   /*
# Line 349 | Line 329 | tmMapPicture(BYTE **psp, int *xp, int *yp, int flags,
329          returns -       0 on success, TM_E_* on failure.
330   */
331  
352 #endif
332  
333  
334   /****    Notes    ****/
# Line 426 | Line 405 | tmMapPicture(BYTE **psp, int *xp, int *yp, int flags,
405   #ifdef __cplusplus
406   }
407   #endif
408 + #endif /* _RAD_TONEMAP_H_ */
409 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines