[gegl] sampler-lohalo: arithmetic simplification
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] sampler-lohalo: arithmetic simplification
- Date: Thu, 27 Dec 2012 03:29:18 +0000 (UTC)
commit 4dce986efea865d1b17ba35cc9dffb781ca7ca6a
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Wed Dec 26 22:29:12 2012 -0500
sampler-lohalo: arithmetic simplification
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 162aa83..acf17ae 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^(2*level)" = "2 << (2*level)" is because level
+ * The factor of "2^(2*level)" = "4 << 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 << (2*level) ) *
+ const gfloat weight = (gfloat) ( 4 << 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]