Skip to content

Instantly share code, notes, and snippets.

@commshare
Last active October 15, 2015 06:45
Show Gist options
  • Select an option

  • Save commshare/46d6d331918fbbc99be6 to your computer and use it in GitHub Desktop.

Select an option

Save commshare/46d6d331918fbbc99be6 to your computer and use it in GitHub Desktop.
hisi camera数据类型定义
typedef unsigned char HI_U8; /*无符号字符有两个名字*/
typedef unsigned char HI_UCHAR;
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;
typedef char* HI_PCHAR;
typedef float HI_FLOAT;
typedef double HI_DOUBLE;
typedef void HI_VOID;
typedef unsigned long HI_SIZE_T; /*size_t 是无符号long么?*/
typedef unsigned long HI_LENGTH_T;
typedef enum {
HI_FALSE = 0,
HI_TRUE = 1,
} HI_BOOL;
#ifndef NULL
#define NULL 0L /*有个L*/
#endif
#define HI_NULL 0L
#define HI_NULL_PTR 0L
#define HI_SUCCESS 0
#define HI_FAILURE (-1) /*不是false,而是表示失败,使用-1 ,这个跟我的返回值意义一样*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment