Back to index

radiance  4R0+20100331
clrtab.h
Go to the documentation of this file.
00001 /* RCSid: $Id: clrtab.h,v 2.1 2004/03/29 00:34:23 schorsch Exp $ */
00002 /* color table routines
00003 */
00004 
00005 #ifndef _RAD_CLRTAB_H_
00006 #define _RAD_CLRTAB_H_
00007 
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012        /* defined in clrtab.c */
00013 extern int new_histo(int n);
00014 extern void cnt_pixel(BYTE col[]);
00015 extern void cnt_colrs(COLR *cs, int n);
00016 extern int new_clrtab(int ncolors);
00017 extern int map_pixel(BYTE col[]);
00018 extern void map_colrs(BYTE *bs, COLR *cs, int n);
00019 extern void dith_colrs(BYTE *bs, COLR *cs, int n);
00020 
00021        /* defined in neuclrtab.c */
00022 extern int neu_init(long npixels);
00023 extern void neu_pixel(BYTE col[]);
00024 extern void neu_colrs(COLR *cs, int n);
00025 extern int neu_clrtab(int ncolors);
00026 extern int neu_map_pixel(BYTE col[]);
00027 extern void neu_map_colrs(BYTE *bs, COLR *cs, int n);
00028 extern void neu_dith_colrs(BYTE *bs, COLR *cs, int n);
00029 
00030 
00031 
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035 #endif /* _RAD_CLRTAB_H_ */
00036