⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pyuvplayerdlg.h

📁 WinCE下显示YUV格式视频的源代码
💻 H
字号:
// PYuvPlayerDlg.h : header file
//

#if !defined(AFX_PYUVPLAYERDLG_H__81F1C924_02DC_445F_87D5_6C921EC2087C__INCLUDED_)
#define AFX_PYUVPLAYERDLG_H__81F1C924_02DC_445F_87D5_6C921EC2087C__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#define IMAGE_WIDTH 176
#define IMAGE_HEIGHT 144

/////////////////////////////////////////////////////////////////////////////
// CPYuvPlayerDlg dialog

class CPYuvPlayerDlg : public CDialog
{
// Construction
public:
	CPYuvPlayerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CPYuvPlayerDlg)
	enum { IDD = IDD_PYUVPLAYER_DIALOG };
	CSliderCtrl	m_ctrlSliderPos;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPYuvPlayerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CPYuvPlayerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonOpen();
	afx_msg void OnButtonPlay();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonSeektobegin();
	afx_msg void OnCustomdrawSliderPos(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDestroy();
	afx_msg void OnButtonSet();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void DisplayFrame(int frame);
	unsigned char* buffer;
	unsigned char* BMPbuffer;
	unsigned char* Swapbuffer;

	int Width;
	int Height;

	int TotalFrames;
	int CurrentFrame;

	HANDLE m_hFile;

	BOOL m_bPlaying;

	PBITMAPINFO m_bmpinfo;
	BITMAPINFO compbmp;
	HDC m_hdc;

	HWND hwnd;

	HBITMAP m_hBitmap;
	

	//HDRAWDIB hdib;
	int local_wnd_x , local_wnd_y;
	int remote_wnd_x , remote_wnd_y;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PYUVPLAYERDLG_H__81F1C924_02DC_445F_87D5_6C921EC2087C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -