QuantHeap.h 603 B

123456789101112131415161718192021222324252627
  1. /*
  2. * The Python Imaging Library
  3. * $Id$
  4. *
  5. * image quantizer
  6. *
  7. * Written by Toby J Sargeant <tjs@longford.cs.monash.edu.au>.
  8. *
  9. * See the README file for information on usage and redistribution.
  10. */
  11. #ifndef __QUANTHEAP_H__
  12. #define __QUANTHEAP_H__
  13. #include "QuantTypes.h"
  14. typedef struct _Heap Heap;
  15. typedef int (*HeapCmpFunc)(const Heap *,const void *,const void *);
  16. void ImagingQuantHeapFree(Heap *);
  17. int ImagingQuantHeapRemove(Heap *,void **);
  18. int ImagingQuantHeapAdd(Heap *,void *);
  19. int ImagingQuantHeapTop(Heap *,void **);
  20. Heap *ImagingQuantHeapNew(HeapCmpFunc);
  21. #endif // __QUANTHEAP_H__