• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 /*
12  * spectrum_ar_model_tables.h
13  *
14  * This file contains definitions of tables with AR coefficients,
15  * Gain coefficients and cosine tables.
16  *
17  */
18 
19 #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_
20 #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_
21 
22 #include <stdint.h>
23 
24 #include "modules/audio_coding/codecs/isac/fix/source/settings.h"
25 
26 /********************* AR Coefficient Tables ************************/
27 /* cdf for quantized reflection coefficient 1 */
28 extern const uint16_t WebRtcIsacfix_kRc1Cdf[12];
29 
30 /* cdf for quantized reflection coefficient 2 */
31 extern const uint16_t WebRtcIsacfix_kRc2Cdf[12];
32 
33 /* cdf for quantized reflection coefficient 3 */
34 extern const uint16_t WebRtcIsacfix_kRc3Cdf[12];
35 
36 /* cdf for quantized reflection coefficient 4 */
37 extern const uint16_t WebRtcIsacfix_kRc4Cdf[12];
38 
39 /* cdf for quantized reflection coefficient 5 */
40 extern const uint16_t WebRtcIsacfix_kRc5Cdf[12];
41 
42 /* cdf for quantized reflection coefficient 6 */
43 extern const uint16_t WebRtcIsacfix_kRc6Cdf[12];
44 
45 /* representation levels for quantized reflection coefficient 1 */
46 extern const int16_t WebRtcIsacfix_kRc1Levels[11];
47 
48 /* representation levels for quantized reflection coefficient 2 */
49 extern const int16_t WebRtcIsacfix_kRc2Levels[11];
50 
51 /* representation levels for quantized reflection coefficient 3 */
52 extern const int16_t WebRtcIsacfix_kRc3Levels[11];
53 
54 /* representation levels for quantized reflection coefficient 4 */
55 extern const int16_t WebRtcIsacfix_kRc4Levels[11];
56 
57 /* representation levels for quantized reflection coefficient 5 */
58 extern const int16_t WebRtcIsacfix_kRc5Levels[11];
59 
60 /* representation levels for quantized reflection coefficient 6 */
61 extern const int16_t WebRtcIsacfix_kRc6Levels[11];
62 
63 /* quantization boundary levels for reflection coefficients */
64 extern const int16_t WebRtcIsacfix_kRcBound[12];
65 
66 /* initial indices for AR reflection coefficient quantizer and cdf table search
67  */
68 extern const uint16_t WebRtcIsacfix_kRcInitInd[AR_ORDER];
69 
70 /* pointers to AR cdf tables */
71 extern const uint16_t* WebRtcIsacfix_kRcCdfPtr[AR_ORDER];
72 
73 /* pointers to AR representation levels tables */
74 extern const int16_t* WebRtcIsacfix_kRcLevPtr[AR_ORDER];
75 
76 /******************** GAIN Coefficient Tables ***********************/
77 /* cdf for Gain coefficient */
78 extern const uint16_t WebRtcIsacfix_kGainCdf[19];
79 
80 /* representation levels for quantized Gain coefficient */
81 extern const int32_t WebRtcIsacfix_kGain2Lev[18];
82 
83 /* squared quantization boundary levels for Gain coefficient */
84 extern const int32_t WebRtcIsacfix_kGain2Bound[19];
85 
86 /* pointer to Gain cdf table */
87 extern const uint16_t* WebRtcIsacfix_kGainPtr[1];
88 
89 /* Gain initial index for gain quantizer and cdf table search */
90 extern const uint16_t WebRtcIsacfix_kGainInitInd[1];
91 
92 /************************* Cosine Tables ****************************/
93 /* Cosine table */
94 extern const int16_t WebRtcIsacfix_kCos[6][60];
95 
96 #endif /* MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ \
97         */
98