| 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 */ |
| 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 */ |
| 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 |
|
/* |
| 332 |
|
returns - 0 on success, TM_E_* on failure. |
| 333 |
|
*/ |
| 334 |
|
|
| 352 |
– |
#endif |
| 335 |
|
|
| 336 |
|
|
| 337 |
|
/**** Notes ****/ |
| 408 |
|
#ifdef __cplusplus |
| 409 |
|
} |
| 410 |
|
#endif |
| 411 |
+ |
#endif /* _RAD_TONEMAP_H_ */ |
| 412 |
+ |
|