summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common
diff options
context:
space:
mode:
authordoursse <doursse>2008-07-11 06:36:30 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2008-07-11 06:36:30 +0000
commit493eb069a39fbac67e93207a74f5833f5699d87e (patch)
tree21020b97caf87fcaf1da5e26da4c28124f0416e0 /legacy/evas/src/lib/engines/common
parent739be5c6b7b36c0930ecfe1ee68a49e1296646d7 (diff)
* remove trailing spaces in evas_pipe.c
* move scale function declarations to their own files SVN revision: 35063
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/Makefile.am5
-rw-r--r--legacy/evas/src/lib/engines/common/evas_gradient_main.c1
-rw-r--r--legacy/evas/src/lib/engines/common/evas_pipe.c78
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_main.c4
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_main.h16
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_sample.c4
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_smooth.c5
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_smooth.h23
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_span.c1
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_span.h18
10 files changed, 117 insertions, 38 deletions
diff --git a/legacy/evas/src/lib/engines/common/Makefile.am b/legacy/evas/src/lib/engines/common/Makefile.am
index 8d9b3e152f..3fb8906695 100644
--- a/legacy/evas/src/lib/engines/common/Makefile.am
+++ b/legacy/evas/src/lib/engines/common/Makefile.am
@@ -73,13 +73,16 @@ evas_convert_rgb_24.h \
73evas_convert_rgb_32.h \ 73evas_convert_rgb_32.h \
74evas_convert_rgb_8.h \ 74evas_convert_rgb_8.h \
75evas_convert_yuv.h \ 75evas_convert_yuv.h \
76evas_scale_main.h \
77evas_scale_smooth.h \
76evas_scale_smooth_scaler.c \ 78evas_scale_smooth_scaler.c \
77evas_scale_smooth_scaler_down.c \ 79evas_scale_smooth_scaler_down.c \
78evas_scale_smooth_scaler_downx.c \ 80evas_scale_smooth_scaler_downx.c \
79evas_scale_smooth_scaler_downx_downy.c \ 81evas_scale_smooth_scaler_downx_downy.c \
80evas_scale_smooth_scaler_downy.c \ 82evas_scale_smooth_scaler_downy.c \
81evas_scale_smooth_scaler_noscale.c \ 83evas_scale_smooth_scaler_noscale.c \
82evas_scale_smooth_scaler_up.c 84evas_scale_smooth_scaler_up.c \
85evas_scale_span.h
83 86
84libevas_engine_common_la_DEPENDENCIES = \ 87libevas_engine_common_la_DEPENDENCIES = \
85$(top_builddir)/config.h 88$(top_builddir)/config.h
diff --git a/legacy/evas/src/lib/engines/common/evas_gradient_main.c b/legacy/evas/src/lib/engines/common/evas_gradient_main.c
index 95407b3c08..78eff850be 100644
--- a/legacy/evas/src/lib/engines/common/evas_gradient_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_gradient_main.c
@@ -7,6 +7,7 @@
7#include "evas_common.h" 7#include "evas_common.h"
8#include "evas_convert_main.h" 8#include "evas_convert_main.h"
9#include "evas_convert_color.h" 9#include "evas_convert_color.h"
10#include "evas_scale_span.h"
10 11
11 12
12static void _get_word(char *in, char *key); 13static void _get_word(char *in, char *key);
diff --git a/legacy/evas/src/lib/engines/common/evas_pipe.c b/legacy/evas/src/lib/engines/common/evas_pipe.c
index 1327759a00..5ab156fe4c 100644
--- a/legacy/evas/src/lib/engines/common/evas_pipe.c
+++ b/legacy/evas/src/lib/engines/common/evas_pipe.c
@@ -1,3 +1,7 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
1#include "evas_common.h" 5#include "evas_common.h"
2 6
3static RGBA_Pipe *evas_common_pipe_add(RGBA_Pipe *pipe, RGBA_Pipe_Op **op); 7static RGBA_Pipe *evas_common_pipe_add(RGBA_Pipe *pipe, RGBA_Pipe_Op **op);
@@ -10,7 +14,7 @@ evas_common_pipe_add(RGBA_Pipe *pipe, RGBA_Pipe_Op **op)
10{ 14{
11 RGBA_Pipe *p; 15 RGBA_Pipe *p;
12 int first_pipe = 0; 16 int first_pipe = 0;
13 17
14 if (!pipe) 18 if (!pipe)
15 { 19 {
16 first_pipe = 1; 20 first_pipe = 1;
@@ -86,7 +90,7 @@ evas_common_pipe_thread(void *data)
86 for (p = info->im->pipe; p; p = (RGBA_Pipe *)((Evas_Object_List *)p)->next) 90 for (p = info->im->pipe; p; p = (RGBA_Pipe *)((Evas_Object_List *)p)->next)
87 { 91 {
88 int i; 92 int i;
89 93
90 for (i = 0; i < p->op_num; i++) 94 for (i = 0; i < p->op_num; i++)
91 { 95 {
92 if (p->op[i].op_func) 96 if (p->op[i].op_func)
@@ -114,13 +118,13 @@ evas_common_pipe_begin(RGBA_Image *im)
114{ 118{
115#ifdef BUILD_PTHREAD 119#ifdef BUILD_PTHREAD
116 int i, y, h; 120 int i, y, h;
117 121
118 if (!im->pipe) return; 122 if (!im->pipe) return;
119 if (thread_num == 1) return; 123 if (thread_num == 1) return;
120 if (thread_num == 0) 124 if (thread_num == 0)
121 { 125 {
122 int cpunum; 126 int cpunum;
123 127
124 cpunum = evas_common_cpu_count(); 128 cpunum = evas_common_cpu_count();
125 thread_num = cpunum; 129 thread_num = cpunum;
126 if (thread_num == 1) return; 130 if (thread_num == 1) return;
@@ -130,7 +134,7 @@ evas_common_pipe_begin(RGBA_Image *im)
130 { 134 {
131 pthread_attr_t attr; 135 pthread_attr_t attr;
132 cpu_set_t cpu; 136 cpu_set_t cpu;
133 137
134 pthread_attr_init(&attr); 138 pthread_attr_init(&attr);
135 CPU_ZERO(&cpu); 139 CPU_ZERO(&cpu);
136 CPU_SET(i % cpunum, &cpu); 140 CPU_SET(i % cpunum, &cpu);
@@ -139,7 +143,7 @@ evas_common_pipe_begin(RGBA_Image *im)
139 thinfo[i].info = NULL; 143 thinfo[i].info = NULL;
140 thinfo[i].barrier = thbarrier; 144 thinfo[i].barrier = thbarrier;
141 /* setup initial locks */ 145 /* setup initial locks */
142 pthread_create(&(thinfo[i].thread_id), &attr, 146 pthread_create(&(thinfo[i].thread_id), &attr,
143 evas_common_pipe_thread, &(thinfo[i])); 147 evas_common_pipe_thread, &(thinfo[i]));
144 pthread_attr_destroy(&attr); 148 pthread_attr_destroy(&attr);
145 } 149 }
@@ -150,7 +154,7 @@ evas_common_pipe_begin(RGBA_Image *im)
150 for (i = 0; i < thread_num; i++) 154 for (i = 0; i < thread_num; i++)
151 { 155 {
152 RGBA_Pipe_Thread_Info *info; 156 RGBA_Pipe_Thread_Info *info;
153 157
154// if (y >= im->cache_entry.h) break; 158// if (y >= im->cache_entry.h) break;
155 info = calloc(1, sizeof(RGBA_Pipe_Thread_Info)); 159 info = calloc(1, sizeof(RGBA_Pipe_Thread_Info));
156 info->im = im; 160 info->im = im;
@@ -159,7 +163,7 @@ evas_common_pipe_begin(RGBA_Image *im)
159 info->w = im->cache_entry.w; 163 info->w = im->cache_entry.w;
160 info->y = i; 164 info->y = i;
161 info->h = thread_num; 165 info->h = thread_num;
162#else 166#else
163 info->x = 0; 167 info->x = 0;
164 info->y = y; 168 info->y = y;
165 info->w = im->cache_entry.w; 169 info->w = im->cache_entry.w;
@@ -168,18 +172,18 @@ evas_common_pipe_begin(RGBA_Image *im)
168 else 172 else
169 info->h = h; 173 info->h = h;
170 y += info->h; 174 y += info->h;
171#endif 175#endif
172 thinfo[i].info = info; 176 thinfo[i].info = info;
173 } 177 }
174 /* tell worker threads to start */ 178 /* tell worker threads to start */
175 pthread_barrier_wait(&(thbarrier[0])); 179 pthread_barrier_wait(&(thbarrier[0]));
176#endif 180#endif
177} 181}
178 182
179EAPI void 183EAPI void
180evas_common_pipe_flush(RGBA_Image *im) 184evas_common_pipe_flush(RGBA_Image *im)
181{ 185{
182 186
183 RGBA_Pipe *p; 187 RGBA_Pipe *p;
184 int i; 188 int i;
185 189
@@ -210,13 +214,13 @@ evas_common_pipe_flush(RGBA_Image *im)
210EAPI void 214EAPI void
211evas_common_pipe_free(RGBA_Image *im) 215evas_common_pipe_free(RGBA_Image *im)
212{ 216{
213 217
214 RGBA_Pipe *p; 218 RGBA_Pipe *p;
215 int i; 219 int i;
216 220
217 if (!im->pipe) return; 221 if (!im->pipe) return;
218 /* FIXME: PTHREAD join all threads here (if not finished) */ 222 /* FIXME: PTHREAD join all threads here (if not finished) */
219 223
220 /* free pipe */ 224 /* free pipe */
221 while (im->pipe) 225 while (im->pipe)
222 { 226 {
@@ -241,29 +245,29 @@ evas_common_pipe_rectangle_draw_do(RGBA_Image *dst, RGBA_Pipe_Op *op, RGBA_Pipe_
241 if (info) 245 if (info)
242 { 246 {
243 RGBA_Draw_Context context; 247 RGBA_Draw_Context context;
244 248
245 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context)); 249 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context));
246#ifdef EVAS_SLI 250#ifdef EVAS_SLI
247 evas_common_draw_context_set_sli(&(context), info->y, info->h); 251 evas_common_draw_context_set_sli(&(context), info->y, info->h);
248#else 252#else
249 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h); 253 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h);
250#endif 254#endif
251 evas_common_rectangle_draw(dst, &(context), 255 evas_common_rectangle_draw(dst, &(context),
252 op->op.rect.x, op->op.rect.y, 256 op->op.rect.x, op->op.rect.y,
253 op->op.rect.w, op->op.rect.h); 257 op->op.rect.w, op->op.rect.h);
254 } 258 }
255 else 259 else
256 evas_common_rectangle_draw(dst, &(op->context), 260 evas_common_rectangle_draw(dst, &(op->context),
257 op->op.rect.x, op->op.rect.y, 261 op->op.rect.x, op->op.rect.y,
258 op->op.rect.w, op->op.rect.h); 262 op->op.rect.w, op->op.rect.h);
259} 263}
260 264
261EAPI void 265EAPI void
262evas_common_pipe_rectangle_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, 266evas_common_pipe_rectangle_draw(RGBA_Image *dst, RGBA_Draw_Context *dc,
263 int x, int y, int w, int h) 267 int x, int y, int w, int h)
264{ 268{
265 RGBA_Pipe_Op *op; 269 RGBA_Pipe_Op *op;
266 270
267 if ((w < 1) || (h < 1)) return; 271 if ((w < 1) || (h < 1)) return;
268 dst->pipe = evas_common_pipe_add(dst->pipe, &op); 272 dst->pipe = evas_common_pipe_add(dst->pipe, &op);
269 if (!dst->pipe) return; 273 if (!dst->pipe) return;
@@ -283,19 +287,19 @@ evas_common_pipe_line_draw_do(RGBA_Image *dst, RGBA_Pipe_Op *op, RGBA_Pipe_Threa
283 if (info) 287 if (info)
284 { 288 {
285 RGBA_Draw_Context context; 289 RGBA_Draw_Context context;
286 290
287 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context)); 291 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context));
288#ifdef EVAS_SLI 292#ifdef EVAS_SLI
289 evas_common_draw_context_set_sli(&(context), info->y, info->h); 293 evas_common_draw_context_set_sli(&(context), info->y, info->h);
290#else 294#else
291 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h); 295 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h);
292#endif 296#endif
293 evas_common_line_draw(dst, &(context), 297 evas_common_line_draw(dst, &(context),
294 op->op.line.x0, op->op.line.y0, 298 op->op.line.x0, op->op.line.y0,
295 op->op.line.x1, op->op.line.y1); 299 op->op.line.x1, op->op.line.y1);
296 } 300 }
297 else 301 else
298 evas_common_line_draw(dst, &(op->context), 302 evas_common_line_draw(dst, &(op->context),
299 op->op.line.x0, op->op.line.y0, 303 op->op.line.x0, op->op.line.y0,
300 op->op.line.x1, op->op.line.y1); 304 op->op.line.x1, op->op.line.y1);
301} 305}
@@ -305,7 +309,7 @@ evas_common_pipe_line_draw(RGBA_Image *dst, RGBA_Draw_Context *dc,
305 int x0, int y0, int x1, int y1) 309 int x0, int y0, int x1, int y1)
306{ 310{
307 RGBA_Pipe_Op *op; 311 RGBA_Pipe_Op *op;
308 312
309 dst->pipe = evas_common_pipe_add(dst->pipe, &op); 313 dst->pipe = evas_common_pipe_add(dst->pipe, &op);
310 if (!dst->pipe) return; 314 if (!dst->pipe) return;
311 op->op.line.x0 = x0; 315 op->op.line.x0 = x0;
@@ -322,7 +326,7 @@ static void
322evas_common_pipe_op_poly_free(RGBA_Pipe_Op *op) 326evas_common_pipe_op_poly_free(RGBA_Pipe_Op *op)
323{ 327{
324 RGBA_Polygon_Point *p; 328 RGBA_Polygon_Point *p;
325 329
326 while (op->op.poly.points) 330 while (op->op.poly.points)
327 { 331 {
328 p = op->op.poly.points; 332 p = op->op.poly.points;
@@ -338,13 +342,13 @@ evas_common_pipe_poly_draw_do(RGBA_Image *dst, RGBA_Pipe_Op *op, RGBA_Pipe_Threa
338 if (info) 342 if (info)
339 { 343 {
340 RGBA_Draw_Context context; 344 RGBA_Draw_Context context;
341 345
342 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context)); 346 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context));
343#ifdef EVAS_SLI 347#ifdef EVAS_SLI
344 evas_common_draw_context_set_sli(&(context), info->y, info->h); 348 evas_common_draw_context_set_sli(&(context), info->y, info->h);
345#else 349#else
346 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h); 350 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h);
347#endif 351#endif
348 evas_common_polygon_draw(dst, &(context), 352 evas_common_polygon_draw(dst, &(context),
349 op->op.poly.points); 353 op->op.poly.points);
350 } 354 }
@@ -394,13 +398,13 @@ evas_common_pipe_grad_draw_do(RGBA_Image *dst, RGBA_Pipe_Op *op, RGBA_Pipe_Threa
394 if (info) 398 if (info)
395 { 399 {
396 RGBA_Draw_Context context; 400 RGBA_Draw_Context context;
397 401
398 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context)); 402 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context));
399#ifdef EVAS_SLI 403#ifdef EVAS_SLI
400 evas_common_draw_context_set_sli(&(context), info->y, info->h); 404 evas_common_draw_context_set_sli(&(context), info->y, info->h);
401#else 405#else
402 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h); 406 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h);
403#endif 407#endif
404 evas_common_gradient_draw(dst, &(context), 408 evas_common_gradient_draw(dst, &(context),
405 op->op.grad.x, op->op.grad.y, 409 op->op.grad.x, op->op.grad.y,
406 op->op.grad.w, op->op.grad.h, 410 op->op.grad.w, op->op.grad.h,
@@ -448,13 +452,13 @@ evas_common_pipe_text_draw_do(RGBA_Image *dst, RGBA_Pipe_Op *op, RGBA_Pipe_Threa
448 if (info) 452 if (info)
449 { 453 {
450 RGBA_Draw_Context context; 454 RGBA_Draw_Context context;
451 455
452 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context)); 456 memcpy(&(context), &(op->context), sizeof(RGBA_Draw_Context));
453#ifdef EVAS_SLI 457#ifdef EVAS_SLI
454 evas_common_draw_context_set_sli(&(context), info->y, info->h); 458 evas_common_draw_context_set_sli(&(context), info->y, info->h);
455#else 459#else
456 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h); 460 evas_common_draw_context_clip_clip(&(context), info->x, info->y, info->w, info->h);
457#endif 461#endif
458 evas_common_font_draw(dst, &(context), 462 evas_common_font_draw(dst, &(context),
459 op->op.text.font, op->op.text.x, op->op.text.y, 463 op->op.text.font, op->op.text.x, op->op.text.y,
460 op->op.text.text); 464 op->op.text.text);
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_main.c b/legacy/evas/src/lib/engines/common/evas_scale_main.c
index 959336c0f7..8f0f535239 100644
--- a/legacy/evas/src/lib/engines/common/evas_scale_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_scale_main.c
@@ -1,3 +1,7 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
1#include "evas_common.h" 5#include "evas_common.h"
2 6
3EAPI void 7EAPI void
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_main.h b/legacy/evas/src/lib/engines/common/evas_scale_main.h
new file mode 100644
index 0000000000..5da6bdcff4
--- /dev/null
+++ b/legacy/evas/src/lib/engines/common/evas_scale_main.h
@@ -0,0 +1,16 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
5#ifndef _EVAS_SCALE_MAIN_H
6#define _EVAS_SCALE_MAIN_H
7
8
9EAPI void evas_common_scale_init (void);
10
11EAPI void evas_common_scale_rgba_in_to_out_clip_smooth (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
12
13EAPI void evas_common_scale_rgba_in_to_out_clip_sample (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
14
15
16#endif /* _EVAS_SCALE_MAIN_H */
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_sample.c b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
index 14ae103090..5e29b1121e 100644
--- a/legacy/evas/src/lib/engines/common/evas_scale_sample.c
+++ b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
@@ -1,3 +1,7 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
1#include "evas_common.h" 5#include "evas_common.h"
2 6
3void scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h); 7void scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_smooth.c b/legacy/evas/src/lib/engines/common/evas_scale_smooth.c
index 86c50cdf18..aa29c6d50e 100644
--- a/legacy/evas/src/lib/engines/common/evas_scale_smooth.c
+++ b/legacy/evas/src/lib/engines/common/evas_scale_smooth.c
@@ -1,4 +1,9 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
1#include "evas_common.h" 5#include "evas_common.h"
6#include "evas_scale_smooth.h"
2 7
3 8
4static DATA32 **scale_calc_y_points(DATA32 *src, int sw, int sh, int dh); 9static DATA32 **scale_calc_y_points(DATA32 *src, int sw, int sh, int dh);
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_smooth.h b/legacy/evas/src/lib/engines/common/evas_scale_smooth.h
new file mode 100644
index 0000000000..d4bfb464b9
--- /dev/null
+++ b/legacy/evas/src/lib/engines/common/evas_scale_smooth.h
@@ -0,0 +1,23 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
5#ifndef _EVAS_SCALE_SMOOTH_H
6#define _EVAS_SCALE_SMOOTH_H
7
8EAPI void evas_common_scale_rgba_mipmap_down_2x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
9EAPI void evas_common_scale_rgba_mipmap_down_2x1_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
10EAPI void evas_common_scale_rgba_mipmap_down_1x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
11EAPI void evas_common_scale_rgb_mipmap_down_2x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
12EAPI void evas_common_scale_rgb_mipmap_down_2x1_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
13EAPI void evas_common_scale_rgb_mipmap_down_1x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
14
15EAPI void evas_common_scale_rgba_mipmap_down_2x2_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
16EAPI void evas_common_scale_rgba_mipmap_down_2x1_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
17EAPI void evas_common_scale_rgba_mipmap_down_1x2_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
18
19EAPI void evas_common_scale_rgba_in_to_out_clip_smooth_mmx (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
20EAPI void evas_common_scale_rgba_in_to_out_clip_smooth_c (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
21
22
23#endif /* _EVAS_SCALE_SMOOTH_H */
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_span.c b/legacy/evas/src/lib/engines/common/evas_scale_span.c
index afc81a0c7e..872524047d 100644
--- a/legacy/evas/src/lib/engines/common/evas_scale_span.c
+++ b/legacy/evas/src/lib/engines/common/evas_scale_span.c
@@ -4,6 +4,7 @@
4 4
5#include "evas_common.h" 5#include "evas_common.h"
6#include "evas_convert_color.h" 6#include "evas_convert_color.h"
7#include "evas_scale_span.h"
7 8
8static void 9static void
9evas_common_scale_rgba_span_(DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir) 10evas_common_scale_rgba_span_(DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir)
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_span.h b/legacy/evas/src/lib/engines/common/evas_scale_span.h
new file mode 100644
index 0000000000..6c51619741
--- /dev/null
+++ b/legacy/evas/src/lib/engines/common/evas_scale_span.h
@@ -0,0 +1,18 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
5#ifndef _EVAS_SCALE_SPAN_H
6#define _EVAS_SCALE_SPAN_H
7
8
9EAPI void evas_common_scale_rgba_span (DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir);
10EAPI void evas_common_scale_rgba_a8_span (DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir);
11EAPI void evas_common_scale_a8_span (DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir);
12EAPI void evas_common_scale_clip_a8_span (DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir);
13
14EAPI void evas_common_scale_hsva_span (DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir);
15EAPI void evas_common_scale_hsva_a8_span (DATA32 *src, DATA8 *mask, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len, int dir);
16
17
18#endif /* _EVAS_SCALE_SPAN_H */