資源簡介
一個攝像頭驅動的類,使用方便。兼容所有支持dshow的攝像頭。
代碼片段和文件信息
//?CaptureVideo.cpp:?implementation?of?the?CCaptureVideo?class.
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“CaptureVideo.h“
#include?“dibapi.h“
#include?“SampleGrabberCB.h“
#include?se.h>
#include?
#include?
#include?
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCaptureVideo::CCaptureVideo()
{
if(FAILED(CoInitialize(NULL)))
{
//AfxMessageBox(L“CCaptureVideo?CoInitialize?Failed!\r\n“);?
return;
}
m_hWnd?=?NULL;
m_VideoWindow?=?NULL;
m_Med
評論
共有 條評論