1 |
greg |
2.2 |
/* RCSid: $Id: clrtab.h,v 2.1 2004/03/29 00:34:23 schorsch Exp $ */ |
2 |
schorsch |
2.1 |
/* color table routines |
3 |
|
|
*/ |
4 |
|
|
|
5 |
|
|
#ifndef _RAD_CLRTAB_H_ |
6 |
|
|
#define _RAD_CLRTAB_H_ |
7 |
|
|
|
8 |
|
|
#ifdef __cplusplus |
9 |
|
|
extern "C" { |
10 |
|
|
#endif |
11 |
|
|
|
12 |
|
|
/* defined in clrtab.c */ |
13 |
|
|
extern int new_histo(int n); |
14 |
greg |
2.2 |
extern void cnt_pixel(uby8 col[]); |
15 |
schorsch |
2.1 |
extern void cnt_colrs(COLR *cs, int n); |
16 |
|
|
extern int new_clrtab(int ncolors); |
17 |
greg |
2.2 |
extern int map_pixel(uby8 col[]); |
18 |
|
|
extern void map_colrs(uby8 *bs, COLR *cs, int n); |
19 |
|
|
extern void dith_colrs(uby8 *bs, COLR *cs, int n); |
20 |
schorsch |
2.1 |
|
21 |
|
|
/* defined in neuclrtab.c */ |
22 |
|
|
extern int neu_init(long npixels); |
23 |
greg |
2.2 |
extern void neu_pixel(uby8 col[]); |
24 |
schorsch |
2.1 |
extern void neu_colrs(COLR *cs, int n); |
25 |
|
|
extern int neu_clrtab(int ncolors); |
26 |
greg |
2.2 |
extern int neu_map_pixel(uby8 col[]); |
27 |
|
|
extern void neu_map_colrs(uby8 *bs, COLR *cs, int n); |
28 |
|
|
extern void neu_dith_colrs(uby8 *bs, COLR *cs, int n); |
29 |
schorsch |
2.1 |
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
#ifdef __cplusplus |
33 |
|
|
} |
34 |
|
|
#endif |
35 |
|
|
#endif /* _RAD_CLRTAB_H_ */ |
36 |
|
|
|