diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-26 23:21:24 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-26 23:21:24 +0000 |
commit | 97cdbcb869dfab955750946ef4aa879b117dc2e2 (patch) | |
tree | 7829849d342e74926ddc42b019a09e4dc7cd7a06 /libmpeg2/decode.c | |
parent | 43e976286203bfdbbf3d484811517ea6f7e5c9e9 (diff) | |
download | mpv-97cdbcb869dfab955750946ef4aa879b117dc2e2.tar.bz2 mpv-97cdbcb869dfab955750946ef4aa879b117dc2e2.tar.xz |
runtime cpu detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3148 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2/decode.c')
-rw-r--r-- | libmpeg2/decode.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libmpeg2/decode.c b/libmpeg2/decode.c index d8560380ea..a90cbc9291 100644 --- a/libmpeg2/decode.c +++ b/libmpeg2/decode.c @@ -42,6 +42,7 @@ #include "mm_accel.h" +#include "../cpudetect.h" //this is where we keep the state of the decoder //picture_t picture_data; @@ -71,15 +72,12 @@ void mpeg2_init (void) printf (PACKAGE"-"VERSION" (C) 2000-2001 Aaron Holtzman & Michel Lespinasse\n"); config.flags = 0; -#ifdef HAVE_MMX +if(gCpuCaps.hasMMX) config.flags |= MM_ACCEL_X86_MMX; -#endif -#ifdef HAVE_SSE +if(gCpuCaps.hasMMX2) config.flags |= MM_ACCEL_X86_MMXEXT; -#endif -#ifdef HAVE_3DNOW +if(gCpuCaps.has3DNow) config.flags |= MM_ACCEL_X86_3DNOW; -#endif #ifdef HAVE_MLIB config.flags |= MM_ACCEL_MLIB; #endif |