Debian Codegraph @

texk/web2c/mfluadir/potrace/luafunc.h

raw
1 /* From potracelib_demo.c */
2
3 #include <stdio.h>
4 #include <string.h>
5 #include <errno.h>
6 #include <stdlib.h>
7 #include <stdint.h>
8
9 #include "potracelib.h"
10
11 struct MFoutlines_param_s {
12 double xoffs ;
13 double yoffs ;
14 potrace_param_t *potrace_param;
15 };
16 typedef struct MFoutlines_param_s MFoutlines_param_t;
17
18 /* raster: bitmap wxh, pixel packed into a byte */
19 /* w: nr. of columns */
20 /* h: nr. of rows */
21 /* opt_parmam: optional parameters for potrace */
22 /* trace: curves returned by potrace */
23 /* Return 1 if error, 0 if ok */
24 int potrace_getMFoutlines(const uint8_t *raster, int w, int h, MFoutlines_param_t opt_param,potrace_state_t **trace);