Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

High performance computing from C++ to MMX

, 30 Jul 2003
Boosting you application performance to the optimum by using hardware acceleration.
// 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

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

// Operations
	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
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

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


// Generated message map functions
	afx_msg void OnRunbasic();
	afx_msg void OnRunmmx();
	afx_msg void OnRunopt();
	afx_msg void OnClear();
	afx_msg void OnChecksse();
	afx_msg void OnRunasm();


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

#endif // !defined(AFX_MMXDEMODOC_H__2228F0C8_65DC_4BF7_AC18_76931DDDEB5F__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Vincent Leong77
Web Developer Cortex Imaging
Malaysia Malaysia
Interest in computer vision, biometrics, image processing & software optimizations. Known language C/C++, VC++ MFC, Win32, COM/ATL, Assembly.

| Advertise | Privacy | Mobile
Web02 | 2.8.140922.1 | Last Updated 31 Jul 2003
Article Copyright 2003 by Vincent Leong77
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid