summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-12 11:18:38 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-04-12 11:24:29 +0100
commiteaf78210e8547d8f32063aa4e361888080d7886b (patch)
tree1a3f7ad7a1a4b02b990f41564cb3db4a8b276bbf
parentf43c19ac3288f88b716be66ba8ea9106af8ec736 (diff)
evas common - convert - rotate tiled - fix const ptr warnings
-rw-r--r--src/lib/evas/common/evas_convert_rgb_32.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/evas/common/evas_convert_rgb_32.c b/src/lib/evas/common/evas_convert_rgb_32.c
index 11671466b2..c3ac3dfe60 100644
--- a/src/lib/evas/common/evas_convert_rgb_32.c
+++ b/src/lib/evas/common/evas_convert_rgb_32.c
@@ -56,10 +56,10 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
56 for (y = 0; y < h; y++) { \ 56 for (y = 0; y < h; y++) { \
57 const pix_type *s = &(src[h - y - 1]); \ 57 const pix_type *s = &(src[h - y - 1]); \
58 pix_type *d = &(dst[dst_stride * y]); \ 58 pix_type *d = &(dst[dst_stride * y]); \
59 pix_type *ptr1 = s; \ 59 const pix_type *ptr1 = s; \
60 pix_type *ptr2 = ptr1 + src_stride; \ 60 const pix_type *ptr2 = ptr1 + src_stride; \
61 pix_type *ptr3 = ptr2 + src_stride; \ 61 const pix_type *ptr3 = ptr2 + src_stride; \
62 pix_type *ptr4 = ptr3 + src_stride; \ 62 const pix_type *ptr4 = ptr3 + src_stride; \
63 for(x = 0; x < w; x += 4) { \ 63 for(x = 0; x < w; x += 4) { \
64 pix_type s_array[4] = { *ptr1, *ptr2, *ptr3, *ptr4 }; \ 64 pix_type s_array[4] = { *ptr1, *ptr2, *ptr3, *ptr4 }; \
65 vst1q_s32(d, vld1q_s32(s_array)); \ 65 vst1q_s32(d, vld1q_s32(s_array)); \
@@ -90,10 +90,10 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
90 for (y = 0; y < h; y++) { \ 90 for (y = 0; y < h; y++) { \
91 const pix_type *s = &(src[(src_stride * (w - 1)) + y]); \ 91 const pix_type *s = &(src[(src_stride * (w - 1)) + y]); \
92 pix_type *d = &(dst[dst_stride * y]); \ 92 pix_type *d = &(dst[dst_stride * y]); \
93 pix_type *ptr1 = s; \ 93 const pix_type *ptr1 = s; \
94 pix_type *ptr2 = ptr1 + src_stride; \ 94 const pix_type *ptr2 = ptr1 + src_stride; \
95 pix_type *ptr3 = ptr2 + src_stride; \ 95 const pix_type *ptr3 = ptr2 + src_stride; \
96 pix_type *ptr4 = ptr3 + src_stride; \ 96 const pix_type *ptr4 = ptr3 + src_stride; \
97 for(x = 0; x < w; x+=4) { \ 97 for(x = 0; x < w; x+=4) { \
98 pix_type s_array[4] = { *ptr1, *ptr2, *ptr3, *ptr4 }; \ 98 pix_type s_array[4] = { *ptr1, *ptr2, *ptr3, *ptr4 }; \
99 vst1q_s32(d, vld1q_s32(s_array)); \ 99 vst1q_s32(d, vld1q_s32(s_array)); \