From 7ac25f2d0005c337f49544fff74f69792927a920 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 10 Oct 2003 00:19:16 +0000 Subject: yv12->uyvy MMX Originally committed as revision 11073 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/rgb2rgb_template.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'postproc') diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index acb53ea4aa..eda2ccc83a 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -1576,6 +1576,44 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u const unsigned chromWidth= width>>1; for(y=0; yyuy2 + #if __WORDSIZE >= 64 int i; uint64_t *ldst = (uint64_t *) dst; @@ -1602,6 +1640,7 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u uc++; vc++; } +#endif #endif if((y&(vertLumPerChroma-1))==(vertLumPerChroma-1) ) { @@ -1611,6 +1650,11 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u ysrc += lumStride; dst += dstStride; } +#ifdef HAVE_MMX +asm( EMMS" \n\t" + SFENCE" \n\t" + :::"memory"); +#endif } /** -- cgit v1.2.3