视频编解码器View.h
上传用户:szklck
上传日期:2007-01-22
资源大小:925k
文件大小:2k
源码类别:

图形图像处理

开发平台:

Visual C++

  1. // 视频编解码器View.h : interface of the CMyView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_VIEW_H__1247F38D_CA2A_4348_AB3D_72E1DC1137BF__INCLUDED_)
  5. #define AFX_VIEW_H__1247F38D_CA2A_4348_AB3D_72E1DC1137BF__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CMyView : public CView
  10. {
  11. protected: // create from serialization only
  12. CMyView();
  13. DECLARE_DYNCREATE(CMyView)
  14. // Attributes
  15. public:
  16. CMyDoc* GetDocument();
  17. // Operations
  18. public:
  19. //率控制
  20. int ratecontrol;
  21. int  targetrate;
  22. float ref_frame_rate;
  23.     //encoding parameters
  24. int bFlag;
  25. CString csTimeElapse;
  26. CString conclusion;
  27. CString m_szFilePathName;
  28. CString m_szFileName;
  29. int MaxFrame;
  30. int m_orgWidth;
  31. int m_orgHeight;
  32. unsigned char * m_pImageData;
  33. int m_Type;
  34. int QP,QPI;
  35. int Pbetween;
  36. int ifPsnr;
  37. double psnrs[3];
  38.     //decoding parameters
  39.     CString DecfileName;
  40. // Overrides
  41. // ClassWizard generated virtual function overrides
  42. //{{AFX_VIRTUAL(CMyView)
  43. public:
  44. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  45. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  46. protected:
  47. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  48. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  49. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. public:
  53. BOOL PeekAndPump();
  54. void CodeBmps();
  55. void CodeYUV();
  56. virtual ~CMyView();
  57. #ifdef _DEBUG
  58. virtual void AssertValid() const;
  59. virtual void Dump(CDumpContext& dc) const;
  60. #endif
  61. protected:
  62. CFont m_font;
  63. // Generated message map functions
  64. protected:
  65. //{{AFX_MSG(CMyView)
  66. afx_msg void OnEncode();
  67. afx_msg void OnDecode();
  68. afx_msg void OnFileOpen();
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. };
  72. #ifndef _DEBUG  // debug version in 视频编解码器View.cpp
  73. inline CMyDoc* CMyView::GetDocument()
  74.    { return (CMyDoc*)m_pDocument; }
  75. #endif
  76. /////////////////////////////////////////////////////////////////////////////
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_VIEW_H__1247F38D_CA2A_4348_AB3D_72E1DC1137BF__INCLUDED_)