summaryrefslogtreecommitdiffstats
path: root/postproc/swscale_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'postproc/swscale_template.c')
-rw-r--r--postproc/swscale_template.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index ebdb6c33d1..6a8117f2fb 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -59,6 +59,10 @@
#define MOVNTQ(a,b) "movq " #a ", " #b " \n\t"
#endif
+#ifdef HAVE_ALTIVEC
+#include "swscale_altivec_template.c"
+#endif
+
#define YSCALEYUV2YV12X(x, offset) \
"xorl %%eax, %%eax \n\t"\
"movq "VROUNDER_OFFSET"(%0), %%mm3\n\t"\
@@ -766,9 +770,15 @@ static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t *
: "%eax", "%edx", "%esi"
);
#else
+#ifdef HAVE_ALTIVEC
+yuv2yuvX_altivec_real(lumFilter, lumSrc, lumFilterSize,
+ chrFilter, chrSrc, chrFilterSize,
+ dest, uDest, vDest, dstW, chrDstW);
+#else //HAVE_ALTIVEC
yuv2yuvXinC(lumFilter, lumSrc, lumFilterSize,
chrFilter, chrSrc, chrFilterSize,
dest, uDest, vDest, dstW, chrDstW);
+#endif //!HAVE_ALTIVEC
#endif
}