From 7ac25f2d0005c337f49544fff74f69792927a920 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 10 Oct 2003 00:19:16 +0000 Subject: [PATCH] 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(+) diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index acb53ea..eda2ccc 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; @@ -1603,6 +1641,7 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u vc++; } #endif +#endif if((y&(vertLumPerChroma-1))==(vertLumPerChroma-1) ) { usrc += chromStride; @@ -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 } /** -- 2.7.4