66 |
|
#endif |
67 |
|
|
68 |
|
extern char *tmErrorMessage[]; /* error messages */ |
69 |
– |
extern int tmLastError; /* last error incurred by library */ |
70 |
– |
extern char *tmLastFunction; /* error-generating function name */ |
69 |
|
|
70 |
|
typedef short TMbright; /* encoded luminance type */ |
71 |
|
|
84 |
|
TMbright mbrmin, mbrmax; /* mapped brightness limits */ |
85 |
|
unsigned short *lumap; /* computed luminance map */ |
86 |
|
MEM_PTR pd[TM_MAXPKG]; /* pointers to private data */ |
87 |
+ |
int lastError; /* last error incurred */ |
88 |
+ |
const char *lastFunc; /* error-generating function name */ |
89 |
|
} TMstruct; |
90 |
|
|
91 |
|
/* conversion package functions */ |
175 |
|
tms - tone mapping structure pointer. |
176 |
|
expmult - the fixed exposure multiplier to use. |
177 |
|
gamval - display gamma response (0. for default). |
178 |
+ |
|
179 |
|
returns - 0 on success, TM_E_* on error. |
180 |
|
*/ |
181 |
|
|
215 |
|
Duplicate the given tone mapping into a new struct. |
216 |
|
|
217 |
|
orig - tone mapping structure to duplicate. |
218 |
+ |
|
219 |
|
returns - pointer to new struct, or NULL on error. |
220 |
|
*/ |
221 |
|
|