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

📄 pvr2dif.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/**************************************************************************
<module>
* Name         : pvr2dif.h
* Title        : PVR2DIF prototypes
* Author       : Aaron Licata
* Created      : 18/10/2004
*
* Copyright    : 2003 by Imagination Technologies Limited.
*                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  : Utility library for PVR2D HGA shared memory, pseudo-static storage, device enumeration, ... 
*
* Platform     : Symbian
*
* $Log: pvr2dif.h $
*
</module>
**************************************************************************/
#ifndef _PVR2DIF_H_
#define _PVR2DIF_H_

#include <e32def.h>

#include "img_types.h"
#include "img_defs.h"
#include <pvr2d.h>

/* global/shared data to be seen by different processes */
typedef struct 
{
    /* global copy from PVR2DMEMINFO
    :
	void			*pBase;
	unsigned long	ui32MemSize;
	unsigned long	ui32PhysAddr;
	void			*psMemInfo;
	
	int		flags;  1 : allocated (or wrapped)
					2 : pixmap (or raw mem)
	
    The following are valid only when flags indicates pixmap :
    ---------------------------------------------------------
	unsigned long ui32SurfaceStride;
	unsigned int uiDisplayMode;
	unsigned int uiBPP;             
	unsigned int uiWidth;
	unsigned int uiHeight;
    */
    PVR2DMEMINFO sMemInfo;

    /* info valid only for screen (destination bitmap):
       -----------------------------------------------
    */
	unsigned long ui32SurfaceStride;
	unsigned int uiDisplayMode;
	unsigned int uiBPP;             
	unsigned int uiWidth;
	unsigned int uiHeight;    

    
} TPVRHGAGlobalData;




#if defined (__cplusplus)
extern "C" {
#endif
    
/* pseudo-static data: heap attached to TLS */
TInt IMG_CALLCONV PVRHGAMallocGlobalData(TInt* pBitmapHandle);
void IMG_CALLCONV PVRHGAFreeGlobalData(TInt iBitmapHandle);

TPVRHGAGlobalData* IMG_CALLCONV PVRHGAGetGlobalData(TInt iBitmapHandle);

/* app process just maps to global heap */
TInt IMG_CALLCONV PVRHGAOpenMapping(void);
void IMG_CALLCONV PVRHGACloseMapping(void);

/* WServ process (local heap is pseudo-static storage) */
PVR2DCONTEXTHANDLE IMG_CALLCONV PVRHGAGetContextHandleFromLocalHeap(void); // cannot add context handle to class

/* app process */ 
PVR2DCONTEXTHANDLE IMG_CALLCONV PVRHGACreateContext(void);// possible to add context handle to class

void IMG_CALLCONV PVRHGADestroyContext(PVR2DCONTEXTHANDLE hContextHandle);

void IMG_CALLCONV PVR2DIF_Trace(const char* msg);

#if defined (__cplusplus)



}
#endif

#endif	/* _PVRHGA_H__ */

⌨️ 快捷键说明

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