diff --git a/blur.h b/blur.h index 06ae8cb..1e77819 100644 --- a/blur.h +++ b/blur.h @@ -1,4 +1,8 @@ +#ifndef BLUR_H +#define BLUR_H LIQ_PRIVATE void liq_blur(unsigned char *src, unsigned char *tmp, unsigned char *dst, unsigned int width, unsigned int height, unsigned int size); LIQ_PRIVATE void liq_max3(unsigned char *src, unsigned char *dst, unsigned int width, unsigned int height); LIQ_PRIVATE void liq_min3(unsigned char *src, unsigned char *dst, unsigned int width, unsigned int height); + +#endif diff --git a/mediancut.h b/mediancut.h index d97696c..9a4cb53 100644 --- a/mediancut.h +++ b/mediancut.h @@ -1,2 +1,6 @@ +#ifndef MEDIANCUT_H +#define MEDIANCUT_H LIQ_PRIVATE colormap *mediancut(histogram *hist, unsigned int newcolors, const double target_mse, const double max_mse, void* (*malloc)(size_t), void (*free)(void*)); + +#endif diff --git a/nearest.h b/nearest.h index e20233b..10a0a2c 100644 --- a/nearest.h +++ b/nearest.h @@ -2,7 +2,13 @@ // 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