📄 testkitiface.cpp
字号:
/***************************************************************************
* Name : testkitiface.cpp
* Title : MBX WinCE driver GPE class
* Author(s) : Imagination Technologies
* Created : 7th April 2003
*
* Copyright : 2003 by Imagination Technologies. All rights reserved.
* : No part of this software, either material or conceptual
* : may be copied or distributed, transmitted, transcribed,
* : stored in a retrieval system or translated into any
* : human or computer language in any form by any means,
* : electronic, mechanical, manual or other-wise, or
* : disclosed to third parties without the express written
* : permission of Imagination Technologies Limited, Unit 8,
* : HomePark Industrial Estate, King's Langley, Hertfordshire,
* : WD4 8LZ, U.K.
*
* Description : MBX WinCE driver GPE class.
*
* Platform : WinCE
*
* Modifications:-
* $Log: testkitiface.cpp $
*
* --- Revision Logs Removed ---
****************************************************************************/
#include "precomp.h"
#include "testkitiface.h"
#ifdef PVR_CETESTKIT
TestKitIFace g_cTestKitInterface;
DWORD TestKitIFace::IFace_Init()
{
// This has to get a psDevInfo and do some initialization.
// What would be the best way to do that?
PVRGetDeviceInfo (PVRSRV_DEFAULT_DEV_COOKIE, &m_psDevInfo);
m_pclDisplay=new GPEDisplayPipe;
m_pclDisplay->PDP_Init();
return 0;
}
DWORD TestKitIFace::IFace_DeInit()
{
m_pclDisplay->PDP_Deinit();
PVRDestroyDeviceInfo (m_psDevInfo);
delete m_pclDisplay;
return 0;
}
DWORD TestKitIFace::PVRAllocFBMem(ALLOC_CARDMEMIN * psAllocProperties,ALLOC_CARDMEMOUT * psMemAlloc)
{
return PVRSRVAllocDeviceMem( psAllocProperties,psMemAlloc);
}
DWORD TestKitIFace:: PVRFreeFBMem(PMEM_INFO psMemInfo)
{
return PVRSRVFreeCardMem(psMemInfo);
}
#endif
DWORD APIENTRY GetIface(TestKitIFace **pcIface)
{
#ifdef PVR_CETESTKIT
*pcIface=&g_cTestKitInterface;
return g_cTestKitInterface.IFace_Init();
#else
return -1;
#endif
}
/********************************** end of file ******************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -