aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-12 12:56:40 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-12 12:56:40 +0100
commitae77e5836634d59ab576878fb3e2577e4e5c3e78 (patch)
treec2114682965c3e417ab97935ea964b723f367e60
parentevas common - tiled rotate - fix signedness of neon intrinsics - warning (diff)
downloadefl-ae77e5836634d59ab576878fb3e2577e4e5c3e78.tar.gz
evas - fix crash/junk pixel content but with tiled rotate at 270 + neon
@fix
-rw-r--r--src/lib/evas/common/evas_convert_rgb_32.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/evas/common/evas_convert_rgb_32.c b/src/lib/evas/common/evas_convert_rgb_32.c
index 28acdfb364..68d3a95b22 100644
--- a/src/lib/evas/common/evas_convert_rgb_32.c
+++ b/src/lib/evas/common/evas_convert_rgb_32.c
@@ -91,17 +91,17 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
const pix_type *s = &(src[(src_stride * (w - 1)) + y]); \
pix_type *d = &(dst[dst_stride * y]); \
const pix_type *ptr1 = s; \
- const pix_type *ptr2 = ptr1 + src_stride; \
- const pix_type *ptr3 = ptr2 + src_stride; \
- const pix_type *ptr4 = ptr3 + src_stride; \
- for(x = 0; x < w; x+=4) { \
+ const pix_type *ptr2 = ptr1 - src_stride; \
+ const pix_type *ptr3 = ptr2 - src_stride; \
+ const pix_type *ptr4 = ptr3 - src_stride; \
+ for(x = 0; x < w; x += 4) { \
pix_type s_array[4] = { *ptr1, *ptr2, *ptr3, *ptr4 }; \
vst1q_u32(d, vld1q_u32(s_array)); \
d += 4; \
- ptr1 += klght; \
- ptr2 += klght; \
- ptr3 += klght; \
- ptr4 += klght; \
+ ptr1 -= klght; \
+ ptr2 -= klght; \
+ ptr3 -= klght; \
+ ptr4 -= klght; \
} \
} \
} \
@@ -111,7 +111,7 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
pix_type *d = &(dst[dst_stride * y]); \
for (x = 0; x < w; x++) { \
*d++ = *s; \
- s += src_stride; \
+ s -= src_stride; \
} \
} \
} \