📄 videocompressdlg.h
字号:
// VideoCompressDlg.h : header file
//
#if !defined(AFX_VIDEOCOMPRESSDLG_H__08242D67_521F_40D5_B63B_5524E66F1584__INCLUDED_)
#define AFX_VIDEOCOMPRESSDLG_H__08242D67_521F_40D5_B63B_5524E66F1584__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CVideoCompressDlg dialog
#include <dshow.h>
#pragma comment (lib,"Strmiids")
#pragma comment (lib,"quartz")
#include <uuids.h>
#include <strmif.h>
class CVideoCompressDlg : public CDialog
{
// Construction
public:
void OnGraphNotify(WPARAM wParam,LPARAM lParam);
CVideoCompressDlg(CWnd* pParent = NULL); // standard constructor
//Add new members
IMediaControl *pMediaControl ; //媒体控制
IMoniker *pMoniker; //监视器
IBaseFilter *pSrc ;
IBaseFilter *pMux ,*pWriter,*pCompress; //过滤器
IFileSinkFilter2 *pSink ; //文件接收
IGraphBuilder *pGraph; //过滤图表
IMediaEventEx *pEvent;
BOOL m_Completed; //压缩是否完成
BOOL m_IsCompressing; //压缩是否正在进行
REFERENCE_TIME m_TotalTime; //压缩总时间
IMediaSeeking *pSeek;
IPin* FindPin(IBaseFilter *pFilter, PIN_DIRECTION dir);
// Dialog Data
//{{AFX_DATA(CVideoCompressDlg)
enum { IDD = IDD_VIDEOCOMPRESS_DIALOG };
CStatic m_Progress;
CEdit m_DesFile;
CEdit m_SourceFile;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVideoCompressDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CVideoCompressDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnSourceBrown();
afx_msg void OnDesBrown();
afx_msg void OnStartCompress();
virtual void OnCancel();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VIDEOCOMPRESSDLG_H__08242D67_521F_40D5_B63B_5524E66F1584__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -