From ed8c06708e3d8da1fd56933e5f5e5815a884792e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 11 Nov 2001 22:26:15 +0000 Subject: uyvytoyv12 in MMX (untested) Originally committed as revision 2848 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/rgb2rgb_template.c | 95 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 92 insertions(+), 3 deletions(-) (limited to 'postproc/rgb2rgb_template.c') diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index ab2878f9bd..d345854d95 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -811,9 +811,9 @@ void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, src += srcStride; } #ifdef HAVE_MMX -asm( EMMS" \n\t" - SFENCE" \n\t" - :::"memory"); +asm volatile( EMMS" \n\t" + SFENCE" \n\t" + :::"memory"); #endif } @@ -830,6 +830,89 @@ void uyvytoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const int chromWidth= width>>1; for(y=0; y