home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
gbmsrc.zip
/
gbmmcut.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-26
|
808b
|
44 lines
/*
gbmmcut.h - Interface to Median Cut colour reduction
This code is arranged to allow generation of a palette from a set of input
images. Quantisation is fixed at 5 bits each for red, green and blue. This
is finer than most implementations, but costly on memory.
*/
#ifndef GBMMCUT_H
#define GBMMCUT_H
typedef void GBMMCUT;
extern GBMMCUT *gbm_create_mcut(void);
extern void gbm_delete_mcut(GBMMCUT *mcut);
extern void gbm_add_to_mcut(
GBMMCUT *mcut,
const GBM *gbm, const byte *data24
);
extern void gbm_pal_mcut(
GBMMCUT *mcut,
GBMRGB gbmrgb[],
int n_cols_wanted
);
extern void gbm_map_mcut(
GBMMCUT *mcut,
const GBM *gbm, const byte *data24, byte *data8
);
extern BOOLEAN gbm_mcut(
const GBM *gbm, const byte *data24,
GBMRGB gbmrgb[],
byte *data8,
int n_cols_wanted
);
#endif