www.pudn.com > MediaPlayer.rar > MediaPlayerDlg.h, change:2007-05-24,size:3655b


// MediaPlayerDlg.h : header file 
// 
 
 
#if !defined(AFX_MediaPlayerDLG_H__112437E9_30A1_43DB_89D1_74CDFBC09EEA__INCLUDED_) 
#define AFX_MediaPlayerDLG_H__112437E9_30A1_43DB_89D1_74CDFBC09EEA__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CMediaPlayerDlg dialog 
 
#include  
#include "CDXGraph.h" 
#include "MediaPlayer.h" 
#include "MySliderControl.h" 
#include "MyBmp.h" 
#include "BitmapDialog.h" 
#include "BmpProgCtrl.h" 
#include  
 
#define UM_ONSHOWSOURCEBITMAP   WM_USER+200 
#define SLIDER_TIMER   100  //specify the timer 
#define GRAP_TIMER 200      //specify the timer 
 
class CMediaPlayerDlg : public CBitmapDialog 
{ 
// Construction 
public:	 
	long bitmapSize; 
	void FillResult(int start,int end); 
	CStatic   *cs; 
	void GetFilter(CDXGraph *Filter); 
	CDXGraph	*  mFilterGraph; 
	void ShowResult(double curTime); 
	CRect   DlgRect; 
	BOOL    Show; 
	BOOL    Open; 
	clock_t start, end; 
	double Grap_Time; 
	unsigned char* ImgData; 
	float  * TepImg ; 
//	unsigned char* Image; 
	int * Hist_hsv ; 
	int N; 
	int loop; 
	int *result ; 
	MyBmp bmpInstance; 
	int * Hist_hsv1 ; 
	int num_frame; 
	long Width,Height; 
	double time,length; 
	double SourceTime; 
	CToolTipCtrl    m_ToolTip; 
	CBitmapButton   m_BtnPLAY,m_BtnOPEN,m_BtnPAUSE,m_BtnSTOP,m_BtnGRAP,m_BtnCLOSE,m_BtnABRUPT,m_BtnGRADUAL,m_BtnSHOW; 
	CMediaPlayerDlg(CWnd* pParent = NULL);	// standard constructor 
    ~CMediaPlayerDlg(); 
// Dialog Data 
	//{{AFX_DATA(CMediaPlayerDlg) 
	enum { IDD = IDD_MEDIAPLAYER_DIALOG }; 
	CBmpProgCtrl	m_Progress; 
	CMySliderControl	m_SliderAudio; 
	CMySliderControl	mSlider; 
	CStatic	m_VideoWindow; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMediaPlayerDlg) 
	public: 
	virtual BOOL DestroyWindow(); 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON       m_hIcon; 
	 
	CString     filename; 
	UINT        mSliderTimer; 
	 
	UINT        mGrapTimer; 
	int m_begin; 
	int m_end; 
	int m_rate; 
	bool b_time; 
	bool b_frame; 
	int num; 
 
	//*****************grap image 
	void CreateFilterGraph(void); 
	void DestroyFilterGraph(void); 
	void RestoreFromFullScreen(void); 
	//void SetTimeFormat(const GUID *pFormat); 
 
 
	// Generated message map functions 
	//{{AFX_MSG(CMediaPlayerDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnButtonOpen(); 
	afx_msg void OnButtonPause(); 
	afx_msg void OnButtonPlay(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); 
	afx_msg void OnButtonStop(); 
	afx_msg void OnButtonGrap(); 
	afx_msg void OnButtonClose(); 
	afx_msg void OnButtonShotDetection(); 
	afx_msg void OnButtonKeyFrameExtraction(); 
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 
	afx_msg void OnButtonShow(); 
	afx_msg void OnNextPre(); 
	afx_msg void OnShowSourceBitmap(); 
	//}}AFX_MSG 
	afx_msg LRESULT OnGraphNotify(WPARAM inWParam, LPARAM inLParam); 
	DECLARE_MESSAGE_MAP() 
	 
	 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MediaPlayerDLG_H__112437E9_30A1_43DB_89D1_74CDFBC09EEA__INCLUDED_)