ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/tonemap.h
(Generate patch)

Comparing ray/src/common/tonemap.h (file contents):
Revision 3.14 by greg, Fri Jun 27 06:53:22 2003 UTC vs.
Revision 3.16 by schorsch, Mon Jul 14 22:23:59 2003 UTC

# Line 6 | Line 6
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
# Line 329 | Line 332 | tmMapPicture(BYTE **psp, int *xp, int *yp, int flags,
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   /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines