[gegl] sampler-lohalo: wrong count in the mipmap aggregation
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] sampler-lohalo: wrong count in the mipmap aggregation
- Date: Thu, 27 Dec 2012 03:26:55 +0000 (UTC)
commit 4abe744ef44d9d8bceaaa283b172021cbe00ca75
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Wed Dec 26 22:23:22 2012 -0500
sampler-lohalo: wrong count in the mipmap aggregation
gegl/buffer/gegl-sampler-lohalo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index c37d5e3..162aa83 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -1413,12 +1413,12 @@ mipmap_ewa_update (const gint level,
const gint skip = j * channels + i * row_skip;
/*
- * The factor of "2^(level+1)" = "2 << level" is because level
+ * The factor of "2^(2*level)" = "2 << (2*level)" is because level
* mipmap values are averages of that many level 0 pixel values, and
* the "1 << level" factor in the index is because the absolute
* positions are correspondingly "stretched".
*/
- const gfloat weight = (gfloat) ( 2 << level ) *
+ const gfloat weight = (gfloat) ( 2 << (2*level) ) *
teepee (c_major_x,
c_major_y,
c_minor_x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]