From 78c5fad50e90a11a80cf0428111100451026d35c Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 20 Apr 2009 23:56:50 +0000 Subject: [PATCH] wave.c: rename pipi_wave() into pipi_sine(). git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3416 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/context.c | 6 +++--- pipi/filter/wave.c | 4 ++-- pipi/pipi.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pipi/context.c b/pipi/context.c index f306dde..72e313e 100644 --- a/pipi/context.c +++ b/pipi/context.c @@ -90,7 +90,7 @@ pipi_command_t const *pipi_get_command_list(void) { "screen", 0 }, { "overlay", 0 }, { "line", 1 }, - { "wave", 1 }, + { "sine", 1 }, /* End marker */ { NULL, 0 } @@ -822,7 +822,7 @@ int pipi_command(pipi_context_t *ctx, char const *cmd, ...) x1, y1, x2, y2, color, aa); ctx->nimages++; } - else if(!strcmp(cmd, "wave")) + else if(!strcmp(cmd, "sine")) { pipi_image_t *tmp; char const *arg; @@ -842,7 +842,7 @@ int pipi_command(pipi_context_t *ctx, char const *cmd, ...) return -1; tmp = ctx->images[ctx->nimages - 1]; - ctx->images[ctx->nimages - 1] = pipi_wave(tmp, dw, dh, d, a); + ctx->images[ctx->nimages - 1] = pipi_sine(tmp, dw, dh, d, a); pipi_free(tmp); } else diff --git a/pipi/filter/wave.c b/pipi/filter/wave.c index 416fc45..9851f4c 100644 --- a/pipi/filter/wave.c +++ b/pipi/filter/wave.c @@ -13,7 +13,7 @@ */ /* - * wave.c: wave and warping effects + * wave.c: wave and other warping effects */ #include "config.h" @@ -28,7 +28,7 @@ #define BORDER 64 -pipi_image_t *pipi_wave(pipi_image_t *src, double dw, double dh, +pipi_image_t *pipi_sine(pipi_image_t *src, double dw, double dh, double d, double a) { pipi_image_t *dst; diff --git a/pipi/pipi.h b/pipi/pipi.h index a9dacf7..f2e9f8b 100644 --- a/pipi/pipi.h +++ b/pipi/pipi.h @@ -199,7 +199,7 @@ __extern pipi_image_t *pipi_median(pipi_image_t *, int); __extern pipi_image_t *pipi_median_ext(pipi_image_t *, int, int); __extern pipi_image_t *pipi_dilate(pipi_image_t *); __extern pipi_image_t *pipi_erode(pipi_image_t *); -__extern pipi_image_t *pipi_wave(pipi_image_t *, double, double, +__extern pipi_image_t *pipi_sine(pipi_image_t *, double, double, double, double); __extern pipi_image_t *pipi_order(pipi_image_t *);