aboutsummaryrefslogtreecommitdiffstats
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
parentevas map - mark npoints param as unused because it is remove warning (diff)
downloadefl-eaf78210e8547d8f32063aa4e361888080d7886b.tar.gz
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
for (y = 0; y < h; y++) { \
const pix_type *s = &(src[h - y - 1]); \
pix_type *d = &(dst[dst_stride * y]); \
- pix_type *ptr1 = s; \
- pix_type *ptr2 = ptr1 + src_stride; \
- pix_type *ptr3 = ptr2 + src_stride; \
- pix_type *ptr4 = ptr3 + src_stride; \
+ 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) { \
pix_type s_array[4] = { *ptr1, *ptr2, *ptr3, *ptr4 }; \
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
for (y = 0; y < h; y++) { \
const pix_type *s = &(src[(src_stride * (w - 1)) + y]); \
pix_type *d = &(dst[dst_stride * y]); \
- pix_type *ptr1 = s; \
- pix_type *ptr2 = ptr1 + src_stride; \
- pix_type *ptr3 = ptr2 + src_stride; \
- pix_type *ptr4 = ptr3 + src_stride; \
+ 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) { \
pix_type s_array[4] = { *ptr1, *ptr2, *ptr3, *ptr4 }; \
vst1q_s32(d, vld1q_s32(s_array)); \