Pillow/src/libImaging/QuantHeap.h

32 lines
609 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;
2021-01-03 06:17:51 +03:00
typedef int (*HeapCmpFunc)(const Heap *, const void *, const void *);
2013-04-08 02:52:15 +04:00
2021-01-03 06:17:51 +03:00
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);
2021-01-03 06:17:51 +03:00
#endif // __QUANTHEAP_H__