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.13 by schorsch, Fri Jun 6 16:38:47 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
12  
13 +
14 + #include "copyright.h"
15 +
16   /****    Argument Macros    ****/
17                                  /* Flags of what to do */
18   #define TM_F_HCONTR     01              /* human contrast sensitivity */
# Line 88 | Line 90 | extern struct tmStruct {
90   }       *tmTop;                 /* current tone mapping stack */
91  
92                                  /* conversion package functions */
91 #ifdef  NOPROTO
93   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 {
94          MEM_PTR         (*Init)(struct tmStruct *tms);
95          void            (*NewSpace)(struct tmStruct *tms);
96          void            (*Free)(MEM_PTR pp);
97   };
103 #endif
98                                  /* our list of conversion packages */
99   extern struct tmPackage *tmPkg[TM_MAXPKG];
100   extern int      tmNumPkgs;      /* number of registered packages */
# Line 124 | Line 118 | extern int     tmNumPkgs;      /* number of registered packages
118  
119   /****    Library Function Calls    ****/
120  
127 #ifdef  NOPROTO
121  
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
122   extern struct tmStruct *
123   tmInit(int flags, RGBPRIMP monpri, double gamval);
124   /*
# Line 349 | Line 332 | tmMapPicture(BYTE **psp, int *xp, int *yp, int flags,
332          returns -       0 on success, TM_E_* on failure.
333   */
334  
352 #endif
335  
336  
337   /****    Notes    ****/
# Line 426 | Line 408 | tmMapPicture(BYTE **psp, int *xp, int *yp, int flags,
408   #ifdef __cplusplus
409   }
410   #endif
411 + #endif /* _RAD_TONEMAP_H_ */
412 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines