[Mplayer-cvslog] CVS: main/libmpeg2 decode.c,1.19,1.20
Michael Niedermayer
michael at mplayer.dev.hu
Tue Nov 27 00:21:36 CET 2001
Update of /cvsroot/mplayer/main/libmpeg2
In directory mplayer:/var/tmp.root/cvs-serv24531/libmpeg2
Modified Files:
decode.c
Log Message:
runtime cpu detection
Index: decode.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/decode.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- decode.c 9 Nov 2001 02:17:01 -0000 1.19
+++ decode.c 26 Nov 2001 23:21:24 -0000 1.20
@@ -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 @@
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
More information about the MPlayer-cvslog
mailing list