cinfosimd.h
来自「从FFMPEG转换而来的H264解码程序,VC下编译..」· C头文件 代码 · 共 71 行
H
71 行
#ifndef _CINFOSIMD_H_
#define _CINFOSIMD_H_
#include "TconfPageDec.h"
class TinfoBase;
class TinfoPageDec :public TconfPageDec
{
private:
HWND hlv;
TinfoBase *info;
struct Titem
{
Titem(void):val(NULL),wasChange(1) {}
int id,index;
const char_t *name,*translatedName,*val;
int wasChange;
};
struct TsortItem
{
private:
const int *infos;
public:
TsortItem(const int *Iinfos):infos(Iinfos) {}
bool operator()(const Titem &i1,const Titem &i2) {return i1.index<i2.index;}
};
typedef std::vector<Titem> Titems;
Titems infoitems;
protected:
virtual const int* getInfos(void)=0;
virtual INT_PTR msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual void onFrame(void);
public:
TinfoPageDec(TffdshowPageDec *Iparent,TinfoBase *Iinfo);
virtual ~TinfoPageDec();
virtual void cfg2dlg(void);
virtual void init(void);
virtual void translate(void);
};
class TinfoPageDecVideo :public TinfoPageDec
{
protected:
virtual const int* getInfos(void)
{
static const int infos[]=
{
#ifdef OSDTIMETABALE
IDFF_OSDtype_timetable,
#endif
IDFF_OSDtype_sourceFlnm,IDFF_OSDtype_inputSizeAspect,IDFF_OSDtype_inputFOURCC,IDFF_OSDtype_inputFPS,IDFF_OSDtype_bps,IDFF_OSDtype_movieSource,IDFF_OSDtype_outputFOURCC,IDFF_currentFrame,0};
return infos;
}
public:
TinfoPageDecVideo(TffdshowPageDec *Iparent);
};
class TinfoPageDecAudio :public TinfoPageDec
{
protected:
virtual const int* getInfos(void)
{
static const int infos[]={IDFF_OSDtype_sourceFlnm,IDFF_OSDtype_inCodecString,IDFF_OSDtype_outCodecString,IDFF_OSDtype_outSpeakersConfig,IDFF_OSDtype_movieSource,IDFF_OSDtype_bps,IDFF_OSDtype_audioJitter,0};
return infos;
}
public:
TinfoPageDecAudio(TffdshowPageDec *Iparent);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?