📄 cameravideodlg.h
字号:
// CameraVideoDlg.h : header file
//
#if !defined(AFX_CAMERAVIDEODLG_H__DA9E1B41_ACF3_46FC_BFAC_7757030E60C6__INCLUDED_)
#define AFX_CAMERAVIDEODLG_H__DA9E1B41_ACF3_46FC_BFAC_7757030E60C6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "VideoCapture.h"
#include "Encoder/libr263.h"
#include "Decoder/tmndec.h"
#include "IocpModeSvr.h"
/////////////////////////////////////////////////////////////////////////////
// CCameraVideoDlg dialog
class CCameraVideoDlg : public CDialog
{
// Construction
public:
CCameraVideoDlg(CWnd* pParent = NULL); // standard constructor
VideoCapture *vidcap;
BOOL isVideo , isAudio , isStarted , isCaptureStarted;
BOOL isViewLocalVideo,isViewRemoteVideo;
BOOL isAudioSend,isAudioReceive;
BOOL isVideoSend,isVideoReceive;
PBITMAPINFO m_bmpinfo;
BITMAPINFO compbmp;
HDC m_hdc;
HWND hwnd;
HDRAWDIB hdib;
int local_wnd_x , local_wnd_y;
int remote_wnd_x , remote_wnd_y;
// Compression parameters....
CParam cparams;
// Buffer for storing YUV data....
unsigned int yuv[ QCIF_WIDTH*QCIF_HEIGHT + (QCIF_WIDTH*QCIF_HEIGHT)/2 ];
//服务器
CIocpModeSvr* m_pServer;
BOOL m_bRequest;
//回调函数
static void OnDataArrive(unsigned long sIP, SOCKET sClient, char * pData, unsigned long DataLength,DWORD userdata);
// Dialog Data
//{{AFX_DATA(CCameraVideoDlg)
enum { IDD = IDD_CAMERAVIDEO_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCameraVideoDlg)
public:
virtual void SendVideo(BYTE *data,int size);
virtual void DisplayRemoteFrame(unsigned char *data,int size);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCameraVideoDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
virtual void OnOK();
afx_msg void OnDestroy();
afx_msg LONG OnDataArrivedMsg(WPARAM wParam,LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAMERAVIDEODLG_H__DA9E1B41_ACF3_46FC_BFAC_7757030E60C6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -