median.hh 891 B

123456789101112131415161718192021222324
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. #ifndef _MEDIAN_HPP_
  9. #define _MEDIAN_HPP_
  10. // median cut finds a good 256 palette to fit a 32 bit image
  11. // this is returned as an array of 256 32bit words. This
  12. // array should be freed using delete
  13. class i4_histogram_class;
  14. void i4_median_cut(i4_histogram_class *hist,
  15. w32 skip_colors,
  16. w32 t_colors,
  17. w32 *return_palette);
  18. #endif