Mercurial > mplayer.hg
changeset 3323:7cd9dd989662
CPU detection added
author | arpi |
---|---|
date | Tue, 04 Dec 2001 21:35:18 +0000 |
parents | cdd3f5ac06b2 |
children | d73030303234 |
files | mencoder.c |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Tue Dec 04 21:04:28 2001 +0000 +++ b/mencoder.c Tue Dec 04 21:35:18 2001 +0000 @@ -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" @@ -288,6 +291,16 @@ } } + /* 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; divx4_param.max_quantizer = 31;