| 1 |
schorsch |
2.1 |
/* RCSid: $Id$ */ |
| 2 |
|
|
/* 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 |
|
|
extern void cnt_pixel(BYTE col[]); |
| 15 |
|
|
extern void cnt_colrs(COLR *cs, int n); |
| 16 |
|
|
extern int new_clrtab(int ncolors); |
| 17 |
|
|
extern int map_pixel(BYTE col[]); |
| 18 |
|
|
extern void map_colrs(BYTE *bs, COLR *cs, int n); |
| 19 |
|
|
extern void dith_colrs(BYTE *bs, COLR *cs, int n); |
| 20 |
|
|
|
| 21 |
|
|
/* defined in neuclrtab.c */ |
| 22 |
|
|
extern int neu_init(long npixels); |
| 23 |
|
|
extern void neu_pixel(BYTE col[]); |
| 24 |
|
|
extern void neu_colrs(COLR *cs, int n); |
| 25 |
|
|
extern int neu_clrtab(int ncolors); |
| 26 |
|
|
extern int neu_map_pixel(BYTE col[]); |
| 27 |
|
|
extern void neu_map_colrs(BYTE *bs, COLR *cs, int n); |
| 28 |
|
|
extern void neu_dith_colrs(BYTE *bs, COLR *cs, int n); |
| 29 |
|
|
|
| 30 |
|
|
|
| 31 |
|
|
|
| 32 |
|
|
#ifdef __cplusplus |
| 33 |
|
|
} |
| 34 |
|
|
#endif |
| 35 |
|
|
#endif /* _RAD_CLRTAB_H_ */ |
| 36 |
|
|
|