Skip to content

Commit

Permalink
Add missing header guards.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Dec 25, 2019
1 parent bf654d1 commit ecc3941
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blur.h
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions mediancut.h
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions nearest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ecc3941

Please sign in to comment.