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 |
|
* Private header file for tone mapping routines. |
8 |
|
|
9 |
|
#undef NOPROTO |
10 |
|
#define NOPROTO 1 |
11 |
+ |
#ifndef MEM_PTR |
12 |
+ |
#define MEM_PTR char * |
13 |
+ |
#endif |
14 |
+ |
#include "color.h" |
15 |
|
#include "tonemap.h" |
16 |
|
|
17 |
|
/* required constants */ |
29 |
|
#define MINLDMAX 1. |
30 |
|
#define DEFLDMAX 100. |
31 |
|
|
28 |
– |
/* private flags */ |
29 |
– |
#define TM_F_INITED 010000 /* initialized flag */ |
30 |
– |
#define TM_F_NEEDMAT 020000 /* need matrix conversion */ |
31 |
– |
|
32 |
|
#define BRT2SCALE ((int)(M_LN2*TM_BRTSCALE+.5)) |
33 |
|
|
34 |
|
#define HISTEP 8 /* steps in BRTSCALE for each bin */ |
59 |
|
(int4)(SCO_bf*256.+.5)*(c)[BLU] ) >> 8 ) |
60 |
|
|
61 |
|
#ifndef malloc |
62 |
< |
extern char *malloc(), *calloc(); |
62 |
> |
MEM_PTR malloc(); |
63 |
> |
MEM_PTR calloc(); |
64 |
|
#endif |
65 |
|
extern int tmErrorReturn(); |
66 |
|
|