[gegl] warp: compute the stamp curve without the strength factor
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] warp: compute the stamp curve without the strength factor
- Date: Wed, 21 Sep 2011 18:08:44 +0000 (UTC)
commit fe8b7933eafb1b3cbfdfed3d2c4e3cd2f0fcea29
Author: Michael Murà <batolettre gmail com>
Date: Tue Aug 2 21:42:32 2011 +0200
warp: compute the stamp curve without the strength factor
operations/workshop/warp.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/operations/workshop/warp.c b/operations/workshop/warp.c
index 1537f76..a119238 100644
--- a/operations/workshop/warp.c
+++ b/operations/workshop/warp.c
@@ -154,9 +154,9 @@ calc_lut (GeglChantO *o)
}
static gdouble
-get_influence (GeglChantO *o,
- gdouble x,
- gdouble y)
+get_stamp_force (GeglChantO *o,
+ gdouble x,
+ gdouble y)
{
WarpPrivate *priv = (WarpPrivate*) o->chant_data;
gfloat radius;
@@ -169,7 +169,7 @@ get_influence (GeglChantO *o,
radius = sqrt(x*x+y*y);
if (radius < 0.5 * o->size + 1)
- return o->strength * priv->lookup[(gint) RINT (radius)];
+ return priv->lookup[(gint) RINT (radius)];
else
return 0.0;
}
@@ -244,9 +244,9 @@ stamp (GeglChantO *o,
while (n_pixels--)
{
- influence = get_influence (o,
- x_iter - x,
- y_iter - y);
+ influence = o->strength * get_stamp_force (o,
+ x_iter - x,
+ y_iter - y);
switch (o->behavior)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]