[Mplayer-cvslog] CVS: main mencoder.c,1.30,1.31

Arpi of Ize arpi at mplayer.dev.hu
Tue Dec 4 22:35:21 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv21975

Modified Files:
	mencoder.c 
Log Message:
CPU detection added

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- mencoder.c	4 Dec 2001 20:35:31 -0000	1.30
+++ mencoder.c	4 Dec 2001 21:35:18 -0000	1.31
@@ -18,6 +18,9 @@
 "MEncoder " VERSION "(C) 2000-2001 Arpad Gereoffy (see DOCS!)\n"
 "\n";
 
+#include "cpudetect.h"
+
+
 #include "codec-cfg.h"
 
 #include "stream.h"
@@ -287,6 +290,16 @@
     exit(0);
   }
 }
+
+  /* Test for cpu capabilities (and corresponding OS support) for optimizing */
+#ifdef ARCH_X86
+  GetCpuCaps(&gCpuCaps);
+  mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags: Type: %d MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n",
+      gCpuCaps.cpuType,gCpuCaps.hasMMX,gCpuCaps.hasMMX2,
+      gCpuCaps.has3DNow, gCpuCaps.has3DNowExt,
+      gCpuCaps.hasSSE, gCpuCaps.hasSSE2);
+#endif
+
 
 // set some defaults, before parsing configfile/commandline:
 divx4_param.min_quantizer = 2;




More information about the MPlayer-cvslog mailing list