252 |
|
tmCvColors( /* convert float colors */ |
253 |
|
TMstruct *tms, |
254 |
|
TMbright *ls, |
255 |
< |
BYTE *cs, |
255 |
> |
uby8 *cs, |
256 |
|
COLOR *scan, |
257 |
|
int len |
258 |
|
) |
259 |
|
{ |
260 |
|
static const char funcName[] = "tmCvColors"; |
261 |
< |
static BYTE gamtab[1024]; |
261 |
> |
static uby8 gamtab[1024]; |
262 |
|
static double curgam = .0; |
263 |
|
COLOR cmon; |
264 |
|
float lum, slum, d; |
555 |
|
int |
556 |
|
tmMapPixels( /* apply tone-mapping to pixel(s) */ |
557 |
|
TMstruct *tms, |
558 |
< |
BYTE *ps, |
558 |
> |
uby8 *ps, |
559 |
|
TMbright *ls, |
560 |
< |
BYTE *cs, |
560 |
> |
uby8 *cs, |
561 |
|
int len |
562 |
|
) |
563 |
|
{ |
651 |
|
|
652 |
|
/******************** Shared but Private library routines *********************/ |
653 |
|
|
654 |
< |
BYTE tmMesofact[BMESUPPER-BMESLOWER]; |
654 |
> |
uby8 tmMesofact[BMESUPPER-BMESLOWER]; |
655 |
|
|
656 |
|
void |
657 |
|
tmMkMesofact() /* build mesopic lookup factor table */ |