資源簡(jiǎn)介
通過(guò)ffmpeg開(kāi)源庫(kù)實(shí)現(xiàn)H264文件的編碼和解碼,并能將解碼后的圖像實(shí)時(shí)的顯示,是一份適合初學(xué)者的好資料。

代碼片段和文件信息
//?H264Player.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“H264Player.h“
#include?“H264PlayerDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CH264PlayerApp
BEGIN_MESSAGE_MAP(CH264PlayerApp?CWinApp)
//{{AFX_MSG_MAP(CH264PlayerApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CH264PlayerApp?construction
CH264PlayerApp::CH264PlayerApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CH264PlayerApp?object
CH264PlayerApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CH264PlayerApp?initialization
BOOL?CH264PlayerApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CH264PlayerDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????67093??2006-02-09?16:28??H264Pla
?????文件???????2309??2006-02-13?16:26??H264Pla
?????文件??????10509??2006-02-15?15:04??H264Pla
?????文件??????32729??2006-07-28?16:44??H264Pla
?????文件????????340??2006-02-14?14:12??H264Pla
?????文件??????20451??2006-04-04?10:42??H264Pla
?????文件??????11418??2006-02-13?16:28??H264Pla
?????文件??????60980??2006-02-14?09:26??H264Pla
?????文件?????501154??2006-07-28?16:33??H264Pla
?????文件??????20868??2009-09-11?14:11??H264Pla
?????文件???????1189??2009-09-23?11:04??H264Pla
?????文件???????2119??2006-07-28?15:52??H264Pla
?????文件???????5233??2006-07-28?17:14??H264Pla
?????文件????????545??2006-07-28?15:52??H264Pla
?????文件???????1368??2006-07-28?15:52??H264Pla
?????文件?????279552??2009-09-23?11:04??H264Pla
?????文件??????52736??2009-09-23?11:04??H264Pla
?????文件???????1659??2009-09-23?10:00??H264Pla
?????文件???????5413??2006-07-28?16:57??H264Pla
?????文件??????24526??2009-09-23?09:59??H264Pla
?????文件???????2023??2006-07-28?18:36??H264Pla
?????文件????????784??2002-06-11?21:10??H264Pla
?????文件??????41509??2006-02-13?17:36??H264Pla
?????文件???????1708??2006-03-28?15:53??H264Pla
?????文件???????3651??2006-07-28?15:52??H264Pla
?????文件?????278528??2009-09-23?10:00??H264Pla
?????文件???????9466??2009-01-02?08:47??H264Pla
?????文件????5716416??2009-01-02?08:47??H264Pla
?????文件???????2596??2009-01-02?08:47??H264Pla
?????文件??????26659??2009-09-23?09:59??H264Pla
............此處省略17個(gè)文件信息
評(píng)論
共有 條評(píng)論