[gegl/soc-2012-ops: 38/58] Wind Operation: Deal properly with chunks.
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-ops: 38/58] Wind Operation: Deal properly with chunks.
- Date: Wed, 29 Aug 2012 11:07:42 +0000 (UTC)
commit 41ff8f81ddad59db95da397ed741e98594662ed6
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]