summaryrefslogtreecommitdiff
path: root/tools/assets/n64texconv/lib/libimagequant/nearest.h
blob: 10a0a2c1b97a7aca9e7dab1652cf3edde1d39745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//
//  nearest.h
//  pngquant
//

#ifndef NEAREST_H
#define NEAREST_H

struct nearest_map;
LIQ_PRIVATE struct nearest_map *nearest_init(const colormap *palette);
LIQ_PRIVATE unsigned int nearest_search(const struct nearest_map *map, const f_pixel *px, const int palette_index_guess, float *diff);
LIQ_PRIVATE void nearest_free(struct nearest_map *map);

#endif