www.pudn.com > VC_视频捕捉与帧处理.rar > CaptureTestDoc.h


// CaptureTestDoc.h : interface of the CCaptureTestDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_CAPTURETESTDOC_H__7B7896DA_C8EC_410B_8E5B_18A076D8590D__INCLUDED_) 
#define AFX_CAPTURETESTDOC_H__7B7896DA_C8EC_410B_8E5B_18A076D8590D__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#define	PROCESSOR_ORIGINAL_PAUSE	0 
#define	PROCESSOR_ORIGINAL_PLAY		1 
#define	PROCESSOR_RTP_EDGEDETECT	2 
#define	PROCESSOR_RTP_MOTIONDETECT	3 
 
class CCaptureTestDoc : public CDocument 
{ 
protected: // create from serialization only 
	CCaptureTestDoc(); 
	DECLARE_DYNCREATE(CCaptureTestDoc) 
 
// Attributes 
public: 
	CBitmapEx	m_ImageBitmap; 
	UINT		m_ProcessorMode; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CCaptureTestDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	BOOL RunDetector(LPBITMAPINFO lpBi); 
	BOOL ApplyFilter(LPBITMAPINFO lpBi); 
	void ProcessImage(LPBITMAPINFO lpBi); 
	virtual ~CCaptureTestDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CCaptureTestDoc) 
	afx_msg void OnCaptureRtpEdge(); 
	afx_msg void OnCaptureRtpOriginal(); 
	afx_msg void OnCaptureRtpPause(); 
	afx_msg void OnUpdateCaptureRtpOriginal(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateCaptureRtpPause(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateCaptureRtpEdge(CCmdUI* pCmdUI); 
	afx_msg void OnCaptureRtpMotiondetect(); 
	afx_msg void OnUpdateCaptureRtpMotiondetect(CCmdUI* pCmdUI); 
	afx_msg void OnEditCopy(); 
	afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI); 
	afx_msg void OnFileSaveAs(); 
	afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CAPTURETESTDOC_H__7B7896DA_C8EC_410B_8E5B_18A076D8590D__INCLUDED_)