1 Index: libpostproc/postprocess.c
2 ===================================================================
3 --- libpostproc/postprocess.c (révision 14661)
4 +++ libpostproc/postprocess.c (copie de travail)
7 //Note: we have C, MMX, MMX2, 3DNOW version there is no 3DNOW+MMX2 one
9 -#if !defined (HAVE_MMX) || defined (RUNTIME_CPUDETECT)
14 #define COMPILE_ALTIVEC
19 -#if (defined (HAVE_MMX) && !defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT)
24 -#if defined (HAVE_MMX2) || defined (RUNTIME_CPUDETECT)
28 -#if (defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT)
29 -#define COMPILE_3DNOW
31 #endif /* defined(ARCH_X86) */
35 // someone might exchange the CPU whithout restarting MPlayer ;)
36 #ifdef RUNTIME_CPUDETECT
38 - // ordered per speed fastest first
39 - if(c->cpuCaps & PP_CPU_CAPS_MMX2)
40 - postProcess_MMX2(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
41 - else if(c->cpuCaps & PP_CPU_CAPS_3DNOW)
42 - postProcess_3DNow(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
43 - else if(c->cpuCaps & PP_CPU_CAPS_MMX)
44 - postProcess_MMX(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
46 - postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
47 + postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
50 if(c->cpuCaps & PP_CPU_CAPS_ALTIVEC)
51 Index: libswscale/yuv2rgb.c
52 ===================================================================
53 --- libswscale/yuv2rgb.c (révision 27432)
54 +++ libswscale/yuv2rgb.c (copie de travail)
62 /* hope these constant values are cache line aligned */
64 #include "yuv2rgb_template.c"
69 const int32_t Inverse_Table_6_9[8][4] = {
70 {117504, 138453, 13954, 34903}, /* no sequence_display_extension */
71 Index: libswscale/swscale.c
72 ===================================================================
73 --- libswscale/swscale.c (révision 27432)
74 +++ libswscale/swscale.c (copie de travail)
77 //Note: we have C, X86, MMX, MMX2, 3DNOW version therse no 3DNOW+MMX2 one
79 -#if !defined (HAVE_MMX) || defined (RUNTIME_CPUDETECT) || !defined(CONFIG_GPL)
84 #if (defined (HAVE_ALTIVEC) || defined (RUNTIME_CPUDETECT)) && defined (CONFIG_GPL)
92 #if ((defined (HAVE_MMX) && !defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT)) && defined (CONFIG_GPL)
96 #endif //ARCH_X86 || ARCH_X86_64
101 @@ -1490,15 +1490,8 @@
102 #if defined(RUNTIME_CPUDETECT) && defined (CONFIG_GPL)
103 #if defined(ARCH_X86)
104 // ordered per speed fastest first
105 - if (flags & SWS_CPU_CAPS_MMX2)
106 - return swScale_MMX2;
107 - else if (flags & SWS_CPU_CAPS_3DNOW)
108 - return swScale_3DNow;
109 - else if (flags & SWS_CPU_CAPS_MMX)
110 - return swScale_MMX;
114 + /* VLC Hack: only C */
118 if (flags & SWS_CPU_CAPS_ALTIVEC)
119 Index: libswscale/rgb2rgb.c
120 ===================================================================
121 --- libswscale/rgb2rgb.c (révision 27432)
122 +++ libswscale/rgb2rgb.c (copie de travail)
124 #define RENAME(a) a ## _C
125 #include "rgb2rgb_template.c"
128 #if defined(ARCH_X86) && defined(CONFIG_GPL)
132 #include "rgb2rgb_template.c"
134 #endif //ARCH_X86 || ARCH_X86_64
138 RGB15->RGB16 original by Strepto/Astral