home *** CD-ROM | disk | FTP | other *** search
- /*
-
- IGBMMCUT.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.
-
- */
-
- typedef void GBMMCUT;
-
- extern GBMMCUT *gbm_create_mcut(void);
-
- extern void gbm_delete_mcut(GBMMCUT *mcut);
-
- extern void gbm_add_to_mcut(
- GBMMCUT *mcut,
- GBM *gbm, byte *data24
- );
-
- extern void gbm_pal_mcut(
- GBMMCUT *mcut,
- GBMRGB gbmrgb[],
- int n_cols_wanted
- );
-
- extern void gbm_map_mcut(
- GBMMCUT *mcut,
- GBM *gbm, byte *data24, byte *data8
- );
-
- extern IBase::Boolean gbm_mcut(
- GBM *gbm, byte *data24,
- GBMRGB gbmrgb[],
- byte *data8,
- int n_cols_wanted
- );
-