QuantHeap.h 609 B

12345678910111213141516171819202122232425262728293031
  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
  17. ImagingQuantHeapFree(Heap *);
  18. int
  19. ImagingQuantHeapRemove(Heap *, void **);
  20. int
  21. ImagingQuantHeapAdd(Heap *, void *);
  22. int
  23. ImagingQuantHeapTop(Heap *, void **);
  24. Heap *ImagingQuantHeapNew(HeapCmpFunc);
  25. #endif // __QUANTHEAP_H__