Pillow/libImaging/QuantHeap.h

28 lines
603 B
C
Raw Normal View History

2010-07-31 06:52:47 +04:00
/*
* The Python Imaging Library
* $Id$
*
* image quantizer
*
* Written by Toby J Sargeant <tjs@longford.cs.monash.edu.au>.
*
* See the README file for information on usage and redistribution.
*/
2013-04-08 02:52:15 +04:00
#ifndef __QUANTHEAP_H__
#define __QUANTHEAP_H__
2010-07-31 06:52:47 +04:00
#include "QuantTypes.h"
2013-04-08 02:52:15 +04:00
typedef struct _Heap Heap;
typedef int (*HeapCmpFunc)(const Heap *,const void *,const void *);
void ImagingQuantHeapFree(Heap *);
int ImagingQuantHeapRemove(Heap *,void **);
int ImagingQuantHeapAdd(Heap *,void *);
int ImagingQuantHeapTop(Heap *,void **);
2010-07-31 06:52:47 +04:00
Heap *ImagingQuantHeapNew(HeapCmpFunc);
2013-04-08 02:52:15 +04:00
#endif // __QUANTHEAP_H__