资源简介
采用的是API函数,可以实现视频的预览,冻结画面、解冻画面、采集视频,保存视频和设置相关视频采集的格式、视频源的选择等
代码片段和文件信息
// CaptureVideo.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “CaptureVideo.h“
#include “CaptureVideoDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCaptureVideoApp
BEGIN_MESSAGE_MAP(CCaptureVideoApp CWinApp)
//{{AFX_MSG_MAP(CCaptureVideoApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCaptureVideoApp construction
CCaptureVideoApp::CCaptureVideoApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCaptureVideoApp object
CCaptureVideoApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCaptureVideoApp initialization
BOOL CCaptureVideoApp::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
CCaptureVideoDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21504 2011-06-02 09:28 capture video\CaptureVideo.aps
文件 1474 2011-07-09 09:33 capture video\CaptureVideo.clw
文件 2147 2003-07-19 22:39 capture video\CaptureVideo.cpp
文件 4326 2003-07-20 14:52 capture video\CaptureVideo.dsp
文件 547 2003-07-19 22:39 capture video\CaptureVideo.dsw
文件 1390 2003-07-19 22:39 capture video\CaptureVideo.h
文件 99328 2011-07-09 09:33 capture video\CaptureVideo.ncb
文件 60928 2011-07-09 09:33 capture video\CaptureVideo.opt
文件 1772 2011-06-01 22:24 capture video\CaptureVideo.plg
文件 5925 2003-07-20 15:49 capture video\CaptureVideo.rc
文件 7622 2005-03-04 21:35 capture video\CaptureVideoDlg.cpp
文件 1698 2003-07-20 15:41 capture video\CaptureVideoDlg.h
文件 110647 2011-06-01 22:24 capture video\Debug\CaptureVideo.exe
文件 189456 2011-06-01 22:24 capture video\Debug\CaptureVideo.ilk
文件 12994 2011-06-01 22:24 capture video\Debug\CaptureVideo.obj
文件 5507044 2011-06-01 22:24 capture video\Debug\CaptureVideo.pch
文件 279552 2011-06-01 22:24 capture video\Debug\CaptureVideo.pdb
文件 3020 2011-06-01 22:24 capture video\Debug\CaptureVideo.res
文件 39962 2011-06-01 22:24 capture video\Debug\CaptureVideoDlg.obj
文件 105429 2011-06-01 22:24 capture video\Debug\StdAfx.obj
文件 214016 2011-06-12 22:05 capture video\Debug\vc60.idb
文件 397312 2011-06-01 22:24 capture video\Debug\vc60.pdb
文件 3687 2003-07-19 22:39 capture video\ReadMe.txt
文件 1078 2003-07-20 14:27 capture video\RES\CaptureVideo.ico
文件 404 2003-07-19 22:39 capture video\RES\CaptureVideo.rc2
文件 1058 2003-07-20 15:42 capture video\Resource.h
文件 214 2003-07-19 22:39 capture video\StdAfx.cpp
文件 1054 2003-07-19 22:39 capture video\StdAfx.h
文件 122740 1996-05-06 18:14 capture video\VFW32.LIB
目录 0 2011-06-01 22:24 capture video\Debug
............此处省略5个文件信息
评论
共有 条评论