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

📄 dp_types.h

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 H
字号:
/*********************************************************************************
 *********************************************************************************
 **
 ** Name        : dp_types.h
 ** Title       : Platform specific type definition module for Display Pipeline
 ** Author      : T. Whalley
 ** Created     : June 2001
 ** 
 ** Copyright   : 2001 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 : This file contains definitions for all types used in the
 **               Display Pipeline API which may be platform specific. If one
 **               or more of these types is not supported by the target
 **               platform, the definition in this file can be changed as
 **               as necessary.
 **
 ** Platform    : Platform independent	(modify 'types.h' accordingly)
 ** $Log: dp_types.h $
 **
 **  --- Revision Logs Removed --- 
 **
 *********************************************************************************
 *********************************************************************************/

#if !defined (__DP_TYPES_H__)
#define __DP_TYPES_H__

/* The module string is included to support the use of the ANSI C library		*/
/* functions 'memset' and 'memcpy'. If alternative versions of these functions	*/
/* are provided then the library inclusion can be removed.						*/

/* Math.h is included to support 'pow', which is used for gamma data generation	*/

#include		<string.h>
#include		<math.h>
#include		"img_defs.h"
//#include 		"mithra_reg_defs.h"

#define		DP_INT_8				IMG_INT8
#define		DP_PINT_8				IMG_PINT8
#define		DP_UINT_8				IMG_UINT8
#define		DP_PUINT_8				IMG_PUINT8
#define		DP_INT_16				IMG_INT16
#define		DP_PINT_16				IMG_PINT16
#define		DP_UINT_16				IMG_UINT16
#define		DP_PUINT_16				IMG_PUINT16
#define		DP_INT_32				IMG_INT32
#define		DP_PINT_32				IMG_PINT32
#define		DP_UINT_32				IMG_UINT32
#define		DP_PUINT_32				IMG_PUINT32

#define		DP_FLOAT				IMG_FLOAT
#define		DP_PFLOAT				IMG_PFLOAT

#define		DP_VOID					IMG_VOID
#define		DP_PVOID				IMG_PVOID

typedef		double					DP_DOUBLE,	* DP_PDOUBLE;

typedef		enum	tag_bool
{	
		DP_FALSE	=	0x00,
		DP_TRUE		=	0x01
} DP_BOOL, * DP_PBOOL;

typedef		enum	DP_tag_TriStateSwitch
{
	DP_ON		=	0x00,
	DP_OFF,
	DP_IGNORE

} DP_TriStateSwitch, * DP_pTriStateSwitch;


#define		DP_COS					cos
#define		DP_SIN					sin

#define		DP_NULL					0x00000000

#define		DP_MEMSET(A, B, C)		memset	(A, B, C)
#define		DP_MEMCPY(A, B, C)		memcpy	(A, B, C)
#define		DP_POW(A, B)			pow		(A, B)

#endif	/* __DP_TYPES_H__ */


/*--------------------------- End of File --------------------------------*/

⌨️ 快捷键说明

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