imagequant-sys 2.13.1

Statically linked C part of imagequant library powering tools such as pngquant. This library is dual-licensed like pngquant: either GPL or a commercial license. See website for details: https://pngquant.org
Documentation
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