124 |
|
Convert a single luminance value to an encoded brightness value. |
125 |
|
*/ |
126 |
|
|
127 |
+ |
extern int |
128 |
+ |
tmCvLums(TMbright *ls, float *scan, int len); |
129 |
+ |
/* |
130 |
+ |
Convert luminance values to encoded brightness values using lookup. |
131 |
+ |
|
132 |
+ |
ls - returned encoded luminance values. |
133 |
+ |
scan - input scanline. |
134 |
+ |
len - scanline length. |
135 |
+ |
|
136 |
+ |
returns - 0 on success, TM_E_* on error. |
137 |
+ |
*/ |
138 |
+ |
|
139 |
|
extern TMstruct * |
140 |
|
tmInit(int flags, RGBPRIMP monpri, double gamval); |
141 |
|
/* |
247 |
|
*/ |
248 |
|
|
249 |
|
extern int |
250 |
< |
tmCvColors(TMstruct *tms, TMbright *ls, BYTE *cs, COLOR *scan, int len); |
250 |
> |
tmCvGrays(TMstruct *tms, TMbright *ls, float *scan, int len); |
251 |
|
/* |
252 |
< |
Convert RGB/XYZ float scanline to encoded luminance and chrominance. |
252 |
> |
Convert gray float scanline to encoded luminance. |
253 |
|
|
254 |
|
tms - tone mapping structure pointer. |
255 |
|
ls - returned encoded luminance values. |
244 |
– |
cs - returned encoded chrominance values (Note 2). |
256 |
|
scan - input scanline. |
257 |
|
len - scanline length. |
258 |
|
|
260 |
|
*/ |
261 |
|
|
262 |
|
extern int |
263 |
< |
tmCvGrays(TMstruct *tms, TMbright *ls, float *scan, int len); |
263 |
> |
tmCvColors(TMstruct *tms, TMbright *ls, BYTE *cs, COLOR *scan, int len); |
264 |
|
/* |
265 |
< |
Convert gray float scanline to encoded luminance. |
265 |
> |
Convert RGB/XYZ float scanline to encoded luminance and chrominance. |
266 |
|
|
267 |
|
tms - tone mapping structure pointer. |
268 |
|
ls - returned encoded luminance values. |
269 |
+ |
cs - returned encoded chrominance values (Note 2). |
270 |
|
scan - input scanline. |
271 |
|
len - scanline length. |
272 |
|
|