tconfig.h.svn-base
来自「ffshow源码」· SVN-BASE 代码 · 共 65 行
SVN-BASE
65 行
#ifndef _TCONFIG_H_#define _TCONFIG_H_enum{ FF_CPU_MMX =0x00000001, FF_CPU_MMXEXT =0x00000002, FF_CPU_SSE =0x00000004, FF_CPU_SSE2 =0x00000008, FF_CPU_3DNOW =0x00000010, FF_CPU_3DNOWEXT=0x00000020,};#ifndef FF_CPU_ONLY#include "Toptions.h"#include "ffdshow_constants.h"class ThtmlColors;class Tdll;struct Tconfig :public Toptions{private: mutable char_t exeflnm[MAX_PATH]; mutable unsigned int shellversion; int available_cpu_flags0,cpu_flags0; mutable ThtmlColors *htmlcolors; Tdll *gdi32;public: Tconfig(TintStrColl *Icoll); Tconfig(HINSTANCE hInst,int allowedCpuGFlags); ~Tconfig(); void init1(HINSTANCE hi),init2(void),load(void),save(void); char_t pth[MAX_PATH],epth[MAX_PATH]; const char_t *getExeflnm(void) const; static bool winNT; static int available_cpu_flags,cpu_flags,lavc_cpu_flags,sws_cpu_flags; //suppose that CPU capabilities won't change per instance static void initCPU(int allowedCpuFlags); static int getCPUcount(void); typedef void* (__cdecl Tfastmemcpy)(void * to, const void * from, size_t len); static Tfastmemcpy *fastmemcpy; static int cache_line; bool check(const char_t *dllname) const; int isDecoder[IDFF_MOVIE_MAX+1]; unsigned int getShellVersion(void) const; ThtmlColors *getHtmlColors(void) const; template<class tchar> struct Tgdi { BOOL (APIENTRY *getTextExtentExPoint)(IN HDC,IN const tchar*,IN int,IN int,OUT LPINT,OUT LPINT,OUT LPSIZE); BOOL (APIENTRY *getTextExtentPoint32)(IN HDC,IN const tchar*,IN int,OUT LPSIZE); BOOL (WINAPI *textOut)(IN HDC, IN int, IN int, IN const tchar*, IN int); }; template<class tchar> const Tgdi<tchar>& getGDI(void) const; int unicodeOS;private: Tgdi<char> gdiA;Tgdi<wchar_t> gdiW;};template<> inline const Tconfig::Tgdi<char>& Tconfig::getGDI(void) const {return gdiA;}template<> inline const Tconfig::Tgdi<wchar_t>& Tconfig::getGDI(void) const {return gdiW;}#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?