Bläddra i källkod

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
master
sam 15 år sedan
förälder
incheckning
78c5fad50e
3 ändrade filer med 6 tillägg och 6 borttagningar
  1. +3
    -3
      pipi/context.c
  2. +2
    -2
      pipi/filter/wave.c
  3. +1
    -1
      pipi/pipi.h

+ 3
- 3
pipi/context.c Visa fil

@@ -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


+ 2
- 2
pipi/filter/wave.c Visa fil

@@ -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;


+ 1
- 1
pipi/pipi.h Visa fil

@@ -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 *);


Laddar…
Avbryt
Spara