[gegl] jp2-load: Write data into buffers correctly
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] jp2-load: Write data into buffers correctly
- Date: Sat, 10 Sep 2011 09:34:20 +0000 (UTC)
commit c7536c87006ee97cc9fbc3dc37543264cc970a53
Author: Mukund Sivaraman <muks banu com>
Date: Sat Sep 10 15:03:54 2011 +0530
jp2-load: Write data into buffers correctly
operations/external/jp2-load.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/operations/external/jp2-load.c b/operations/external/jp2-load.c
index 1e444be..27a967a 100644
--- a/operations/external/jp2-load.c
+++ b/operations/external/jp2-load.c
@@ -267,18 +267,18 @@ process (GeglOperation *operation,
case 16:
for (col = 0; col < width; col++)
{
- data_s[col] = (gushort) jrow[0][col];
- data_s[col + 1] = (gushort) jrow[1][col];
- data_s[col + 2] = (gushort) jrow[2][col];
+ data_s[col * 3] = (gushort) jrow[0][col];
+ data_s[col * 3 + 1] = (gushort) jrow[1][col];
+ data_s[col * 3 + 2] = (gushort) jrow[2][col];
}
break;
case 8:
for (col = 0; col < width; col++)
{
- data_b[col] = (guchar) jrow[0][col];
- data_b[col + 1] = (guchar) jrow[1][col];
- data_b[col + 2] = (guchar) jrow[2][col];
+ data_b[col * 3] = (guchar) jrow[0][col];
+ data_b[col * 3 + 1] = (guchar) jrow[1][col];
+ data_b[col * 3 + 2] = (guchar) jrow[2][col];
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]