From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/3rdparty/autotrace/image-proc.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/3rdparty/autotrace/image-proc.h (limited to 'src/3rdparty/autotrace/image-proc.h') diff --git a/src/3rdparty/autotrace/image-proc.h b/src/3rdparty/autotrace/image-proc.h new file mode 100644 index 0000000..5c131a7 --- /dev/null +++ b/src/3rdparty/autotrace/image-proc.h @@ -0,0 +1,21 @@ +/* image-proc.h: image processing routines */ + +#ifndef IMAGE_PROC_H +#define IMAGE_PROC_H + +#include "bitmap.h" +#include "color.h" + +typedef struct { + unsigned height, width; + float **weight; + float **d; +} at_distance_map; + +/* Allocate and compute a new distance map. */ +extern at_distance_map new_distance_map(at_bitmap *, unsigned char target_value, gboolean padded, at_exception_type * exp); + +/* Free the dynamically-allocated storage associated with a distance map. */ +extern void free_distance_map(at_distance_map *); + +#endif /* not IMAGE_PROC_H */ -- cgit v1.2.3