[gegl] gegl-sampler-access.c: 2^level = 1<<level
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl-sampler-access.c: 2^level = 1<<level
- Date: Tue, 28 Jun 2011 20:34:26 +0000 (UTC)
commit 4dd01cd214d5daaa9252346d44ed83201bcc4414
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date: Tue Jun 28 16:34:20 2011 -0400
gegl-sampler-access.c: 2^level = 1<<level
gegl/buffer/gegl-buffer-access.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 81c9483..d18b959 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -343,7 +343,7 @@ gegl_buffer_iterate (GeglBuffer *buffer,
gint abyss_x_total = buffer_abyss_x + buffer->abyss.width;
gint abyss_y_total = buffer_abyss_y + buffer->abyss.height;
gint i;
- gint factor = 1;
+ gint factor = 1<<level;
/* roi specified, override buffers extent */
if (roi)
@@ -354,11 +354,6 @@ gegl_buffer_iterate (GeglBuffer *buffer,
buffer_y = roi->y + buffer_shift_y;
}
- for (i = 0; i < level; i++)
- {
- factor *= 2;
- }
-
buffer_abyss_x /= factor;
buffer_abyss_y /= factor;
abyss_x_total /= factor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]