[gegl] transform-core: unneeded intermetiate pointer
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] transform-core: unneeded intermetiate pointer
- Date: Tue, 25 Dec 2012 02:55:51 +0000 (UTC)
commit 3c8a879a30e469eaf5afa35956958c60e7c8421a
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Mon Dec 24 21:55:44 2012 -0500
transform-core: unneeded intermetiate pointer
operations/transform/transform-core.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 3f67ef8..99be342 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -934,9 +934,8 @@ transform_affine (GeglBuffer *dest,
while (gegl_buffer_iterator_next (i))
{
GeglRectangle *roi = &i->roi[0];
- gfloat * restrict dest_buf = (gfloat *)i->data[0];
gfloat * restrict dest_ptr =
- dest_buf +
+ (gfloat *)i->data[0] +
(gint) 4 * ( flip_x * (roi->width - (gint) 1) +
flip_y * (roi->height - (gint) 1) * roi->width );
@@ -1012,7 +1011,6 @@ transform_generic (GeglBuffer *dest,
while (gegl_buffer_iterator_next (i))
{
GeglRectangle *roi = &i->roi[0];
- gfloat * restrict dest_buf = (gfloat *)i->data[0];
/*
* This code uses a variant of the (novel?) method of ensuring
* that scanlines stay, as much as possible, within an input
@@ -1091,7 +1089,7 @@ transform_generic (GeglBuffer *dest,
gdouble w_start = bflip_x ? w_float_x : w_start_x;
gfloat * restrict dest_ptr =
- dest_buf +
+ (gfloat *)i->data[0] +
(gint) 4 * ( bflip_x * (roi->width - (gint) 1) +
bflip_y * (roi->height - (gint) 1) * roi->width );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]