summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_convert_rgb_32.c
diff options
context:
space:
mode:
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>2014-09-03 18:23:59 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-09-03 18:24:05 +0200
commit8f40c291cabb790354ac87f053845429096011d3 (patch)
tree5582e5f929945cf475080ca867dc1f098b9caed1 /src/lib/evas/common/evas_convert_rgb_32.c
parent68384fc7ef9e858fd6cf1fcc943786441c5b84f8 (diff)
evas: fix build on armv7l.
Summary: Without compilation will fail on : error: unknown type name 'pix_type' error: expected identifier or '(' before 'else' Applies to efl-1.11.0 and later Bug: https://phab.enlightenment.org/T1620 Bug-Tizen: PTREL-737/part Change-Id: Idbcb442803ed6559698b2a371d1d6c584ec053e0 Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org> Test Plan: gbs build -P "profile.tizen_common_armv7l" --arch armv7l --include-all @fix Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1399 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_convert_rgb_32.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/evas/common/evas_convert_rgb_32.c b/src/lib/evas/common/evas_convert_rgb_32.c
index aae9d37e12..0cc33159c8 100644
--- a/src/lib/evas/common/evas_convert_rgb_32.c
+++ b/src/lib/evas/common/evas_convert_rgb_32.c
@@ -45,7 +45,7 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
45 45
46#ifdef TILE_ROTATE 46#ifdef TILE_ROTATE
47#ifdef BUILD_NEON 47#ifdef BUILD_NEON
48#define ROT90_QUAD_COPY_LOOP \ 48#define ROT90_QUAD_COPY_LOOP(pix_type) \
49 if (evas_common_cpu_has_feature(CPU_FEATURE_NEON)) \ 49 if (evas_common_cpu_has_feature(CPU_FEATURE_NEON)) \
50 { \ 50 { \
51 if((w%4) == 0) \ 51 if((w%4) == 0) \
@@ -86,8 +86,9 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
86 } \ 86 } \
87 } \ 87 } \
88 else 88 else
89#define ROT270_QUAD_COPY_LOOP \ 89#define ROT270_QUAD_COPY_LOOP(pix_type) \
90 if (evas_common_cpu_has_feature(CPU_FEATURE_NEON)) \ 90 if (evas_common_cpu_has_feature(CPU_FEATURE_NEON)) \
91 { \
91 if((w%4) == 0) \ 92 if((w%4) == 0) \
92 { \ 93 { \
93 int klght = 4 * src_stride; \ 94 int klght = 4 * src_stride; \
@@ -127,8 +128,8 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
127 } \ 128 } \
128 else 129 else
129#else 130#else
130#define ROT90_QUAD_COPY_LOOP 131#define ROT90_QUAD_COPY_LOOP(pix_type)
131#define ROT270_QUAD_COPY_LOOP 132#define ROT270_QUAD_COPY_LOOP(pix_type)
132#endif 133#endif
133#define FAST_SIMPLE_ROTATE(suffix, pix_type) \ 134#define FAST_SIMPLE_ROTATE(suffix, pix_type) \
134 static void \ 135 static void \
@@ -140,7 +141,7 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
140 int h) \ 141 int h) \
141 { \ 142 { \
142 int x, y; \ 143 int x, y; \
143 ROT90_QUAD_COPY_LOOP \ 144 ROT90_QUAD_COPY_LOOP(pix_type) \
144 { \ 145 { \
145 for (y = 0; y < h; y++) \ 146 for (y = 0; y < h; y++) \
146 { \ 147 { \
@@ -163,7 +164,7 @@ evas_common_convert_rgba_to_32bpp_rgb_8888_rot_180 (DATA32 *src, DATA8 *dst, int
163 int h) \ 164 int h) \
164 { \ 165 { \
165 int x, y; \ 166 int x, y; \
166 ROT270_QUAD_COPY_LOOP \ 167 ROT270_QUAD_COPY_LOOP(pix_type) \
167 { \ 168 { \
168 for(y = 0; y < h; y++) \ 169 for(y = 0; y < h; y++) \
169 { \ 170 { \