1 /* ------------------------------------------------------------------
2 * Copyright (C) 1998-2009 PacketVideo
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
18 /****************************************************************************************
19 Portions of this file are derived from the following 3GPP standard:
22 ANSI-C code for the Adaptive Multi-Rate - Wideband (AMR-WB) speech codec
23 Available from http://www.3gpp.org
25 (C) 2007, 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 ****************************************************************************************/
30 ------------------------------------------------------------------------------
34 Pathname: ./cpp/include/pv_amr_wb_type_defs.h
36 ------------------------------------------------------------------------------
39 This file was derived from a number of standards bodies. The type
40 definitions below were created from some of the best practices observed
41 in the standards bodies.
43 This file is dependent on limits.h for defining the bit widths. In an
44 ANSI C environment limits.h is expected to always be present and contain
45 the following definitions:
63 ------------------------------------------------------------------------------
66 #ifndef PV_AMR_WB_TYPE_DEFS_H
67 #define PV_AMR_WB_TYPE_DEFS_H
69 #include "oscl_base.h"
80 /*----------------------------------------------------------------------------
81 ; Define generic signed and unsigned int
82 ----------------------------------------------------------------------------*/
84 typedef signed int Int;
88 typedef unsigned int UInt;
92 /*----------------------------------------------------------------------------
93 ; Define 16 bit signed and unsigned words
94 ----------------------------------------------------------------------------*/
97 #define INT16_MIN (-32768)
101 #define INT16_MAX 32767
104 /*----------------------------------------------------------------------------
105 ; Define 32 bit signed and unsigned words
106 ----------------------------------------------------------------------------*/
111 #define INT32_MIN (-2147483647 - 1)
114 #define INT32_MAX 2147483647
122 #define UINT32_MAX 0xffffffff
127 #define INT_MAX INT32_MAX /* for 32 bit */
130 /*----------------------------------------------------------------------------
131 ; Define 64 bit signed and unsigned words
132 ----------------------------------------------------------------------------*/
135 /*----------------------------------------------------------------------------
136 ; Define boolean type
137 ----------------------------------------------------------------------------*/
177 #endif /* PV_AMR_WB_TYPE_DEFS_H */