Download Compaq iPAQ h3760 Datasheet

Transcript
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVideoProcPPCView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CVideoProcPPCView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Put User defined variable here Æ
UINT TimerID;
// Timer ID
UINT TimerStep; // Timer Step for turn on/off timer
BYTE* YFrameData; // memory space for Y data
BYTE* CbFrameData;
// memory space for Cb data
BYTE* CrFrameData; // memory space for Cr data
FILE *pInputFile; // File
BITMAPINFOHEADER bmiHeader; //Bitmap header infom
BITMAPINFO bmInfo;
// bitmoap info
int VideoRate; // Video refresh rate
int VideoFormat; // Video Format,
int VideoWidth; // Video width in a frame
int VideoHeight; // Video hdight in a frame
int VideoBytes; // Total bytes for YUV in a frame
long int NumFrame; // total number of frame in a file
int VideoPixel; // Total number of pixel in a frame
int CVideoPixel; // Number of U(or V) pixel in a frame, for 4:2:0, it's equal to VideoPixel/4
long int YUVFileOffSet; // current frame offset in a file
long int VideoStartIndex; // current frame index of video for displaying
int SliderMax;
// Max value of slider
int SliderMin;
// Min value of slider
CBitmap *bitmap;
// CBITMAP
BYTE* dibits;
// Å
// Generated message map functions
protected:
//{{AFX_MSG(CVideoProcPPCView)
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnBtnOpenfile();
afx_msg void OnBtnPaly();
afx_msg void OnBtnStop();
afx_msg void OnDblclkListRate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in VideoProcPPCView.cpp
inline CVideoProcPPCDoc* CVideoProcPPCView::GetDocument()
{ return (CVideoProcPPCDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
ENEE408G Fall 2003 (Update 09/23/2003)
Mobile Computing and Pocket PC Programming
40