6 |
|
*/ |
7 |
|
#ifndef _RAD_TONEMAP_H_ |
8 |
|
#define _RAD_TONEMAP_H_ |
9 |
+ |
|
10 |
+ |
#include "tifftypes.h" |
11 |
+ |
|
12 |
|
#ifdef __cplusplus |
13 |
|
extern "C" { |
14 |
|
#endif |
332 |
|
returns - 0 on success, TM_E_* on failure. |
333 |
|
*/ |
334 |
|
|
335 |
+ |
extern int |
336 |
+ |
tmCvRGB48(TMbright *ls, BYTE *cs, uint16 (*scan)[3], int len, double gv); |
337 |
+ |
/* |
338 |
+ |
Convert 48-bit RGB scanline to encoded luminance and chrominance. |
339 |
|
|
340 |
+ |
ls - returned encoded luminance values. |
341 |
+ |
cs - returned encoded chrominance values (Note 2). |
342 |
+ |
scan - input scanline. |
343 |
+ |
len - scanline length. |
344 |
+ |
gv - input gamma value. |
345 |
+ |
|
346 |
+ |
returns - 0 on success, TM_E_* on error. |
347 |
+ |
*/ |
348 |
+ |
|
349 |
+ |
extern int |
350 |
+ |
tmCvGray16(TMbright *ls, uint16 *scan, int len, double gv); |
351 |
+ |
/* |
352 |
+ |
Convert 16-bit gray scanline to encoded luminance. |
353 |
+ |
|
354 |
+ |
ls - returned encoded luminance values. |
355 |
+ |
scan - input scanline. |
356 |
+ |
len - scanline length. |
357 |
+ |
gv - input gamma value. |
358 |
+ |
|
359 |
+ |
returns - 0 on success, TM_E_* on error. |
360 |
+ |
*/ |
361 |
|
|
362 |
|
/**** Notes ****/ |
363 |
|
/* |