diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-11 17:58:11 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-11 17:58:11 +0000 |
commit | e61fb5349ab1c7e6ae2664ab5ee4d04bb3e8f92b (patch) | |
tree | c86dae5f7ccf48eafbadc1eeb2a570b7767d4b76 /postproc/swscale_template.c | |
parent | 5865c8ccde6c16f290332a51adcc678e7f67acaf (diff) | |
download | mpv-e61fb5349ab1c7e6ae2664ab5ee4d04bb3e8f92b.tar.bz2 mpv-e61fb5349ab1c7e6ae2664ab5ee4d04bb3e8f92b.tar.xz |
AltiVec support in postproc/ + altivec optimizations for yuv2yuvX patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12018 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/swscale_template.c')
-rw-r--r-- | postproc/swscale_template.c | 10 |
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 } |