evas - fix crash/junk pixel content but with tiled rotate at 270 + neon
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 12 Apr 2019 11:56:40 +0000 (12:56 +0100)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Apr 2019 01:20:03 +0000 (10:20 +0900)
@fix

src/lib/evas/common/evas_convert_rgb_32.c

index 28acdfb..68d3a95 100644 (file)
@@ -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; \
            } \
         } \
       } \