Initialize Tizen 2.3
[external/opencore-amr.git] / opencore / codecs_v2 / audio / gsm_amr / amr_nb / common / include / gsm_amr_typedefs.h
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 /****************************************************************************************
19 Portions of this file are derived from the following 3GPP standard:
20
21     3GPP TS 26.073
22     ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23     Available from http://www.3gpp.org
24
25 (C) 2004, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC)
26 Permission to distribute, modify and use this file under the standard license
27 terms listed above has been obtained from the copyright holder.
28 ****************************************************************************************/
29 /*
30
31  Filename: gsm_amr_typedefs.h
32
33 ------------------------------------------------------------------------------
34  INCLUDE DESCRIPTION
35
36  This file contains the definition of the amr codec types.
37
38 ------------------------------------------------------------------------------
39 */
40 #ifndef GSM_AMR_TYPEDEFS_H
41 #define GSM_AMR_TYPEDEFS_H
42
43 /*----------------------------------------------------------------------------
44 ; INCLUDES
45 ----------------------------------------------------------------------------*/
46
47 #include    "oscl_base.h"
48
49 /*----------------------------------------------------------------------------
50 ; MACROS
51 ; Define module specific macros here
52 ----------------------------------------------------------------------------*/
53
54 /*----------------------------------------------------------------------------
55 ; DEFINES
56 ; Include all pre-processor statements here.
57 ----------------------------------------------------------------------------*/
58
59 /*----------------------------------------------------------------------------
60 ; EXTERNAL VARIABLES REFERENCES
61 ; Declare variables used in this module but defined elsewhere
62 ----------------------------------------------------------------------------*/
63
64 /*----------------------------------------------------------------------------
65 ; SIMPLE TYPEDEF'S
66 ----------------------------------------------------------------------------*/
67
68 #ifndef Word8
69 typedef int8        Word8;
70 #endif
71
72 #ifndef UWord8
73 typedef uint8       UWord8;
74 #endif
75
76
77 /*----------------------------------------------------------------------------
78 ; Define 16 bit signed and unsigned words
79 ----------------------------------------------------------------------------*/
80
81 #ifndef Word16
82 typedef int16       Word16;
83
84 #endif
85
86 #ifndef UWord16
87 typedef uint16      UWord16;
88
89 #endif
90
91 /*----------------------------------------------------------------------------
92 ; Define 32 bit signed and unsigned words
93 ----------------------------------------------------------------------------*/
94
95 #ifndef Word32
96 typedef int32       Word32;
97 #endif
98
99 #ifndef UWord32
100 typedef uint32      UWord32;
101 #endif
102
103
104 /*----------------------------------------------------------------------------
105 ; Define boolean type
106 ----------------------------------------------------------------------------*/
107 #ifndef Bool
108 typedef int     Bool;
109 #endif
110
111 #ifndef FALSE
112 #define FALSE       0
113 #endif
114
115 #ifndef TRUE
116 #define TRUE        1
117 #endif
118
119 #ifndef OFF
120 #define OFF     0
121 #endif
122
123 #ifndef ON
124 #define ON      1
125 #endif
126
127 #ifndef NO
128 #define NO      0
129 #endif
130
131 #ifndef YES
132 #define YES     1
133 #endif
134
135 #ifndef SUCCESS
136 #define SUCCESS     0
137 #endif
138
139 #ifndef  NULL
140 #define  NULL       0
141 #endif
142
143 #ifndef Flag
144 typedef int32     Flag;
145 #endif
146
147 #endif   /*  GSM_AMR_TYPEDEFS_H */