aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pillow/py3/libImaging/QuantHeap.h
blob: c5286dff2ba863268c61e19efbdf3b5535b46f91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * 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.
 */

#ifndef __QUANTHEAP_H__
#define __QUANTHEAP_H__

#include "QuantTypes.h"

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 **);
Heap *ImagingQuantHeapNew(HeapCmpFunc);

#endif  // __QUANTHEAP_H__