73 |
|
RGBPRIMP inppri; /* current input primaries */ |
74 |
|
double inpsf; /* current input scalefactor */ |
75 |
|
COLORMAT cmat; /* color conversion matrix */ |
76 |
< |
TMbright brmin, brmax; /* input brightness limits */ |
76 |
> |
TMbright hbrmin, hbrmax; /* histogram brightness limits */ |
77 |
|
int *histo; /* input histogram */ |
78 |
+ |
TMbright mbrmin, mbrmax; /* mapped brightness limits */ |
79 |
|
unsigned short *lumap; /* computed luminance map */ |
80 |
|
struct tmStruct *tmprev; /* previous tone mapping */ |
81 |
|
MEM_PTR pd[TM_MAXPKG]; /* pointers to private data */ |
198 |
|
extern int |
199 |
|
tmComputeMapping(double gamval, double Lddyn, double Ldmax); |
200 |
|
/* |
201 |
< |
Compute tone mapping function. |
201 |
> |
Compute tone mapping function. This mapping will be used |
202 |
> |
in subsequent calls to tmMapPixels() until a new tone mapping |
203 |
> |
is computed. I.e., calls to tmAddHisto() have no immediate effect. |
204 |
|
|
205 |
|
gamval - display gamma response (0. for default). |
206 |
|
Lddyn - the display's dynamic range (0. for default). |