DistributionDlg.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:2k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. //{{AFX_INCLUDES()
  2. #include "CGraphView.h"
  3. #include "cgraphview.h"
  4. //}}AFX_INCLUDES
  5. #if !defined(AFX_DISTRIBUTIONDLG_H__73357CA4_14D4_46B8_A06B_0C0D230AFD3B__INCLUDED_)
  6. #define AFX_DISTRIBUTIONDLG_H__73357CA4_14D4_46B8_A06B_0C0D230AFD3B__INCLUDED_
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. // DistributionDlg.h : header file
  11. //
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CDistributionDlg dialog
  14. #include "CXvid.h"
  15. class CDistributionDlg : public CDialog
  16. {
  17. // Construction
  18. public:
  19. CDistributionDlg(CWnd* pParent = NULL);   // standard constructor
  20. void Init(CXvid &xvid, CXvid::QUANTS* quants, int nframes);
  21. // Dialog Data
  22. //{{AFX_DATA(CDistributionDlg)
  23. enum { IDD = IDD_DISTRIBUTION };
  24. CListCtrl m_listp;
  25. CListCtrl m_listi;
  26. int m_icount;
  27. int m_pcount;
  28. float m_pavg;
  29. float m_iavg;
  30. CGraphView m_graphg;
  31. CGraphView m_graphi;
  32. CGraphView m_graphp;
  33. int m_imaxfs;
  34. int m_iminfs;
  35. int m_pmaxfs;
  36. int m_pminfs;
  37. //}}AFX_DATA
  38. // Overrides
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CDistributionDlg)
  41. protected:
  42. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. protected:
  46. int nelem;
  47. CXvid::QUANTS* qarray;
  48. int ghisto[31];
  49. int phisto[31];
  50. int pcount;
  51. float pavg;
  52. int pmaxfs;
  53. int pminfs;
  54. int ihisto[31];
  55. int icount;
  56. float iavg;
  57. int imaxfs;
  58. int iminfs;
  59. void ParsePFrames(void);
  60. void ParseIFrames(void);
  61. void ScaleHistograms(void);
  62. void DrawHistograms(void);
  63. // Generated message map functions
  64. //{{AFX_MSG(CDistributionDlg)
  65. virtual BOOL OnInitDialog();
  66. afx_msg void OnButtonDraw();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_DISTRIBUTIONDLG_H__73357CA4_14D4_46B8_A06B_0C0D230AFD3B__INCLUDED_)