From 96a935f2255ef6df186b7b13078feddb68172b6e Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 11 Nov 2001 22:26:15 +0000 Subject: [PATCH] uyvytoyv12 in MMX (untested) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2848 b3059339-0415-0410-9bf9-f77b7e298cf2 --- postproc/rgb2rgb.c | 95 +++++++++++++++++++++++++++++++++++-- postproc/rgb2rgb_template.c | 95 +++++++++++++++++++++++++++++++++++-- 2 files changed, 184 insertions(+), 6 deletions(-) diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index ab2878f9bd..d345854d95 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.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>1; for(y=0; y