www.pudn.com > Videodisplay.rar > VideoView.h


// VideoView.h : interface of the CVideoView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_VIDEOVIEW_H__160391F0_73B6_454F_92C9_C2665F055B38__INCLUDED_) 
#define AFX_VIDEOVIEW_H__160391F0_73B6_454F_92C9_C2665F055B38__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "fstream.h" 
 
class CVideoView : public CScrollView 
{ 
protected: // create from serialization only 
	CVideoView(); 
	DECLARE_DYNCREATE(CVideoView) 
 
// Attributes 
public: 
	CVideoDoc* GetDocument(); 
 
// Operations 
public:	 
	void iwt(CDC* pDC); //反量化+IDWT 
	int frequency;     //播放频率 
	int pels,lines;  //行列 ,表明是CIF还是QCIF 
	void showVideo(CDC* pDC);   //播放视频序列 
	void delay(int n);       //延续时间函数 
	void create();        //生成图象头文件 
	HANDLE hloc; 
	LPBITMAPINFO BmpInfo;   //图象头文件 
	unsigned char* m_pDataRGB; //最后要显示的RGB数据 
    int bFlag;         //表示程序运行的状态 
	CString str_FileName;          //文件名字, 
	void RLCandHuffman(CString str_Save);   //行程+Huffman编码 
    void RlcHuffDe(CDC* pDC);   //行程+huffman解码 
	int nFrameNum;     //祯数 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CVideoView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
 
	virtual ~CVideoView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CVideoView) 
	afx_msg void OnPlayYuv(); 
	afx_msg void OnWtSpihtEncode(); 
	afx_msg void OnWtSpihtDecode(); 
	afx_msg void OnPlayWt(); 
	afx_msg void OnMcIntEncode(); 
	afx_msg void OnIntMcDecode(); 
	afx_msg void OnMcvqEncode(); 
	afx_msg void OnMcvqDecode(); 
	afx_msg void OnIntroFrame(); 
//	afx_msg void OnInterFrame(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in VideoView.cpp 
inline CVideoDoc* CVideoView::GetDocument() 
   { return (CVideoDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_VIDEOVIEW_H__160391F0_73B6_454F_92C9_C2665F055B38__INCLUDED_)