⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 videonetdlg.h

📁 一个点对点视频会议的程序_VideoNet
💻 H
字号:
// VideoNetDlg.h : header file
//

#if !defined(AFX_VIDEONETDLG_H__B0986306_5F44_11D6_8897_000B2B0F84B6__INCLUDED_)
#define AFX_VIDEONETDLG_H__B0986306_5F44_11D6_8897_000B2B0F84B6__INCLUDED_

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


#include "DSocket.h"
#include "ConnectDlg.h"
#include "RecordSound.h"
#include "VideoCapture.h"
#include "PlaySound.h"
#include "Volume.h"
#include "Encoder/libr263.h"
#include "Decoder/tmndec.h"



class CVideoNetDlg : public CDialog
{

	// Attributes
	public:
	
	VideoCapture *vidcap;
	BOOL isVideo , isAudio , isStarted , isCaptureStarted;
	BOOL isViewLocalVideo,isViewRemoteVideo;
	BOOL isAudioSend,isAudioReceive;
	BOOL isVideoSend,isVideoReceive;

	PBITMAPINFO m_bmpinfo;
	BITMAPINFO compbmp;
	RecordSound *record;
	PlaySound1 *play;
	HDC m_hdc;

	CMenu *menu;
	CButton *bsend;
	CListBox *list;
	CStdioFile log;

	HICON m_hIcon;
	HWND hwnd;

	ConnectDlg *connectdlg;	
	
	DSocket dcontrol,daudio,dvideo,dtext;

	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 ];




	
// Construction
public:
	CVideoNetDlg(CWnd* pParent = NULL);	// standard constructor

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

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

// Implementation




	// Generated message map functions
	//{{AFX_MSG(CVideoNetDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnCancel();
	
	// Conference menu handlers
	void OnConnect();
	void OnDisconnect();
	
	// View menu handlers
	void OnViewLocal();
	void OnViewRemote();
	
	
	//Audio menu handlers
	void OnVolumeControl();
	void OnAudioSend();
	void OnAudioReceive();
	

	// Video menu handlers
	void OnVideoSend();
	void OnVideoReceive();
	

	// Help menu handlers
	void OnAbout();
		
	void StartConference();
	
	void DestroyConference();

	void OnSendMesg();

	void DisplayMesg(char *str);

	void SendVideo(BYTE *data,int size);

	void DisplayRemoteFrame(unsigned char *data,int size);

	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_VIDEONETDLG_H__B0986306_5F44_11D6_8897_000B2B0F84B6__INCLUDED_)

⌨️ 快捷键说明

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