Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.
source:
webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/lpc_tables.h
@
0:4bda6873e34c
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by , 6 years ago | |
---|---|
File size: 3.1 KB |
Line | |
---|---|
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 | * lpc_tables.h |
13 | * |
14 | * header file for coding tables for the LPC coefficients |
15 | * |
16 | */ |
17 | |
18 | #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_ |
19 | #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_ |
20 | |
21 | #include "typedefs.h" |
22 | |
23 | |
24 | /* indices of KLT coefficients used */ |
25 | extern const uint16_t WebRtcIsacfix_kSelIndGain[12]; |
26 | |
27 | extern const uint16_t WebRtcIsacfix_kSelIndShape[108]; |
28 | |
29 | /* cdf array for model indicator */ |
30 | extern const uint16_t WebRtcIsacfix_kModelCdf[KLT_NUM_MODELS+1]; |
31 | |
32 | /* pointer to cdf array for model indicator */ |
33 | extern const uint16_t *WebRtcIsacfix_kModelCdfPtr[1]; |
34 | |
35 | /* initial cdf index for decoder of model indicator */ |
36 | extern const uint16_t WebRtcIsacfix_kModelInitIndex[1]; |
37 | |
38 | /* offset to go from rounded value to quantization index */ |
39 | extern const int16_t WebRtcIsacfix_kQuantMinGain[12]; |
40 | |
41 | extern const int16_t WebRtcIsacfix_kQuantMinShape[108]; |
42 | |
43 | /* maximum quantization index */ |
44 | extern const uint16_t WebRtcIsacfix_kMaxIndGain[12]; |
45 | |
46 | extern const uint16_t WebRtcIsacfix_kMaxIndShape[108]; |
47 | |
48 | /* index offset */ |
49 | extern const uint16_t WebRtcIsacfix_kOffsetGain[KLT_NUM_MODELS][12]; |
50 | |
51 | extern const uint16_t WebRtcIsacfix_kOffsetShape[KLT_NUM_MODELS][108]; |
52 | |
53 | /* initial cdf index for KLT coefficients */ |
54 | extern const uint16_t WebRtcIsacfix_kInitIndexGain[KLT_NUM_MODELS][12]; |
55 | |
56 | extern const uint16_t WebRtcIsacfix_kInitIndexShape[KLT_NUM_MODELS][108]; |
57 | |
58 | /* offsets for quantizer representation levels */ |
59 | extern const uint16_t WebRtcIsacfix_kOfLevelsGain[3]; |
60 | |
61 | extern const uint16_t WebRtcIsacfix_kOfLevelsShape[3]; |
62 | |
63 | /* quantizer representation levels */ |
64 | extern const int32_t WebRtcIsacfix_kLevelsGainQ17[1176]; |
65 | |
66 | extern const int16_t WebRtcIsacfix_kLevelsShapeQ10[1735]; |
67 | |
68 | /* cdf tables for quantizer indices */ |
69 | extern const uint16_t WebRtcIsacfix_kCdfGain[1212]; |
70 | |
71 | extern const uint16_t WebRtcIsacfix_kCdfShape[2059]; |
72 | |
73 | /* pointers to cdf tables for quantizer indices */ |
74 | extern const uint16_t *WebRtcIsacfix_kCdfGainPtr[KLT_NUM_MODELS][12]; |
75 | |
76 | extern const uint16_t *WebRtcIsacfix_kCdfShapePtr[KLT_NUM_MODELS][108]; |
77 | |
78 | /* code length for all coefficients using different models */ |
79 | extern const int16_t WebRtcIsacfix_kCodeLenGainQ11[392]; |
80 | |
81 | extern const int16_t WebRtcIsacfix_kCodeLenShapeQ11[577]; |
82 | |
83 | /* left KLT transforms */ |
84 | extern const int16_t WebRtcIsacfix_kT1GainQ15[KLT_NUM_MODELS][4]; |
85 | |
86 | extern const int16_t WebRtcIsacfix_kT1ShapeQ15[KLT_NUM_MODELS][324]; |
87 | |
88 | /* right KLT transforms */ |
89 | extern const int16_t WebRtcIsacfix_kT2GainQ15[KLT_NUM_MODELS][36]; |
90 | |
91 | extern const int16_t WebRtcIsacfix_kT2ShapeQ15[KLT_NUM_MODELS][36]; |
92 | |
93 | /* means of log gains and LAR coefficients */ |
94 | extern const int16_t WebRtcIsacfix_kMeansGainQ8[KLT_NUM_MODELS][12]; |
95 | |
96 | extern const int32_t WebRtcIsacfix_kMeansShapeQ17[3][108]; |
97 | |
98 | #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_TABLES_H_ */ |
Note: See TracBrowser
for help on using the repository browser.