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

📄 mmxdemodoc.h

📁 CPU 多媒体指令(MMX、SSE等)应用实例
💻 H
字号:
// MMXDemoDoc.h : interface of the CMMXDemoDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MMXDEMODOC_H__2228F0C8_65DC_4BF7_AC18_76931DDDEB5F__INCLUDED_)
#define AFX_MMXDEMODOC_H__2228F0C8_65DC_4BF7_AC18_76931DDDEB5F__INCLUDED_

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

#include "miniview.h"
#include "Elapsed.h"

class CMMXDemoDoc : public CDocument
{
protected: // create from serialization only
	CMMXDemoDoc();
	DECLARE_DYNCREATE(CMMXDemoDoc)

// Attributes
public:
	BYTE	*m_pImg1, *m_pImg2, *m_pImg;
	int		m_iWidth, m_iHeight, m_iSize;
	CElapsed		m_el;

// Operations
public:
	CFrameWnd *CreateNewView(CRuntimeClass *pViewClass);
	// NOTE : View Pointer is used for easy access only
	CMiniView		*m_pMiniView1, *m_pMiniView2;
	void GenerateImage();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMMXDemoDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMMXDemoDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMMXDemoDoc)
	afx_msg void OnRunbasic();
	afx_msg void OnRunmmx();
	afx_msg void OnRunopt();
	afx_msg void OnClear();
	afx_msg void OnChecksse();
	afx_msg void OnRunasm();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_MMXDEMODOC_H__2228F0C8_65DC_4BF7_AC18_76931DDDEB5F__INCLUDED_)

⌨️ 快捷键说明

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