www.pudn.com > XvidQP.rar > DistributionDlg.h


//{{AFX_INCLUDES() 
#include "CGraphView.h" 
#include "cgraphview.h" 
//}}AFX_INCLUDES 
#if !defined(AFX_DISTRIBUTIONDLG_H__73357CA4_14D4_46B8_A06B_0C0D230AFD3B__INCLUDED_) 
#define AFX_DISTRIBUTIONDLG_H__73357CA4_14D4_46B8_A06B_0C0D230AFD3B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// DistributionDlg.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CDistributionDlg dialog 
 
#include "CXvid.h" 
 
class CDistributionDlg : public CDialog 
{ 
// Construction 
public: 
	CDistributionDlg(CWnd* pParent = NULL);   // standard constructor 
	void Init(CXvid &xvid, CXvid::QUANTS* quants, int nframes); 
// Dialog Data 
	//{{AFX_DATA(CDistributionDlg) 
	enum { IDD = IDD_DISTRIBUTION }; 
	CListCtrl	m_listp; 
	CListCtrl	m_listi; 
	int		m_icount; 
	int		m_pcount; 
	float	m_pavg; 
	float	m_iavg; 
	CGraphView	m_graphg; 
	CGraphView	m_graphi; 
	CGraphView	m_graphp; 
	int		m_imaxfs; 
	int		m_iminfs; 
	int		m_pmaxfs; 
	int		m_pminfs; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDistributionDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	 
	int				nelem; 
	CXvid::QUANTS*	qarray; 
 
	int		ghisto[31]; 
 
	int		phisto[31]; 
	int		pcount; 
	float	pavg; 
	int		pmaxfs; 
	int		pminfs; 
 
	int		ihisto[31]; 
	int		icount; 
	float	iavg; 
	int		imaxfs; 
	int		iminfs; 
			 
	void ParsePFrames(void); 
	void ParseIFrames(void); 
	void ScaleHistograms(void); 
	void DrawHistograms(void); 
 
	// Generated message map functions 
	//{{AFX_MSG(CDistributionDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnButtonDraw(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DISTRIBUTIONDLG_H__73357CA4_14D4_46B8_A06B_0C0D230AFD3B__INCLUDED_)