mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
CPU detection added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3324 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
474a0e6223
commit
dfff4e2b56
13
mencoder.c
13
mencoder.c
@ -18,6 +18,9 @@ static char* banner_text=
|
|||||||
"MEncoder " VERSION "(C) 2000-2001 Arpad Gereoffy (see DOCS!)\n"
|
"MEncoder " VERSION "(C) 2000-2001 Arpad Gereoffy (see DOCS!)\n"
|
||||||
"\n";
|
"\n";
|
||||||
|
|
||||||
|
#include "cpudetect.h"
|
||||||
|
|
||||||
|
|
||||||
#include "codec-cfg.h"
|
#include "codec-cfg.h"
|
||||||
|
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
@ -288,6 +291,16 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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:
|
// set some defaults, before parsing configfile/commandline:
|
||||||
divx4_param.min_quantizer = 2;
|
divx4_param.min_quantizer = 2;
|
||||||
divx4_param.max_quantizer = 31;
|
divx4_param.max_quantizer = 31;
|
||||||
|
Loading…
Reference in New Issue
Block a user