14 |
|
#endif |
15 |
|
|
16 |
|
/**** Argument Macros ****/ |
17 |
< |
/* Flags of what to do */ |
17 |
> |
/* flags of what to do */ |
18 |
|
#define TM_F_HCONTR 01 /* human contrast sensitivity */ |
19 |
|
#define TM_F_MESOPIC 02 /* mesopic color sensitivity */ |
20 |
|
#define TM_F_LINEAR 04 /* linear brightness mapping */ |
70 |
|
typedef short TMbright; /* encoded luminance type */ |
71 |
|
|
72 |
|
/* basic tone mapping data structure */ |
73 |
< |
typedef struct tmStruct { |
73 |
> |
typedef struct { |
74 |
|
int flags; /* flags of what to do */ |
75 |
|
RGBPRIMP monpri; /* monitor RGB primaries */ |
76 |
|
double mongam; /* monitor gamma value (approx.) */ |
118 |
|
|
119 |
|
/**** Library Function Calls ****/ |
120 |
|
|
121 |
+ |
extern TMbright |
122 |
+ |
tmCvLuminance(double lum); |
123 |
+ |
/* |
124 |
+ |
Convert a single luminance value to an encoded brightness value. |
125 |
+ |
*/ |
126 |
|
|
127 |
|
extern TMstruct * |
128 |
|
tmInit(int flags, RGBPRIMP monpri, double gamval); |