1b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber/* ------------------------------------------------------------------
2b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * Copyright (C) 1998-2009 PacketVideo
3b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber *
4b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * Licensed under the Apache License, Version 2.0 (the "License");
5b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * you may not use this file except in compliance with the License.
6b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * You may obtain a copy of the License at
7b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber *
8b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber *      http://www.apache.org/licenses/LICENSE-2.0
9b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber *
10b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * Unless required by applicable law or agreed to in writing, software
11b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * distributed under the License is distributed on an "AS IS" BASIS,
12b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * express or implied.
14b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * See the License for the specific language governing permissions
15b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * and limitations under the License.
16b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber * -------------------------------------------------------------------
17b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber */
18b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber/****************************************************************************************
19b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas HuberPortions of this file are derived from the following 3GPP standard:
20b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
21b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    3GPP TS 26.073
22b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ANSI-C code for the Adaptive Multi-Rate (AMR) speech codec
23b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    Available from http://www.3gpp.org
24b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
25b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber(C) 2004, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC)
26b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas HuberPermission to distribute, modify and use this file under the standard license
27b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huberterms listed above has been obtained from the copyright holder.
28b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber****************************************************************************************/
29b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber/*----------------------------------------------------------------------------
30b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber; CONTINUE ONLY IF NOT ALREADY DEFINED
31b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber----------------------------------------------------------------------------*/
32b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#ifndef COR_H_H
33b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#define COR_H_H
34b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
35b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber/*----------------------------------------------------------------------------
36b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber; INCLUDES
37b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber----------------------------------------------------------------------------*/
38b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#include "typedef.h"
39b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
40b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#include "cor_h_x.h"                /* Used by legacy files */
41b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#include "cor_h_x2.h"               /* Used by legacy files */
42b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
43b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber/*--------------------------------------------------------------------------*/
44b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#ifdef __cplusplus
45b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huberextern "C"
46b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber{
47b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#endif
48b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
49b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
50b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; MACROS
51b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; Define module specific macros here
52b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
53b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
54b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
55b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; DEFINES
56b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; Include all pre-processor statements here.
57b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
58b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
59b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
60b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; EXTERNAL VARIABLES REFERENCES
61b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; Declare variables used in this module but defined elsewhere
62b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
63b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
64b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
65b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; SIMPLE TYPEDEF'S
66b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
67b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
68b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
69b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; ENUMERATED TYPEDEF'S
70b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
71b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
72b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
73b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; STRUCTURES TYPEDEF'S
74b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
75b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
76b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
77b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; GLOBAL FUNCTION DEFINITIONS
78b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; Function Prototype declaration
79b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
80b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    void cor_h(
81b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber        Word16 h[],          /* (i) : impulse response of weighted synthesis
82b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber                                  filter                                  */
83b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber        Word16 sign[],       /* (i) : sign of d[n]                            */
84b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber        Word16 rr[][L_CODE], /* (o) : matrix of autocorrelation               */
85b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber        Flag  *pOverflow
86b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    );
87b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
88b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    /*----------------------------------------------------------------------------
89b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ; END
90b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber    ----------------------------------------------------------------------------*/
91b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#ifdef __cplusplus
92b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber}
93b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#endif
94b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
95b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber#endif
96b841f14f8e51f2365945281fbfa54ef6a1b1b5a6Andreas Huber
97