[gegl: 36/55] Wind Operation: Deal properly with chunks.
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl: 36/55] Wind Operation: Deal properly with chunks.
- Date: Wed, 29 Aug 2012 11:21:04 +0000 (UTC)
commit 9c6e820cedb0edb1b66b31055c874a73ca53a4fa
Author: Hans Lo <hansshulo gmail com>
Date: Mon Aug 20 08:33:21 2012 -0400
Wind Operation: Deal properly with chunks.
operations/common/wind.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/wind.c b/operations/common/wind.c
index 0a6d49e..e2d24ce 100644
--- a/operations/common/wind.c
+++ b/operations/common/wind.c
@@ -242,9 +242,22 @@ process (GeglOperation *operation,
while (n_pixels--)
{
gint i;
- pair key = {x, y};
+ pair key = {x + result->x, y + result->y};
gint *bleed = g_hash_table_lookup (bleed_table, &key);
+ if (x == 0) {
+ for (i = 0; i < o->strength; i++)
+ {
+ pair key = {result->x - i, y + result->y};
+ gint *bleed = g_hash_table_lookup (bleed_table, &key);
+ if (bleed) {
+ bleed_max = *bleed;
+ bleed_index = *bleed - i;
+ break;
+ }
+ }
+ }
+
for (i = 0; i < 4; i++)
dst_pix[i] = current_pix[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]