From 5fd7c5b7856f6d0ddce676a02b5f35dd074ece62 Mon Sep 17 00:00:00 2001 From: root <> Date: Sun, 8 Feb 2009 18:28:31 +0000 Subject: *** empty log message *** --- src/contour.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/contour.c') diff --git a/src/contour.c b/src/contour.c index 8022adb..813d6ef 100644 --- a/src/contour.c +++ b/src/contour.c @@ -36,13 +36,13 @@ typedef struct contour_struct { -void +static void cont_reset_point(Contour c) { c->current_line.npts = 0; } -void +static void cont_add_point(Contour c, Jwgpos pos) { Jwgpos *ptr; @@ -73,7 +73,7 @@ cont_add_point(Contour c, Jwgpos pos) } -unsigned char +static unsigned char find_direction(Point p1, Point p2) { p2.x -= p1.x; @@ -113,7 +113,7 @@ find_direction(Point p1, Point p2) } -Point +static Point add_direction(Point p, int d) { Point dirs[8] = {{-1, -1}, {0, -1}, {1, -1}, {1, 0}, {1, 1}, {0, 1}, {-1, 1}, {-1, 0}}; @@ -125,13 +125,13 @@ add_direction(Point p, int d) } -int +static int points_marked(Contour c, Point p1, Point p2) { return (c->fcol[p1.y])[p1.x] & find_direction(p1, p2); } -void +static void mark_points(Contour c, Point p1, Point p2) { (c->fcol[p1.y])[p1.x] |= find_direction(p1, p2); @@ -140,7 +140,7 @@ mark_points(Contour c, Point p1, Point p2) -trace(Contour c, Point p1, Point p2, Point pl, float level) +static void trace(Contour c, Point p1, Point p2, Point pl, float level) { Point pn; float v1, v2, vn; @@ -241,7 +241,7 @@ fflush(stdout); -possible(Contour c, int x1, int y1, int x2, int y2, int xl, int yl, float level) +static void possible(Contour c, int x1, int y1, int x2, int y2, int xl, int yl, float level) { Point p1, p2, pl; @@ -261,7 +261,7 @@ possible(Contour c, int x1, int y1, int x2, int y2, int xl, int yl, float level) } -contour(Contour c, float level) +static void contour(Contour c, float level) { int x, y; float **c0, **c1; @@ -304,7 +304,7 @@ contour(Contour c, float level) -void +INTERNAL void do_contour(Handle h, float level, int side, int lp) { Contour c = (Contour) malloc(sizeof(struct contour_struct)); -- cgit v1.2.3