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

  1. /*
  2.  
  3. IGBMHIST.H  Interface to Histogram/Frequency-of-use method of colour reduction
  4.  
  5. This code has been changed to expose the various steps in performing a
  6. mapping to a frequency-of-use based palette. This is to all people to write
  7. code that computes a frequency-of-use based palette from a set of bitmaps,
  8. and then map them all to this palette. This original gbm_hist function,
  9. which works on one bitmap, has been rewritten in terms of the lower-level
  10. functions for ease of compatibility.
  11.  
  12. */
  13.  
  14. typedef void GBMHIST;
  15.  
  16. extern GBMHIST *gbm_create_hist(
  17.         byte rm, byte gm, byte bm
  18.         );
  19.  
  20. extern void gbm_delete_hist(GBMHIST *hist);
  21.  
  22. extern IBase::Boolean gbm_add_to_hist(
  23.         GBMHIST *hist,
  24.         GBM *gbm, byte *data24
  25.         );
  26.  
  27. extern void gbm_pal_hist(
  28.         GBMHIST *hist,
  29.         GBMRGB gbmrgb[],
  30.         int n_cols_wanted
  31.         );
  32.  
  33. extern void gbm_map_hist(
  34.         GBMHIST *hist,
  35.         GBM *gbm, byte *data24, byte *data8
  36.         );
  37.  
  38. extern IBase::Boolean gbm_hist(
  39.         GBM *gbm, byte *data24,
  40.         GBMRGB gbmrgb[],
  41.         byte *data8,
  42.         int n_cols_wanted,
  43.         byte rm, byte gm, byte bm
  44.         );
  45.