home *** CD-ROM | disk | FTP | other *** search
- /*
-
- IGBMHIST.H Interface to Histogram/Frequency-of-use method of colour reduction
-
- This code has been changed to expose the various steps in performing a
- mapping to a frequency-of-use based palette. This is to all people to write
- code that computes a frequency-of-use based palette from a set of bitmaps,
- and then map them all to this palette. This original gbm_hist function,
- which works on one bitmap, has been rewritten in terms of the lower-level
- functions for ease of compatibility.
-
- */
-
- typedef void GBMHIST;
-
- extern GBMHIST *gbm_create_hist(
- byte rm, byte gm, byte bm
- );
-
- extern void gbm_delete_hist(GBMHIST *hist);
-
- extern IBase::Boolean gbm_add_to_hist(
- GBMHIST *hist,
- GBM *gbm, byte *data24
- );
-
- extern void gbm_pal_hist(
- GBMHIST *hist,
- GBMRGB gbmrgb[],
- int n_cols_wanted
- );
-
- extern void gbm_map_hist(
- GBMHIST *hist,
- GBM *gbm, byte *data24, byte *data8
- );
-
- extern IBase::Boolean gbm_hist(
- GBM *gbm, byte *data24,
- GBMRGB gbmrgb[],
- byte *data8,
- int n_cols_wanted,
- byte rm, byte gm, byte bm
- );
-