資源簡介
使用ffmpeg api解碼h264視頻,并且將解碼后的視頻圖像用opencv封裝的接口進行顯示,另外,程序還封裝了將每幀圖像保存成bmp文件的接口。

代碼片段和文件信息
//?myshiyan.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“myshiyan.h“
#include?“myshiyanDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMyshiyanApp
BEGIN_MESSAGE_MAP(CMyshiyanApp?CWinApp)
//{{AFX_MSG_MAP(CMyshiyanApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMyshiyanApp?construction
CMyshiyanApp::CMyshiyanApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMyshiyanApp?object
CMyshiyanApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMyshiyanApp?initialization
BOOL?CMyshiyanApp::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
CMyshiyanDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????7276032??2008-04-12?22:21??h264\MFC解碼h264視屏\avcodec.dll
?????文件??????10752??2008-04-12?22:21??h264\MFC解碼h264視屏\avdevice.dll
?????文件??????14336??2008-04-12?22:21??h264\MFC解碼h264視屏\avfilter.dll
?????文件?????666624??2008-04-12?22:21??h264\MFC解碼h264視屏\avformat.dll
?????文件??????57344??2008-04-12?22:21??h264\MFC解碼h264視屏\avutil.dll
?????文件?????843824??2006-10-18?21:49??h264\MFC解碼h264視屏\cv100.dll
?????文件?????598067??2006-10-18?21:50??h264\MFC解碼h264視屏\cvaux100.dll
?????文件??????49152??2006-10-19?17:16??h264\MFC解碼h264視屏\cvcam100.dll
?????文件????1011764??2006-10-18?21:49??h264\MFC解碼h264視屏\cxcore100.dll
?????文件????1605677??2010-09-27?16:14??h264\MFC解碼h264視屏\cxcore100d.dll
?????文件?????131133??2006-10-18?21:50??h264\MFC解碼h264視屏\cxts001.dll
?????文件?????626741??2006-10-18?21:50??h264\MFC解碼h264視屏\highgui100.dll
?????文件?????196608??2006-02-28?18:04??h264\MFC解碼h264視屏\libguide40.dll
?????文件?????249904??2006-10-18?21:50??h264\MFC解碼h264視屏\ml100.dll
?????文件??????35860??2012-07-09?22:45??h264\MFC解碼h264視屏\myshiyan.aps
?????文件???????1263??2012-07-11?19:59??h264\MFC解碼h264視屏\myshiyan.clw
?????文件???????2091??2012-07-02?23:01??h264\MFC解碼h264視屏\myshiyan.cpp
?????文件???????4284??2012-07-02?23:47??h264\MFC解碼h264視屏\myshiyan.dsp
?????文件????????522??2012-07-02?23:01??h264\MFC解碼h264視屏\myshiyan.dsw
?????文件???????1346??2012-07-02?23:01??h264\MFC解碼h264視屏\myshiyan.h
?????文件??????74752??2012-07-12?15:36??h264\MFC解碼h264視屏\myshiyan.ncb
?????文件??????49664??2012-07-12?15:36??h264\MFC解碼h264視屏\myshiyan.opt
?????文件???????3423??2012-07-12?15:29??h264\MFC解碼h264視屏\myshiyan.plg
?????文件???????5473??2012-07-09?22:45??h264\MFC解碼h264視屏\myshiyan.rc
?????文件??????18133??2012-07-12?10:47??h264\MFC解碼h264視屏\myshiyanDlg.cpp
?????文件???????2197??2012-07-11?19:36??h264\MFC解碼h264視屏\myshiyanDlg.h
?????文件??????89273??2008-02-16?17:18??h264\MFC解碼h264視屏\pthreadGC2.dll
?????文件???????3615??2012-07-02?23:01??h264\MFC解碼h264視屏\ReadMe.txt
?????文件???????1078??2012-07-02?23:01??h264\MFC解碼h264視屏\res\myshiyan.ico
?????文件????????400??2012-07-02?23:01??h264\MFC解碼h264視屏\res\myshiyan.rc2
............此處省略12個文件信息
- 上一篇:sii9135芯片手冊
- 下一篇:軟件工程導(dǎo)論綜合復(fù)習(xí)題
評論
共有 條評論