home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / igbmmcut.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  876 b   |  39 lines

  1. /*
  2.  
  3. IGBMMCUT.H  Interface to Median Cut colour reduction
  4.  
  5. This code is arranged to allow generation of a palette from a set of input
  6. images. Quantisation is fixed at 5 bits each for red, green and blue. This
  7. is finer than most implementations, but costly on memory.
  8.  
  9. */
  10.  
  11. typedef void GBMMCUT;
  12.  
  13. extern GBMMCUT *gbm_create_mcut(void);
  14.  
  15. extern void gbm_delete_mcut(GBMMCUT *mcut);
  16.  
  17. extern void gbm_add_to_mcut(
  18.         GBMMCUT *mcut,
  19.         GBM *gbm, byte *data24
  20.         );
  21.  
  22. extern void gbm_pal_mcut(
  23.         GBMMCUT *mcut,
  24.         GBMRGB gbmrgb[],
  25.         int n_cols_wanted
  26.         );
  27.  
  28. extern void gbm_map_mcut(
  29.         GBMMCUT *mcut,
  30.         GBM *gbm, byte *data24, byte *data8
  31.         );
  32.  
  33. extern IBase::Boolean gbm_mcut(
  34.         GBM *gbm, byte *data24,
  35.         GBMRGB gbmrgb[],
  36.         byte *data8,
  37.         int n_cols_wanted
  38.         );
  39.