ntypes.h

来自「我自己做的ffmpeg的h264的decoder的vc++6.0的完整源代码(一」· C头文件 代码 · 共 90 行

H
90
字号
#ifndef __NTYPES_H__
#define __NTYPES_H__

#include <string.h>
#include <assert.h>

typedef unsigned char  uint8_t;
typedef char           int8_t;
typedef unsigned short uint16_t;
typedef short          int16_t;
typedef unsigned int   uint32_t;
typedef int	           int32_t;
typedef __int64  int64_t;
typedef unsigned __int64 uint64_t;

typedef uint8_t        byte;

#ifndef FALSE
#define FALSE	(0)
#endif

#ifndef TRUE
#define TRUE !FALSE
#endif


#ifndef int64_t_C
#define int64_t_C(c)     (c ## LL)
#define uint64_t_C(c)    (c ## ULL)
#endif


#ifndef INT16_MIN
#define INT16_MIN       (-0x7fff-1)
#endif

#ifndef INT16_MAX
#define INT16_MAX       0x7fff
#endif

#ifndef INT32_MIN
#define INT32_MIN       (-0x7fffffff-1)
#endif

#ifndef INT32_MAX
#define INT32_MAX       0x7fffffff
#endif

#ifndef UINT32_MAX
#define UINT32_MAX      0xffffffff
#endif

#ifndef INT64_MIN
#define INT64_MIN       (-0x7fffffffffffffffLL-1)
#endif

#ifndef INT64_MAX
#define INT64_MAX int64_t_C(9223372036854775807)
#endif

#ifndef UINT64_MAX
#define UINT64_MAX uint64_t_C(0xFFFFFFFFFFFFFFFF)
#endif

#define INT_MAX 2147483647 /*chenyb*/

#ifndef INT_BIT
#    if INT_MAX != 2147483647
#        define INT_BIT 64
#    else
#        define INT_BIT 32
#    endif
#endif

#ifndef INT_MIN
#define INT_MIN (-0x7fffffff-1)
#endif
//#define INT_MAX INT32_MAX


#ifndef NULL
#ifdef  __cplusplus
#define NULL    0
#else
#define NULL    ((void *)0)
#endif
#endif

#endif	/* __NTYPES_H__ */	
/*********ntypes.h*********************************************/

⌨️ 快捷键说明

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