1 |
< |
/* Copyright (c) 1997 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
3 |
> |
/* SCCSid "$SunId$ SGI" */ |
4 |
|
|
5 |
|
/* |
6 |
|
* Header file for tone mapping functions. |
7 |
+ |
* |
8 |
+ |
* Include after "color.h" |
9 |
|
*/ |
8 |
– |
/* required non-system header files */ |
9 |
– |
#include "color.h" |
10 |
|
|
11 |
|
|
12 |
|
/**** Argument Macros ****/ |
32 |
|
#define TM_NOCHROMP (BYTE **)NULL /* indicate no chrominances */ |
33 |
|
#define TM_GETFILE (FILE *)NULL /* indicate file must be opened */ |
34 |
|
|
35 |
+ |
|
36 |
|
/**** Error Return Values ****/ |
37 |
|
|
38 |
|
#define TM_E_OK 0 /* normal return status */ |
232 |
|
malloc(3), and should be freed with free(3) when no longer needed. |
233 |
|
Calls tmSetSpace() to calibrate input color space. |
234 |
|
|
235 |
< |
lpp - returned array of encoded luminances, English ordering. |
235 |
> |
lpp - returned array of encoded luminances, picture ordering. |
236 |
|
cpp - returned array of encoded chrominances (Note 2). |
237 |
|
xp, yp - returned picture dimensions. |
238 |
|
fname - picture file name. |
254 |
|
Memory for the final pixel array is allocated using malloc(3), |
255 |
|
and should be freed with free(3) when it is no longer needed. |
256 |
|
|
257 |
< |
psp - returned array of tone mapped pixels, English ordering. |
257 |
> |
psp - returned array of tone mapped pixels, picture ordering. |
258 |
|
xp, yp - returned picture dimensions. |
259 |
|
flags - TM_F_* flags indicating what is to be done. |
260 |
|
monpri - display monitor primaries (Note 1). |