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

📄 gvcapturedlg.h

📁 mysee网络直播源代码Mysee Lite是Mysee独立研发的网络视频流媒体播放系统。在应有了P2P技术和一系列先进流媒体技术之后
💻 H
字号:
/*
 *  Openmysee
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
//

#if !defined(AFX_GVCAPTUREDLG_H__B47276CF_24BF_4F76_BA5B_5844030959E5__INCLUDED_)
#define AFX_GVCAPTUREDLG_H__B47276CF_24BF_4F76_BA5B_5844030959E5__INCLUDED_

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

#include "capture.h"
#include "afxwin.h"

/////////////////////////////////////////////////////////////////////////////
// CGVCaptureDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CGVCaptureDlg)
	enum { IDD = IDD_GVCAPTURE_DIALOG };
	CButton	mchkNeedOverlay;
	CButton	mbtnSaveFile;
	CButton	m_chkOnlyAudio;
	CButton	m_chkPreview;
	CComboBox	m_comboxVideoEncoder;
	CComboBox	m_comboxVideoCap;
	CComboBox	m_comboxAudioEncoder;
	CString	mstrSavePath;
	//}}AFX_DATA

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

public:
	void OnNotifyStop();
	void OnNotifyPlay();

// Implementation
private:	
	bool GetTotalPath(char*aszFileName, char* aszTotalPath);
	bool LoadFilterConfig();
	bool SaveFilterConfig();
	HICON m_hIcon;

	// capture devices name
    CStringArray m_strArrayVideoCapDevice;
    // capture devices name
    CStringArray m_strArrayAudioCapDevice;
	// encoder name
	CStringArray m_strArrayVideoEncoders;
	// audio encoder name
	CStringArray m_strArrayAudioEncoders;

	CCaptureGraph m_grfCapture;
	CString m_strCurVideoCapDevice;
    CString m_strCurAudioCapDevice;
	CString m_strCurVideoEncoder;
	CString m_strCurAudioEncoder;

	AM_MEDIA_TYPE* mpTemAudioAMT;//临时媒体类型

	DWORD m_dwTimer;
	DWORD m_dwEscape;
	BOOL m_bPause;

	char mszAVIFilePath[MAX_PATH + 1];

protected:
	// Generated message map functions
	//{{AFX_MSG(CGVCaptureDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnVideocapConfig();
	afx_msg void OnBtnVideoCompressorConfig();
	afx_msg void OnBtnAudioCompressorConfig();
	afx_msg void OnBtnBeginCap();
	afx_msg void OnBtnPauseCap();
	afx_msg void OnBtnStopCap();
	afx_msg void OnChkPreview();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClose();
	afx_msg void OnSelchangeCmbAudioCompressor();
	afx_msg void OnSelchangeCmbVideoCapture();
	afx_msg void OnSelchangeCmbVideoCompressor();
	afx_msg void OnCheckOnlyAudio();
	afx_msg void OnBtnSyscof();
	afx_msg void OnBtnVideocapIniConfig();
	afx_msg void OnChkSave();
	afx_msg void OnBtnSetoverlay();
	afx_msg void OnChkOverlay();
	afx_msg BOOL OnEraseBkgnd( CDC * pDC);
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedCheck1();
	afx_msg void OnBnClickedChkCrossbar();
	// 是否选择CrossBar
	CButton m_bChkCrossBar;
    CComboBox m_comboxAudioCap;
    afx_msg void OnCbnSelchangeCmbAudioCapture();
    afx_msg void OnBnClickedBtnAudioCapConfig();
};

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

#endif // !defined(AFX_GVCAPTUREDLG_H__B47276CF_24BF_4F76_BA5B_5844030959E5__INCLUDED_)

⌨️ 快捷键说明

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