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 (AMR) speech codec
23 Available from http://www.3gpp.org
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 ****************************************************************************************/
30 ------------------------------------------------------------------------------
32 Filename: inter_36_tab.cpp
34 ------------------------------------------------------------------------------
35 INPUT AND OUTPUT DEFINITIONS
40 Local Stores/Buffers/Pointers Needed:
43 Global Stores/Buffers/Pointers Needed:
49 Pointers and Buffers Modified:
52 Local Stores Modified:
55 Global Stores Modified:
58 ------------------------------------------------------------------------------
62 Purpose : Tables for interpolating the normalized correlation
63 with 1/3 or 1/6 resolution.
66 ------------------------------------------------------------------------------
71 ------------------------------------------------------------------------------
76 ------------------------------------------------------------------------------
80 ------------------------------------------------------------------------------
84 /*----------------------------------------------------------------------------
86 ----------------------------------------------------------------------------*/
87 #include "inter_36_tab.h"
89 /*--------------------------------------------------------------------------*/
95 /*----------------------------------------------------------------------------
97 ; Define module specific macros here
98 ----------------------------------------------------------------------------*/
101 /*----------------------------------------------------------------------------
103 ; Include all pre-processor statements here. Include conditional
104 ; compile variables also.
105 ----------------------------------------------------------------------------*/
106 #define UP_SAMP_MAX 6
107 #define FIR_SIZE (UP_SAMP_MAX*L_INTER_SRCH+1)
109 /*----------------------------------------------------------------------------
110 ; LOCAL FUNCTION DEFINITIONS
111 ; Function Prototype declaration
112 ----------------------------------------------------------------------------*/
115 /*----------------------------------------------------------------------------
116 ; LOCAL STORE/BUFFER/POINTER DEFINITIONS
117 ; Variable declaration - defined here and used outside this module
118 ----------------------------------------------------------------------------*/
119 /* 1/6 resolution interpolation filter (-3 dB at 3600 Hz) */
120 /* Note: The IS641 (7.4) 1/3 resolution filter is simply a subsampled
121 version of the 1/6 resolution filter, i.e. it uses
122 every second coefficient:
124 inter_3[k] = inter_6[2*k], 0 <= k <= 3*L_INTER_SRCH
127 const Word16 inter_6[FIR_SIZE] =
130 28316, 24906, 19838, 13896, 7945, 2755,
131 -1127, -3459, -4304, -3969, -2899, -1561,
132 -336, 534, 970, 1023, 823, 516,
133 220, 0, -131, -194, -215, 0
136 /*----------------------------------------------------------------------------
137 ; EXTERNAL FUNCTION REFERENCES
138 ; Declare functions defined elsewhere and referenced in this module
139 ----------------------------------------------------------------------------*/
142 /*----------------------------------------------------------------------------
143 ; EXTERNAL GLOBAL STORE/BUFFER/POINTER REFERENCES
144 ; Declare variables used in this module but defined elsewhere
145 ----------------------------------------------------------------------------*/
148 /*--------------------------------------------------------------------------*/
153 /*----------------------------------------------------------------------------
155 ----------------------------------------------------------------------------*/
157 /*----------------------------------------------------------------------------
158 ; Define all local variables
159 ----------------------------------------------------------------------------*/
162 /*----------------------------------------------------------------------------
164 ----------------------------------------------------------------------------*/
167 /*----------------------------------------------------------------------------
168 ; Return nothing or data or data pointer
169 ----------------------------------------------------------------------------*/