[gegl] fattal02: correct a minor oversight



commit 3e9936ecb791077c6a6530f73f58a2de2b92e5d2
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sat Sep 3 17:21:23 2011 +0200

    fattal02: correct a minor oversight
    
    and update its reference test image.
    
    In fattal02_gaussian_blur (not really gaussian, but anyway..)
    uninitialised or already blurred values were used to compute
    the first and last row.

 operations/common/fattal02.c              |    8 ++++----
 tests/compositions/reference/fattal02.png |  Bin 200169 -> 200108 bytes
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/fattal02.c b/operations/common/fattal02.c
index 97489ef..bc9bbde 100644
--- a/operations/common/fattal02.c
+++ b/operations/common/fattal02.c
@@ -823,10 +823,10 @@ fattal02_gaussian_blur (const gfloat        *input,
           output[x + y * width] = p / 4.0f;
         }
 
-      output[x +           0  * width] = (3 * output[x +           0  * width] +
-                                              output[x +           1  * width]) / 4.0f;
-      output[x + (height - 1) * width] = (3 * output[x + (height - 1) * width] +
-                                              output[x + (height - 2) * width]) / 4.0f;
+      output[x +           0  * width] = (3 * temp[x +           0  * width] +
+                                              temp[x +           1  * width]) / 4.0f;
+      output[x + (height - 1) * width] = (3 * temp[x + (height - 1) * width] +
+                                              temp[x + (height - 2) * width]) / 4.0f;
     }
 
   g_free (temp);
diff --git a/tests/compositions/reference/fattal02.png b/tests/compositions/reference/fattal02.png
index 2dec16d..941a0d8 100644
Binary files a/tests/compositions/reference/fattal02.png and b/tests/compositions/reference/fattal02.png differ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]