Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00033 #ifndef OPUS_TYPES_H
00034 #define OPUS_TYPES_H
00035
00036 #define opus_int int
00037 #define opus_int64 long long
00038 #define opus_int8 signed char
00039
00040 #define opus_uint unsigned int
00041 #define opus_uint64 unsigned long long
00042 #define opus_uint8 unsigned char
00043
00044
00045 #if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H))
00046 #include <stdint.h>
00047 # undef opus_int64
00048 # undef opus_int8
00049 # undef opus_uint64
00050 # undef opus_uint8
00051 typedef int8_t opus_int8;
00052 typedef uint8_t opus_uint8;
00053 typedef int16_t opus_int16;
00054 typedef uint16_t opus_uint16;
00055 typedef int32_t opus_int32;
00056 typedef uint32_t opus_uint32;
00057 typedef int64_t opus_int64;
00058 typedef uint64_t opus_uint64;
00059 #elif defined(_WIN32)
00060
00061 # if defined(__CYGWIN__)
00062 # include <_G_config.h>
00063 typedef _G_int32_t opus_int32;
00064 typedef _G_uint32_t opus_uint32;
00065 typedef _G_int16 opus_int16;
00066 typedef _G_uint16 opus_uint16;
00067 # elif defined(__MINGW32__)
00068 typedef short opus_int16;
00069 typedef unsigned short opus_uint16;
00070 typedef int opus_int32;
00071 typedef unsigned int opus_uint32;
00072 # elif defined(__MWERKS__)
00073 typedef int opus_int32;
00074 typedef unsigned int opus_uint32;
00075 typedef short opus_int16;
00076 typedef unsigned short opus_uint16;
00077 # else
00078
00079 typedef __int32 opus_int32;
00080 typedef unsigned __int32 opus_uint32;
00081 typedef __int16 opus_int16;
00082 typedef unsigned __int16 opus_uint16;
00083 # endif
00084
00085 #elif defined(__MACOS__)
00086
00087 # include <sys/types.h>
00088 typedef SInt16 opus_int16;
00089 typedef UInt16 opus_uint16;
00090 typedef SInt32 opus_int32;
00091 typedef UInt32 opus_uint32;
00092
00093 #elif (defined(__APPLE__) && defined(__MACH__))
00094
00095 # include <sys/types.h>
00096 typedef int16_t opus_int16;
00097 typedef u_int16_t opus_uint16;
00098 typedef int32_t opus_int32;
00099 typedef u_int32_t opus_uint32;
00100
00101 #elif defined(__BEOS__)
00102
00103
00104 # include <inttypes.h>
00105 typedef int16 opus_int16;
00106 typedef u_int16 opus_uint16;
00107 typedef int32_t opus_int32;
00108 typedef u_int32_t opus_uint32;
00109
00110 #elif defined (__EMX__)
00111
00112
00113 typedef short opus_int16;
00114 typedef unsigned short opus_uint16;
00115 typedef int opus_int32;
00116 typedef unsigned int opus_uint32;
00117
00118 #elif defined (DJGPP)
00119
00120
00121 typedef short opus_int16;
00122 typedef unsigned short opus_uint16;
00123 typedef int opus_int32;
00124 typedef unsigned int opus_uint32;
00125
00126 #elif defined(R5900)
00127
00128
00129 typedef int opus_int32;
00130 typedef unsigned opus_uint32;
00131 typedef short opus_int16;
00132 typedef unsigned short opus_uint16;
00133
00134 #elif defined(__SYMBIAN32__)
00135
00136
00137 typedef signed short opus_int16;
00138 typedef unsigned short opus_uint16;
00139 typedef signed int opus_int32;
00140 typedef unsigned int opus_uint32;
00141
00142 #elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X)
00143
00144 typedef short opus_int16;
00145 typedef unsigned short opus_uint16;
00146 typedef long opus_int32;
00147 typedef unsigned long opus_uint32;
00148
00149 #elif defined(CONFIG_TI_C6X)
00150
00151 typedef short opus_int16;
00152 typedef unsigned short opus_uint16;
00153 typedef int opus_int32;
00154 typedef unsigned int opus_uint32;
00155
00156 #else
00157
00158
00159 typedef short opus_int16;
00160 typedef unsigned short opus_uint16;
00161 typedef int opus_int32;
00162 typedef unsigned int opus_uint32;
00163
00164 #endif
00165
00166 #endif