[gegl] algorithm/bilinear: fix copy pasta problem
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] algorithm/bilinear: fix copy pasta problem
- Date: Thu, 15 Oct 2015 15:53:27 +0000 (UTC)
commit 0b845d3fb8a50ae3ea71f57b68a19086e95cbffb
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Oct 15 17:52:36 2015 +0200
algorithm/bilinear: fix copy pasta problem
gegl/gegl-algorithms-bilinear.inc | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gegl/gegl-algorithms-bilinear.inc b/gegl/gegl-algorithms-bilinear.inc
index 6daccdc..9635135 100644
--- a/gegl/gegl-algorithms-bilinear.inc
+++ b/gegl/gegl-algorithms-bilinear.inc
@@ -39,7 +39,7 @@ BILINEAR_FUNCNAME (guchar *dest_buf,
src[0] = src[1] = src[2] = src[3] = (const BILINEAR_TYPE*)src_base + jj[x];
src[1] += 4;
src[2] += s_rowstride;
- src[5] += s_rowstride + 4;
+ src[3] += s_rowstride + 4;
if (src[0][3] == 0 && /* XXX: it would be even better to not call this at all for the abyss...
*/
src[1][3] == 0 &&
@@ -72,7 +72,7 @@ BILINEAR_FUNCNAME (guchar *dest_buf,
src[0] = src[1] = src[2] = src[3] = (const BILINEAR_TYPE*)src_base + jj[x];
src[1] += 3;
src[2] += s_rowstride;
- src[5] += s_rowstride + 3;
+ src[3] += s_rowstride + 3;
dst[0] = BILINEAR_ROUND(
(src[0][0] * (1.0-dx[x]) + src[1][0] * (dx[x])) * (rdy) +
(src[2][0] * (1.0-dx[x]) + src[3][0] * (dx[x])) * (dy));
@@ -91,7 +91,7 @@ BILINEAR_FUNCNAME (guchar *dest_buf,
src[0] = src[1] = src[2] = src[3] = (const BILINEAR_TYPE*)src_base + jj[x];
src[1] += 2;
src[2] += s_rowstride;
- src[5] += s_rowstride + 2;
+ src[3] += s_rowstride + 2;
dst[0] = BILINEAR_ROUND(
(src[0][0] * (1.0-dx[x]) + src[1][0] * (dx[x])) * (rdy) +
(src[2][0] * (1.0-dx[x]) + src[3][0] * (dx[x])) * (dy));
@@ -107,7 +107,7 @@ BILINEAR_FUNCNAME (guchar *dest_buf,
src[0] = src[1] = src[2] = src[3] = (const BILINEAR_TYPE*)src_base + jj[x];
src[1] += 1;
src[2] += s_rowstride;
- src[5] += s_rowstride + 1;
+ src[3] += s_rowstride + 1;
dst[0] = BILINEAR_ROUND(
(src[0][0] * (1.0-dx[x]) + src[1][0] * (dx[x])) * (rdy) +
(src[2][0] * (1.0-dx[x]) + src[3][0] * (dx[x])) * (dy));
@@ -120,7 +120,7 @@ BILINEAR_FUNCNAME (guchar *dest_buf,
src[0] = src[1] = src[2] = src[3] = (const BILINEAR_TYPE*)src_base + jj[x];
src[1] += components;
src[2] += s_rowstride;
- src[5] += s_rowstride + components;
+ src[3] += s_rowstride + components;
{
for (gint i = 0; i < components; ++i)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]