nearest.h 361 B

123456789101112131415
  1. //
  2. // nearest.h
  3. // pngquant
  4. //
  5. #ifndef NEAREST_H
  6. #define NEAREST_H
  7. struct nearest_map;
  8. LIQ_PRIVATE struct nearest_map *nearest_init(const colormap *palette);
  9. LIQ_PRIVATE unsigned int nearest_search(const struct nearest_map *map, const f_pixel *px, const int palette_index_guess, float *diff);
  10. LIQ_PRIVATE void nearest_free(struct nearest_map *map);
  11. #endif