summaryrefslogtreecommitdiffstats
path: root/postproc/yuv2rgb.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-25 17:16:55 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-25 17:16:55 +0000
commitacf20201dbb99020c694c0d4edd31ddc7e17c44b (patch)
tree4bdac2f567868da20e4cbda19a98519a95623ab9 /postproc/yuv2rgb.c
parentc186b34afa6cd610da1fe555de8faf52125b2be8 (diff)
downloadmpv-acf20201dbb99020c694c0d4edd31ddc7e17c44b.tar.bz2
mpv-acf20201dbb99020c694c0d4edd31ddc7e17c44b.tar.xz
remove remaining cpudetect dependancy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9988 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r--postproc/yuv2rgb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c
index 5ce19b5512..d4209cbdbd 100644
--- a/postproc/yuv2rgb.c
+++ b/postproc/yuv2rgb.c
@@ -40,7 +40,6 @@
#include "rgb2rgb.h"
#include "swscale.h"
#include "swscale_internal.h"
-#include "../cpudetect.h"
#include "../mangle.h"
#include "../mp_msg.h"
#include "../libvo/img_format.h" //FIXME try to reduce dependency of such stuff
@@ -586,7 +585,7 @@ EPILOG(1)
SwsFunc yuv2rgb_get_func_ptr (SwsContext *c)
{
#ifdef ARCH_X86
- if(gCpuCaps.hasMMX2){
+ if(c->flags & SWS_CPU_CAPS_MMX2){
switch(c->dstFormat){
case IMGFMT_BGR32: return yuv420_rgb32_MMX2;
case IMGFMT_BGR24: return yuv420_rgb24_MMX2;
@@ -594,7 +593,7 @@ SwsFunc yuv2rgb_get_func_ptr (SwsContext *c)
case IMGFMT_BGR15: return yuv420_rgb15_MMX2;
}
}
- if(gCpuCaps.hasMMX){
+ if(c->flags & SWS_CPU_CAPS_MMX){
switch(c->dstFormat){
case IMGFMT_BGR32: return yuv420_rgb32_MMX;
case IMGFMT_BGR24: return yuv420_rgb24_MMX;