GVCaptureDlg.h
资源名称:p2p_vod.rar [点击查看]
上传用户:liguizhu
上传日期:2015-11-01
资源大小:2422k
文件大小:4k
源码类别:
P2P编程
开发平台:
Visual C++
- /*
- * 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_)