testov511dlg.h

来自「Windows CE.net USB camera」· C头文件 代码 · 共 78 行

H
78
字号
// TestOv511Dlg.h : header file
//

#if !defined(AFX_TESTOV511DLG_H__564F1C87_A1A1_4A88_99A1_6592A1C5AFE0__INCLUDED_)
#define AFX_TESTOV511DLG_H__564F1C87_A1A1_4A88_99A1_6592A1C5AFE0__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "Ov511CamSDK.h"

#define mmax(a, b)        ((a) > (b) ? (a) : (b))
#define mmin(a, b)        ((a) < (b) ? (a) : (b))

#define IMAGE_WIDTH  320
#define IMAGE_HEIGHT 240

/////////////////////////////////////////////////////////////////////////////
// CTestOv511Dlg dialog

class CTestOv511Dlg : public CDialog
{
// Construction
public:
	CTestOv511Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTestOv511Dlg)
	enum { IDD = IDD_TESTOV511_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestOv511Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTestOv511Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnOpen();
	afx_msg void OnClose();
	afx_msg void OnLedOn();
	afx_msg void OnLedOff();
	afx_msg void OnLedRead();
	afx_msg void OnInitIsoc();
	afx_msg void OnStartCapture();
	afx_msg void OnStopCapture();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:

	HANDLE hCam;

	unsigned char *pIsochData;
	unsigned char *pRawFrameData;
	unsigned char *pRealFrameData;
	unsigned char *pBmpData;

	void YUV2RGB(int yy, int uu, int vv, int width, int height, int SegNum);
	void ov511_parse_data_yuv420(unsigned char *pIn0,unsigned char *pOut0, int iOutY, int iOutUV, int iWidth, int iHeight);

	int remote_wnd_x , remote_wnd_y;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTOV511DLG_H__564F1C87_A1A1_4A88_99A1_6592A1C5AFE0__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?