--- ray/src/common/tonemap.h 2003/06/27 06:53:22 3.14 +++ ray/src/common/tonemap.h 2003/07/14 22:23:59 3.16 @@ -1,4 +1,4 @@ -/* RCSid $Id: tonemap.h,v 3.14 2003/06/27 06:53:22 greg Exp $ */ +/* RCSid $Id: tonemap.h,v 3.16 2003/07/14 22:23:59 schorsch Exp $ */ /* * Header file for tone mapping functions. * @@ -6,6 +6,9 @@ */ #ifndef _RAD_TONEMAP_H_ #define _RAD_TONEMAP_H_ + +#include "tifftypes.h" + #ifdef __cplusplus extern "C" { #endif @@ -329,7 +332,32 @@ tmMapPicture(BYTE **psp, int *xp, int *yp, int flags, returns - 0 on success, TM_E_* on failure. */ +extern int +tmCvRGB48(TMbright *ls, BYTE *cs, uint16 (*scan)[3], int len, double gv); +/* + Convert 48-bit RGB scanline to encoded luminance and chrominance. + ls - returned encoded luminance values. + cs - returned encoded chrominance values (Note 2). + scan - input scanline. + len - scanline length. + gv - input gamma value. + + returns - 0 on success, TM_E_* on error. +*/ + +extern int +tmCvGray16(TMbright *ls, uint16 *scan, int len, double gv); +/* + Convert 16-bit gray scanline to encoded luminance. + + ls - returned encoded luminance values. + scan - input scanline. + len - scanline length. + gv - input gamma value. + + returns - 0 on success, TM_E_* on error. +*/ /**** Notes ****/ /*