mplayer.c

来自「从FFMPEG转换而来的H264解码程序,VC下编译..」· C语言 代码 · 共 28 行

C
28
字号
#include "cpudetect.h"
#include "config.h"
#include <string.h>
#include "fastmemcpy.h"
#include "compiler.h"

CpuCaps gCpuCaps;

void init_mplayer(int mmx,int mmx2,int _3dnow,int _3dnowExt,int sse,int sse2)
{
 gCpuCaps.hasMMX=mmx;
 gCpuCaps.hasMMX2=mmx2;
 gCpuCaps.has3DNow=_3dnow;
 gCpuCaps.has3DNowExt=_3dnowExt;
 gCpuCaps.hasSSE=sse;
 gCpuCaps.hasSSE2=sse2;
 init_fast_memcpy();
 // Avoid using multithread if the CPU is Pentium4-HT
 // because it is not faster at all and uses more CPU.
 // (Swscaler depends much on MMX and P4HT have only one MMX unit.)
}

void __stdcall getVersion(char *ver,const char* *license)
{
 strcpy(ver,"3.8, build date "__DATE__" "__TIME__" ("COMPILER COMPILER_X64")");
 *license="";
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?