imagequant/nearest.h

15 lines
361 B
C
Raw Normal View History

2016-11-20 00:38:15 +00:00
//
// nearest.h
// pngquant
//
2020-07-25 00:55:50 +00:00
#ifndef NEAREST_H
#define NEAREST_H
2016-11-20 00:38:15 +00:00
struct nearest_map;
LIQ_PRIVATE struct nearest_map *nearest_init(const colormap *palette);
2016-11-20 00:38:15 +00:00
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);
2020-07-25 00:55:50 +00:00
#endif