You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.1 KiB
88 lines
2.1 KiB
3 years ago
|
/******************************************************************************
|
||
|
Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd.
|
||
|
******************************************************************************
|
||
|
File Name : hi_type.h
|
||
|
Version : Initial Draft
|
||
|
Author : Hisilicon multimedia software group
|
||
|
Created : 2005/4/23
|
||
|
Last Modified :
|
||
|
Description : The common data type defination
|
||
|
Function List :
|
||
|
History :
|
||
|
1.Date : 2008/06/28
|
||
|
Author : c42025
|
||
|
Modification: modified definition for HI_S8
|
||
|
|
||
|
2.Date : 2008/10/31
|
||
|
Author : z44949
|
||
|
Modification: Translate the chinese comment
|
||
|
|
||
|
3.Date : 2010/11/03
|
||
|
Author : z44949
|
||
|
Modification: Remove some unnecessary typedef
|
||
|
|
||
|
4.Date : 2011/01/05
|
||
|
Author : p00123320
|
||
|
Modification: Modify definition of HI_VOID, avoid C++ compiler warning.
|
||
|
|
||
|
|
||
|
******************************************************************************/
|
||
|
#ifndef __HI_TYPE_H__
|
||
|
#define __HI_TYPE_H__
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
#if __cplusplus
|
||
|
extern "C"{
|
||
|
#endif
|
||
|
#endif /* __cplusplus */
|
||
|
|
||
|
/*----------------------------------------------*
|
||
|
* The common data type, will be used in the whole project.*
|
||
|
*----------------------------------------------*/
|
||
|
|
||
|
typedef unsigned char HI_U8;
|
||
|
typedef unsigned short HI_U16;
|
||
|
typedef unsigned int HI_U32;
|
||
|
|
||
|
typedef signed char HI_S8;
|
||
|
typedef short HI_S16;
|
||
|
typedef int HI_S32;
|
||
|
|
||
|
#ifndef _M_IX86
|
||
|
typedef unsigned long long HI_U64;
|
||
|
typedef long long HI_S64;
|
||
|
#else
|
||
|
typedef __int64 HI_U64;
|
||
|
typedef __int64 HI_S64;
|
||
|
#endif
|
||
|
|
||
|
typedef char HI_CHAR;
|
||
|
#define HI_VOID void
|
||
|
|
||
|
/*----------------------------------------------*
|
||
|
* const defination *
|
||
|
*----------------------------------------------*/
|
||
|
typedef enum {
|
||
|
HI_FALSE = 0,
|
||
|
HI_TRUE = 1,
|
||
|
} HI_BOOL;
|
||
|
|
||
|
#ifndef NULL
|
||
|
#define NULL 0L
|
||
|
#endif
|
||
|
|
||
|
#define HI_NULL 0L
|
||
|
#define HI_SUCCESS 0
|
||
|
#define HI_FAILURE (-1)
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
#if __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
#endif /* __cplusplus */
|
||
|
|
||
|
#endif /* __HI_TYPE_H__ */
|
||
|
|