summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2002-11-14 05:38:10 +0000
committerCarsten Haitzler <raster@rasterman.com>2002-11-14 05:38:10 +0000
commit3dc1dcbd32175b9bb9c4b1e97201548d85f747ba (patch)
tree8ef94392323e76fcbc79ae301a9a4e810cc53e52 /legacy/evas/src/lib/engines/common/evas_draw_main.c
parent7096a69a1ecdd960ec8123afa216643501e346b2 (diff)
the big internal function call renaming happened... and it was good.
SVN revision: 6449
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c146
1 files changed, 73 insertions, 73 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_draw_main.c b/legacy/evas/src/lib/engines/common/evas_draw_main.c
index 1d90483fdf..20b1e8d9e3 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -1,12 +1,12 @@
1#include "evas_common.h" 1#include "evas_common.h"
2 2
3void 3void
4draw_init(void) 4evas_common_draw_init(void)
5{ 5{
6} 6}
7 7
8RGBA_Draw_Context * 8RGBA_Draw_Context *
9draw_context_new(void) 9evas_common_draw_context_new(void)
10{ 10{
11 RGBA_Draw_Context *dc; 11 RGBA_Draw_Context *dc;
12 12
@@ -15,13 +15,13 @@ draw_context_new(void)
15} 15}
16 16
17void 17void
18draw_context_free(RGBA_Draw_Context *dc) 18evas_common_draw_context_free(RGBA_Draw_Context *dc)
19{ 19{
20 free(dc); 20 free(dc);
21} 21}
22 22
23void 23void
24draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h) 24evas_common_draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
25{ 25{
26 if (dc->clip.use) 26 if (dc->clip.use)
27 { 27 {
@@ -29,11 +29,11 @@ draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
29 x, y, w, h); 29 x, y, w, h);
30 } 30 }
31 else 31 else
32 draw_context_set_clip(dc, x, y, w, h); 32 evas_common_draw_context_set_clip(dc, x, y, w, h);
33} 33}
34 34
35void 35void
36draw_context_set_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h) 36evas_common_draw_context_set_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
37{ 37{
38 dc->clip.use = 1; 38 dc->clip.use = 1;
39 dc->clip.x = x; 39 dc->clip.x = x;
@@ -43,13 +43,13 @@ draw_context_set_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
43} 43}
44 44
45void 45void
46draw_context_unset_clip(RGBA_Draw_Context *dc) 46evas_common_draw_context_unset_clip(RGBA_Draw_Context *dc)
47{ 47{
48 dc->clip.use = 0; 48 dc->clip.use = 0;
49} 49}
50 50
51void 51void
52draw_context_set_color(RGBA_Draw_Context *dc, int r, int g, int b, int a) 52evas_common_draw_context_set_color(RGBA_Draw_Context *dc, int r, int g, int b, int a)
53{ 53{
54 R_VAL(&(dc->col.col)) = (DATA8)r; 54 R_VAL(&(dc->col.col)) = (DATA8)r;
55 G_VAL(&(dc->col.col)) = (DATA8)g; 55 G_VAL(&(dc->col.col)) = (DATA8)g;
@@ -58,7 +58,7 @@ draw_context_set_color(RGBA_Draw_Context *dc, int r, int g, int b, int a)
58} 58}
59 59
60void 60void
61draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int b, int a) 61evas_common_draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int b, int a)
62{ 62{
63 dc->mul.use = 1; 63 dc->mul.use = 1;
64 dc->mod.use = 0; 64 dc->mod.use = 0;
@@ -69,13 +69,13 @@ draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int b, int a)
69} 69}
70 70
71void 71void
72draw_context_unset_multiplier(RGBA_Draw_Context *dc) 72evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc)
73{ 73{
74 dc->mul.use = 0; 74 dc->mul.use = 0;
75} 75}
76 76
77void 77void
78draw_context_set_modifiers(RGBA_Draw_Context *dc, DATA8 *rmod, DATA8 *gmod, DATA8 *bmod, DATA8 *amod) 78evas_common_draw_context_set_modifiers(RGBA_Draw_Context *dc, DATA8 *rmod, DATA8 *gmod, DATA8 *bmod, DATA8 *amod)
79{ 79{
80 int i; 80 int i;
81 81
@@ -104,13 +104,13 @@ draw_context_set_modifiers(RGBA_Draw_Context *dc, DATA8 *rmod, DATA8 *gmod, DATA
104} 104}
105 105
106void 106void
107draw_context_ununset_modifiers(RGBA_Draw_Context *dc) 107evas_common_draw_context_ununset_modifiers(RGBA_Draw_Context *dc)
108{ 108{
109 dc->mod.use = 0; 109 dc->mod.use = 0;
110} 110}
111 111
112void 112void
113draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h) 113evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
114{ 114{
115 Cutout_Rect *r; 115 Cutout_Rect *r;
116 116
@@ -123,14 +123,14 @@ draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
123} 123}
124 124
125void 125void
126draw_context_clear_cutouts(RGBA_Draw_Context *dc) 126evas_common_draw_context_clear_cutouts(RGBA_Draw_Context *dc)
127{ 127{
128 draw_context_apply_free_cutouts(dc->cutout.rects); 128 evas_common_draw_context_apply_free_cutouts(dc->cutout.rects);
129 dc->cutout.rects = NULL; 129 dc->cutout.rects = NULL;
130} 130}
131 131
132Cutout_Rect * 132Cutout_Rect *
133draw_context_apply_cutouts(RGBA_Draw_Context *dc) 133evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
134{ 134{
135 Cutout_Rect *r, *rects; 135 Cutout_Rect *r, *rects;
136 Evas_Object_List *l; 136 Evas_Object_List *l;
@@ -146,13 +146,13 @@ draw_context_apply_cutouts(RGBA_Draw_Context *dc)
146 for (l = (Evas_Object_List *)dc->cutout.rects; l; l = l->next) 146 for (l = (Evas_Object_List *)dc->cutout.rects; l; l = l->next)
147 { 147 {
148 r = (Cutout_Rect *)l; 148 r = (Cutout_Rect *)l;
149 rects = draw_context_cutouts_split(rects, r); 149 rects = evas_common_draw_context_cutouts_split(rects, r);
150 } 150 }
151 return rects; 151 return rects;
152} 152}
153 153
154void 154void
155draw_context_apply_free_cutouts(Cutout_Rect *rects) 155evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects)
156{ 156{
157 while (rects) 157 while (rects)
158 { 158 {
@@ -165,7 +165,7 @@ draw_context_apply_free_cutouts(Cutout_Rect *rects)
165} 165}
166 166
167Cutout_Rect * 167Cutout_Rect *
168draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split) 168evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
169{ 169{
170 /* multiple rect in, multiple out */ 170 /* multiple rect in, multiple out */
171 Cutout_Rect *out; 171 Cutout_Rect *out;
@@ -177,7 +177,7 @@ draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
177 Cutout_Rect *r; 177 Cutout_Rect *r;
178 178
179 r = (Cutout_Rect *)l; 179 r = (Cutout_Rect *)l;
180 r = draw_context_cutout_split(r, split); 180 r = evas_common_draw_context_cutout_split(r, split);
181 while (r) 181 while (r)
182 { 182 {
183 Cutout_Rect *r2; 183 Cutout_Rect *r2;
@@ -187,12 +187,12 @@ draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
187 out = evas_object_list_append(out, r2); 187 out = evas_object_list_append(out, r2);
188 } 188 }
189 } 189 }
190 draw_context_apply_free_cutouts(in); 190 evas_common_draw_context_apply_free_cutouts(in);
191 return out; 191 return out;
192} 192}
193 193
194Cutout_Rect * 194Cutout_Rect *
195draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split) 195evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
196{ 196{
197 /* 1 input rect, multiple out */ 197 /* 1 input rect, multiple out */
198 Cutout_Rect *out; 198 Cutout_Rect *out;
@@ -484,18 +484,18 @@ draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
484} 484}
485 485
486Gfx_Func_Blend_Src_Dst 486Gfx_Func_Blend_Src_Dst
487draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels) 487evas_common_draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
488{ 488{
489#ifdef BUILD_MMX 489#ifdef BUILD_MMX
490 int mmx, sse, sse2; 490 int mmx, sse, sse2;
491 491
492 cpu_can_do(&mmx, &sse, &sse2); 492 evas_common_cpu_can_do(&mmx, &sse, &sse2);
493#endif 493#endif
494 if (src->flags & RGBA_IMAGE_HAS_ALPHA) 494 if (src->flags & RGBA_IMAGE_HAS_ALPHA)
495 { 495 {
496 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 496 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
497 { 497 {
498 return blend_pixels_rgba_to_rgba_c; 498 return evas_common_blend_pixels_rgba_to_rgba_c;
499 } 499 }
500 else 500 else
501 { 501 {
@@ -503,13 +503,13 @@ draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
503# ifdef BUILD_C 503# ifdef BUILD_C
504 if (mmx) 504 if (mmx)
505# endif 505# endif
506 return blend_pixels_rgba_to_rgb_mmx; 506 return evas_common_blend_pixels_rgba_to_rgb_mmx;
507# ifdef BUILD_C 507# ifdef BUILD_C
508 else 508 else
509# endif 509# endif
510#endif 510#endif
511#ifdef BUILD_C 511#ifdef BUILD_C
512 return blend_pixels_rgba_to_rgb_c; 512 return evas_common_blend_pixels_rgba_to_rgb_c;
513#endif 513#endif
514 } 514 }
515 } 515 }
@@ -517,13 +517,13 @@ draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
517 { 517 {
518 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 518 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
519 { 519 {
520 return copy_pixels_rgb_to_rgba_c; 520 return evas_common_copy_pixels_rgb_to_rgba_c;
521 } 521 }
522 else 522 else
523 { 523 {
524#ifdef BUILD_SSE 524#ifdef BUILD_SSE
525 if ((sse) && (pixels > 256 * 256)) 525 if ((sse) && (pixels > 256 * 256))
526 return copy_pixels_rgba_to_rgba_sse; 526 return evas_common_copy_pixels_rgba_to_rgba_sse;
527# ifdef BUILD_MMX 527# ifdef BUILD_MMX
528 else 528 else
529# endif 529# endif
@@ -532,45 +532,45 @@ draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
532# ifdef BUILD_C 532# ifdef BUILD_C
533 if (mmx) 533 if (mmx)
534# endif 534# endif
535 return copy_pixels_rgba_to_rgba_mmx; 535 return evas_common_copy_pixels_rgba_to_rgba_mmx;
536# ifdef BUILD_C 536# ifdef BUILD_C
537 else 537 else
538# endif 538# endif
539#endif 539#endif
540#ifdef BUILD_C 540#ifdef BUILD_C
541 return copy_pixels_rgba_to_rgba_c; 541 return evas_common_copy_pixels_rgba_to_rgba_c;
542#endif 542#endif
543 } 543 }
544 } 544 }
545 return blend_pixels_rgba_to_rgba_c; 545 return evas_common_blend_pixels_rgba_to_rgba_c;
546 pixels = 0; 546 pixels = 0;
547} 547}
548 548
549Gfx_Func_Blend_Color_Dst 549Gfx_Func_Blend_Color_Dst
550draw_func_blend_color_get(DATA32 src, RGBA_Image *dst, int pixels) 550evas_common_draw_func_blend_color_get(DATA32 src, RGBA_Image *dst, int pixels)
551{ 551{
552#ifdef BUILD_MMX 552#ifdef BUILD_MMX
553 int mmx, sse, sse2; 553 int mmx, sse, sse2;
554 554
555 cpu_can_do(&mmx, &sse, &sse2); 555 evas_common_cpu_can_do(&mmx, &sse, &sse2);
556#endif 556#endif
557 if (A_VAL(&src) != 0xff) 557 if (A_VAL(&src) != 0xff)
558 { 558 {
559 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 559 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
560 { 560 {
561 return blend_color_rgba_to_rgba_c; 561 return evas_common_blend_color_rgba_to_rgba_c;
562 } 562 }
563 else 563 else
564 { 564 {
565#ifdef BUILD_MMX 565#ifdef BUILD_MMX
566 if (mmx) 566 if (mmx)
567 return blend_color_rgba_to_rgb_mmx; 567 return evas_common_blend_color_rgba_to_rgb_mmx;
568#endif 568#endif
569#ifdef BUILD_C 569#ifdef BUILD_C
570# ifdef BUILD_MMX 570# ifdef BUILD_MMX
571 else 571 else
572# endif 572# endif
573 return blend_color_rgba_to_rgb_c; 573 return evas_common_blend_color_rgba_to_rgb_c;
574#endif 574#endif
575 } 575 }
576 } 576 }
@@ -578,92 +578,92 @@ draw_func_blend_color_get(DATA32 src, RGBA_Image *dst, int pixels)
578 { 578 {
579 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 579 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
580 { 580 {
581 return copy_color_rgb_to_rgba_c; 581 return evas_common_copy_color_rgb_to_rgba_c;
582 } 582 }
583 else 583 else
584 { 584 {
585#ifdef BUILD_SSE 585#ifdef BUILD_SSE
586 if ((sse) && (pixels > 256 * 256)) 586 if ((sse) && (pixels > 256 * 256))
587 return copy_color_rgba_to_rgba_sse; 587 return evas_common_copy_color_rgba_to_rgba_sse;
588#endif 588#endif
589#ifdef BUILD_MMX 589#ifdef BUILD_MMX
590# ifdef BUILD_SSE 590# ifdef BUILD_SSE
591 else 591 else
592# endif 592# endif
593 if (mmx) 593 if (mmx)
594 return copy_color_rgba_to_rgba_mmx; 594 return evas_common_copy_color_rgba_to_rgba_mmx;
595#endif 595#endif
596#ifdef BUILD_C 596#ifdef BUILD_C
597# ifdef BUILD_MMX 597# ifdef BUILD_MMX
598 else 598 else
599# endif 599# endif
600 return copy_color_rgba_to_rgba_c; 600 return evas_common_copy_color_rgba_to_rgba_c;
601#endif 601#endif
602 } 602 }
603 } 603 }
604 return blend_color_rgba_to_rgba_c; 604 return evas_common_blend_color_rgba_to_rgba_c;
605 pixels = 0; 605 pixels = 0;
606} 606}
607 607
608Gfx_Func_Blend_Src_Cmod_Dst 608Gfx_Func_Blend_Src_Cmod_Dst
609draw_func_blend_cmod_get(RGBA_Image *src, RGBA_Image *dst, int pixels) 609evas_common_draw_func_blend_cmod_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
610{ 610{
611#ifdef BUILD_MMX 611#ifdef BUILD_MMX
612 int mmx, sse, sse2; 612 int mmx, sse, sse2;
613 613
614 cpu_can_do(&mmx, &sse, &sse2); 614 evas_common_cpu_can_do(&mmx, &sse, &sse2);
615#endif 615#endif
616 if (src->flags & RGBA_IMAGE_HAS_ALPHA) 616 if (src->flags & RGBA_IMAGE_HAS_ALPHA)
617 { 617 {
618 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 618 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
619 { 619 {
620 return blend_pixels_cmod_rgba_to_rgba_c; 620 return evas_common_blend_pixels_cmod_rgba_to_rgba_c;
621 } 621 }
622 else 622 else
623 { 623 {
624 return blend_pixels_cmod_rgba_to_rgb_c; 624 return evas_common_blend_pixels_cmod_rgba_to_rgb_c;
625 } 625 }
626 } 626 }
627 else 627 else
628 { 628 {
629 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 629 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
630 { 630 {
631 return copy_pixels_cmod_rgb_to_rgba_c; 631 return evas_common_copy_pixels_cmod_rgb_to_rgba_c;
632 } 632 }
633 else 633 else
634 { 634 {
635 return copy_pixels_cmod_rgba_to_rgba_c; 635 return evas_common_copy_pixels_cmod_rgba_to_rgba_c;
636 } 636 }
637 } 637 }
638 return blend_pixels_cmod_rgba_to_rgba_c; 638 return evas_common_blend_pixels_cmod_rgba_to_rgba_c;
639 pixels = 0; 639 pixels = 0;
640} 640}
641 641
642Gfx_Func_Blend_Src_Mul_Dst 642Gfx_Func_Blend_Src_Mul_Dst
643draw_func_blend_mul_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels) 643evas_common_draw_func_blend_mul_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels)
644{ 644{
645#ifdef BUILD_MMX 645#ifdef BUILD_MMX
646 int mmx, sse, sse2; 646 int mmx, sse, sse2;
647 647
648 cpu_can_do(&mmx, &sse, &sse2); 648 evas_common_cpu_can_do(&mmx, &sse, &sse2);
649#endif 649#endif
650 if (src->flags & RGBA_IMAGE_HAS_ALPHA) 650 if (src->flags & RGBA_IMAGE_HAS_ALPHA)
651 { 651 {
652 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 652 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
653 { 653 {
654 return blend_pixels_mul_color_rgba_to_rgba_c; 654 return evas_common_blend_pixels_mul_color_rgba_to_rgba_c;
655 } 655 }
656 else 656 else
657 { 657 {
658#ifdef BUILD_MMX 658#ifdef BUILD_MMX
659 if (mmx) 659 if (mmx)
660 return blend_pixels_mul_color_rgba_to_rgb_mmx; 660 return evas_common_blend_pixels_mul_color_rgba_to_rgb_mmx;
661#endif 661#endif
662#ifdef BUILD_C 662#ifdef BUILD_C
663# ifdef BUILD_MMX 663# ifdef BUILD_MMX
664 else 664 else
665# endif 665# endif
666 return blend_pixels_mul_color_rgba_to_rgb_c; 666 return evas_common_blend_pixels_mul_color_rgba_to_rgb_c;
667#endif 667#endif
668 } 668 }
669 } 669 }
@@ -671,109 +671,109 @@ draw_func_blend_mul_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels
671 { 671 {
672 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 672 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
673 { 673 {
674 return blend_pixels_mul_color_rgba_to_rgba_c; 674 return evas_common_blend_pixels_mul_color_rgba_to_rgba_c;
675 } 675 }
676 else 676 else
677 { 677 {
678#ifdef BUILD_MMX 678#ifdef BUILD_MMX
679 if (mmx) 679 if (mmx)
680 return blend_pixels_mul_color_rgba_to_rgb_mmx; 680 return evas_common_blend_pixels_mul_color_rgba_to_rgb_mmx;
681#endif 681#endif
682#ifdef BUILD_C 682#ifdef BUILD_C
683# ifdef BUILD_MMX 683# ifdef BUILD_MMX
684 else 684 else
685# endif 685# endif
686 return blend_pixels_mul_color_rgba_to_rgb_c; 686 return evas_common_blend_pixels_mul_color_rgba_to_rgb_c;
687#endif 687#endif
688 } 688 }
689 } 689 }
690 return blend_pixels_mul_color_rgba_to_rgba_c; 690 return evas_common_blend_pixels_mul_color_rgba_to_rgba_c;
691 col = 0; 691 col = 0;
692 pixels = 0; 692 pixels = 0;
693} 693}
694 694
695Gfx_Func_Blend_Src_Alpha_Mul_Dst 695Gfx_Func_Blend_Src_Alpha_Mul_Dst
696draw_func_blend_alpha_get(RGBA_Image *dst) 696evas_common_draw_func_blend_alpha_get(RGBA_Image *dst)
697{ 697{
698#ifdef BUILD_MMX 698#ifdef BUILD_MMX
699 int mmx, sse, sse2; 699 int mmx, sse, sse2;
700 700
701 cpu_can_do(&mmx, &sse, &sse2); 701 evas_common_cpu_can_do(&mmx, &sse, &sse2);
702#endif 702#endif
703 if (dst->flags & RGBA_IMAGE_HAS_ALPHA) 703 if (dst->flags & RGBA_IMAGE_HAS_ALPHA)
704 { 704 {
705 return blend_alpha_color_rgba_to_rgba_c; 705 return evas_common_blend_alpha_color_rgba_to_rgba_c;
706 } 706 }
707 else 707 else
708 { 708 {
709#ifdef BUILD_MMX 709#ifdef BUILD_MMX
710 if (mmx) 710 if (mmx)
711 return blend_alpha_color_rgba_to_rgb_mmx; 711 return evas_common_blend_alpha_color_rgba_to_rgb_mmx;
712#endif 712#endif
713#ifdef BUILD_C 713#ifdef BUILD_C
714# ifdef BUILD_MMX 714# ifdef BUILD_MMX
715 else 715 else
716# endif 716# endif
717 return blend_alpha_color_rgba_to_rgb_c; 717 return evas_common_blend_alpha_color_rgba_to_rgb_c;
718#endif 718#endif
719 } 719 }
720#ifdef BUILD_C 720#ifdef BUILD_C
721 return blend_alpha_color_rgba_to_rgba_c; 721 return evas_common_blend_alpha_color_rgba_to_rgba_c;
722#else 722#else
723 return NULL; 723 return NULL;
724#endif 724#endif
725} 725}
726 726
727Gfx_Func_Blend_Src_Dst 727Gfx_Func_Blend_Src_Dst
728draw_func_copy_get(int pixels, int reverse) 728evas_common_draw_func_copy_get(int pixels, int reverse)
729{ 729{
730#ifdef BUILD_MMX 730#ifdef BUILD_MMX
731 int mmx, sse, sse2; 731 int mmx, sse, sse2;
732 732
733 cpu_can_do(&mmx, &sse, &sse2); 733 evas_common_cpu_can_do(&mmx, &sse, &sse2);
734#endif 734#endif
735 if (reverse) 735 if (reverse)
736 { 736 {
737#ifdef BUILD_SSE 737#ifdef BUILD_SSE
738 if ((sse) && (pixels > 256 * 256)) 738 if ((sse) && (pixels > 256 * 256))
739 return copy_pixels_rev_rgba_to_rgba_sse; 739 return evas_common_copy_pixels_rev_rgba_to_rgba_sse;
740#endif 740#endif
741#ifdef BUILD_MMX 741#ifdef BUILD_MMX
742# ifdef BUILD_SSE 742# ifdef BUILD_SSE
743 else 743 else
744# endif 744# endif
745 if (mmx) 745 if (mmx)
746 return copy_pixels_rev_rgba_to_rgba_mmx; 746 return evas_common_copy_pixels_rev_rgba_to_rgba_mmx;
747#endif 747#endif
748#ifdef BUILD_C 748#ifdef BUILD_C
749# ifdef BUILD_MMX 749# ifdef BUILD_MMX
750 else 750 else
751# endif 751# endif
752 return copy_pixels_rev_rgba_to_rgba_c; 752 return evas_common_copy_pixels_rev_rgba_to_rgba_c;
753#endif 753#endif
754 } 754 }
755 else 755 else
756 { 756 {
757#ifdef BUILD_SSE 757#ifdef BUILD_SSE
758 if ((sse) && (pixels > 256 * 256)) 758 if ((sse) && (pixels > 256 * 256))
759 return copy_pixels_rgba_to_rgba_sse; 759 return evas_common_copy_pixels_rgba_to_rgba_sse;
760#endif 760#endif
761#ifdef BUILD_MMX 761#ifdef BUILD_MMX
762# ifdef BUILD_SSE 762# ifdef BUILD_SSE
763 else 763 else
764# endif 764# endif
765 if (mmx) 765 if (mmx)
766 return copy_pixels_rgba_to_rgba_mmx; 766 return evas_common_copy_pixels_rgba_to_rgba_mmx;
767#endif 767#endif
768#ifdef BUILD_C 768#ifdef BUILD_C
769# ifdef BUILD_MMX 769# ifdef BUILD_MMX
770 else 770 else
771# endif 771# endif
772 return copy_pixels_rgba_to_rgba_c; 772 return evas_common_copy_pixels_rgba_to_rgba_c;
773#endif 773#endif
774 } 774 }
775#ifdef BUILD_C 775#ifdef BUILD_C
776 return copy_pixels_rgba_to_rgba_c; 776 return evas_common_copy_pixels_rgba_to_rgba_c;
777#else 777#else
778 return NULL; 778 return NULL;
779#endif 779#endif