summaryrefslogtreecommitdiff
path: root/src/static_libs/draw
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-03 16:19:27 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-12-03 18:42:50 +0900
commitdc621e23161d80f7f1a5b16b5dc4f5a666af53f0 (patch)
tree10ae12a1c82bff3437df7ea796b14c7eb908da44 /src/static_libs/draw
parentb5500a864434f53240cb774c92731341b21ff3ad (diff)
Ector: Kill compilation warnings
Remove unimplemented function (no test case yet). Convert #warning into comments.
Diffstat (limited to 'src/static_libs/draw')
-rw-r--r--src/static_libs/draw/draw.h8
-rw-r--r--src/static_libs/draw/draw_main.c7
-rw-r--r--src/static_libs/draw/draw_main_sse2.c4
3 files changed, 12 insertions, 7 deletions
diff --git a/src/static_libs/draw/draw.h b/src/static_libs/draw/draw.h
index c2f2370596..ae00cc26fd 100644
--- a/src/static_libs/draw/draw.h
+++ b/src/static_libs/draw/draw.h
@@ -13,8 +13,8 @@ typedef void (*Alpha_Gfx_Func) (uint8_t *src, uint8_t *dst, int len);
13 13
14int efl_draw_init(void); 14int efl_draw_init(void);
15 15
16RGBA_Comp_Func_Solid efl_draw_func_solid_span_get(Efl_Gfx_Render_Op op, uint color);
17RGBA_Comp_Func efl_draw_func_span_get(Efl_Gfx_Render_Op op, uint color, Eina_Bool src_alpha); 16RGBA_Comp_Func efl_draw_func_span_get(Efl_Gfx_Render_Op op, uint color, Eina_Bool src_alpha);
17RGBA_Comp_Func_Solid efl_draw_func_solid_span_get(Efl_Gfx_Render_Op op, uint color);
18Alpha_Gfx_Func efl_draw_alpha_func_get(Efl_Gfx_Render_Op op, Eina_Bool has_mask); 18Alpha_Gfx_Func efl_draw_alpha_func_get(Efl_Gfx_Render_Op op, Eina_Bool has_mask);
19 19
20 20
@@ -57,8 +57,12 @@ Alpha_Gfx_Func efl_draw_alpha_func_get(Efl_Gfx_Render_Op op, Eina_Bool has_mask)
57 ((((((x) & 0xff00) * ((y) & 0xff00)) + 0xff0000) >> 16) & 0xff00) + \ 57 ((((((x) & 0xff00) * ((y) & 0xff00)) + 0xff0000) >> 16) & 0xff00) + \
58 (((((x) & 0xff) * ((y) & 0xff)) + 0xff) >> 8) ) 58 (((((x) & 0xff) * ((y) & 0xff)) + 0xff) >> 8) )
59 59
60#define DRAW_MUL_256(a, c) \
61 ( (((((c) >> 8) & 0x00ff00ff) * (a)) & 0xff00ff00) + \
62 (((((c) & 0x00ff00ff) * (a)) >> 8) & 0x00ff00ff) )
63
60static inline uint 64static inline uint
61INTERPOLATE_PIXEL_256(uint x, uint a, uint y, uint b) 65draw_interpolate_256(uint x, uint a, uint y, uint b)
62{ 66{
63 uint t = (x & 0xff00ff) * a + (y & 0xff00ff) * b; 67 uint t = (x & 0xff00ff) * a + (y & 0xff00ff) * b;
64 t >>= 8; 68 t >>= 8;
diff --git a/src/static_libs/draw/draw_main.c b/src/static_libs/draw/draw_main.c
index 5d67602e07..8db3d20885 100644
--- a/src/static_libs/draw/draw_main.c
+++ b/src/static_libs/draw/draw_main.c
@@ -106,7 +106,7 @@ _comp_func_source(uint *dest, const uint *src, int length, uint color, uint cons
106 { 106 {
107 ialpha = 255 - const_alpha; 107 ialpha = 255 - const_alpha;
108 for (i = 0; i < length; ++i) 108 for (i = 0; i < length; ++i)
109 dest[i] = INTERPOLATE_PIXEL_256(src[i], const_alpha, dest[i], ialpha); 109 dest[i] = draw_interpolate_256(src[i], const_alpha, dest[i], ialpha);
110 } 110 }
111 } 111 }
112 else 112 else
@@ -122,7 +122,7 @@ _comp_func_source(uint *dest, const uint *src, int length, uint color, uint cons
122 for (i = 0; i < length; ++i) 122 for (i = 0; i < length; ++i)
123 { 123 {
124 src_color = DRAW_MUL4_SYM(src[i], color); 124 src_color = DRAW_MUL4_SYM(src[i], color);
125 dest[i] = INTERPOLATE_PIXEL_256(src_color, const_alpha, dest[i], ialpha); 125 dest[i] = draw_interpolate_256(src_color, const_alpha, dest[i], ialpha);
126 } 126 }
127 } 127 }
128 } 128 }
@@ -149,7 +149,8 @@ efl_draw_func_solid_span_get(Efl_Gfx_Render_Op op, uint color)
149 return func_for_mode_solid[op]; 149 return func_for_mode_solid[op];
150} 150}
151 151
152RGBA_Comp_Func efl_draw_func_span_get(Efl_Gfx_Render_Op op, uint color, Eina_Bool src_alpha) 152RGBA_Comp_Func
153efl_draw_func_span_get(Efl_Gfx_Render_Op op, uint color, Eina_Bool src_alpha)
153{ 154{
154 if (((color & 0xff000000) == 0xff000000) && !src_alpha) 155 if (((color & 0xff000000) == 0xff000000) && !src_alpha)
155 { 156 {
diff --git a/src/static_libs/draw/draw_main_sse2.c b/src/static_libs/draw/draw_main_sse2.c
index 1d8b1cb833..c07234a4f8 100644
--- a/src/static_libs/draw/draw_main_sse2.c
+++ b/src/static_libs/draw/draw_main_sse2.c
@@ -220,7 +220,7 @@ comp_func_source_sse2(uint *dest, const uint *src, int length, uint color, uint
220 220
221 LOOP_ALIGNED_U1_A4(dest, length, 221 LOOP_ALIGNED_U1_A4(dest, length,
222 { /* UOP */ 222 { /* UOP */
223 *dest = INTERPOLATE_PIXEL_256(*src, const_alpha, *dest, ialpha); 223 *dest = draw_interpolate_256(*src, const_alpha, *dest, ialpha);
224 dest++; src++; length--; 224 dest++; src++; length--;
225 }, 225 },
226 { /* A4OP */ 226 { /* A4OP */
@@ -257,7 +257,7 @@ comp_func_source_sse2(uint *dest, const uint *src, int length, uint color, uint
257 LOOP_ALIGNED_U1_A4(dest, length, 257 LOOP_ALIGNED_U1_A4(dest, length,
258 { /* UOP */ 258 { /* UOP */
259 src_color = DRAW_MUL4_SYM(*src, color); 259 src_color = DRAW_MUL4_SYM(*src, color);
260 *dest = INTERPOLATE_PIXEL_256(src_color, const_alpha, *dest, ialpha); 260 *dest = draw_interpolate_256(src_color, const_alpha, *dest, ialpha);
261 dest++; src++; length--; 261 dest++; src++; length--;
262 }, 262 },
263 { /* A4OP */ 263 { /* A4OP */