From d35a8221a34a562a88bdb7c947a7018080539c59 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Wed, 1 Apr 2009 12:05:34 +0000 Subject: Ticket #774: - Initial source of G.722.1/Annex C integration. - Disabled some "odd" modes of L16 codec (11kHz & 22kHz mono & stereo) while releasing some payload types. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2563 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/g7221/common/stl-files/typedef.h | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 third_party/g7221/common/stl-files/typedef.h (limited to 'third_party/g7221/common/stl-files/typedef.h') diff --git a/third_party/g7221/common/stl-files/typedef.h b/third_party/g7221/common/stl-files/typedef.h new file mode 100644 index 00000000..6c06541f --- /dev/null +++ b/third_party/g7221/common/stl-files/typedef.h @@ -0,0 +1,55 @@ +/* + =========================================================================== + File: TYPEDEF.H v.1.0 - 26.Jan.2000 + =========================================================================== + + ITU-T STL BASIC OPERATORS + + TYPE DEFINITION PROTOTYPES + + History: + 26.Jan.00 v1.0 Incorporated to the STL from updated G.723.1/G.729 + basic operator library (based on basic_op.h) + ============================================================================ +*/ + +#ifndef TYPEDEF_H +#define TYPEDEF_H "$Id $" + +#include + +#if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__) || defined(__CYGWIN__) +typedef signed char Word8; +typedef short Word16; +typedef long Word32; +typedef int Flag; + +#elif defined(__sun) +typedef signed char Word8; +typedef short Word16; +typedef long Word32; +typedef int Flag; + +#elif defined(__unix__) || defined(__unix) +typedef signed char Word8; +typedef short Word16; +typedef int Word32; +typedef int Flag; + +#endif + +/* define 16 bit unsigned types for G.722.1 */ +#if INT_MAX == 32767 +typedef unsigned int UWord16; +#elif SHRT_MAX == 32767 +typedef unsigned short UWord16; +#endif + +/* define 32 bit unsigned types for G.722.1 */ +#if INT_MAX == 2147483647L +typedef unsigned int UWord32; +#elif LONG_MAX == 2147483647L +typedef unsigned long UWord32; +#endif + +#endif /* TYPEDEF_H */ -- cgit v1.2.3