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 |
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 */ |
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 |
|
/* |
329 |
|
returns - 0 on success, TM_E_* on failure. |
330 |
|
*/ |
331 |
|
|
352 |
– |
#endif |
332 |
|
|
333 |
|
|
334 |
|
/**** Notes ****/ |
405 |
|
#ifdef __cplusplus |
406 |
|
} |
407 |
|
#endif |
408 |
+ |
#endif /* _RAD_TONEMAP_H_ */ |
409 |
+ |
|