summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-25 20:35:58 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-25 20:35:58 +0000
commit2067a1f7507402da2a3692258cadf5de2c003705 (patch)
tree9e00f66df01d3cd76242d756df44cbcb1ca43e4d /mencoder.c
parentccb0647f897b7e484cb5c593f62d7b8b0bc61adf (diff)
downloadmpv-2067a1f7507402da2a3692258cadf5de2c003705.tar.bz2
mpv-2067a1f7507402da2a3692258cadf5de2c003705.tar.xz
Factorize print_version().
Print CPU information in verbose mode instead of by default. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28360 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/mencoder.c b/mencoder.c
index f3947b4840..df85a37974 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -36,13 +36,9 @@
#include <sys/time.h>
-
-#include "version.h"
#include "mp_msg.h"
#include "help_mp.h"
-#include "cpudetect.h"
-
#include "codec-cfg.h"
#include "m_option.h"
#include "m_config.h"
@@ -421,40 +417,7 @@ user_correct_pts = 0;
// Preparse the command line
m_config_preparse_command_line(mconfig,argc,argv);
- mp_msg(MSGT_CPLAYER,MSGL_INFO, "MEncoder " VERSION " (C) 2000-2009 MPlayer Team\n");
-
- /* Test for cpu capabilities (and corresponding OS support) for optimizing */
- GetCpuCaps(&gCpuCaps);
-#if ARCH_X86
- 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);
-#ifdef RUNTIME_CPUDETECT
- mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithRuntimeDetection);
-#else
- mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithCPUExtensions);
-#if HAVE_MMX
- mp_msg(MSGT_CPLAYER,MSGL_INFO," MMX");
-#endif
-#if HAVE_MMX2
- mp_msg(MSGT_CPLAYER,MSGL_INFO," MMX2");
-#endif
-#if HAVE_3DNOW
- mp_msg(MSGT_CPLAYER,MSGL_INFO," 3DNow");
-#endif
-#if HAVE_3DNOWEX
- mp_msg(MSGT_CPLAYER,MSGL_INFO," 3DNowEx");
-#endif
-#if HAVE_SSE
- mp_msg(MSGT_CPLAYER,MSGL_INFO," SSE");
-#endif
-#if HAVE_SSE2
- mp_msg(MSGT_CPLAYER,MSGL_INFO," SSE2");
-#endif
- mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n\n");
-#endif
-#endif
+ print_version("MEncoder");
#if (defined(__MINGW32__) || defined(__CYGWIN__)) && defined(CONFIG_WIN32DLL)
set_path_env();