• 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  * pitch_lag_tables.h
13  *
14  * This file contains tables for the pitch filter side-info in the entropy
15  * coder.
16  *
17  */
18 
19 #ifndef MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_
20 #define MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_
21 
22 #include <stdint.h>
23 
24 /********************* Pitch Filter Lag Coefficient Tables
25  * ************************/
26 
27 /* tables for use with small pitch gain */
28 
29 /* cdfs for quantized pitch lags */
30 extern const uint16_t WebRtcIsacfix_kPitchLagCdf1Lo[127];
31 extern const uint16_t WebRtcIsacfix_kPitchLagCdf2Lo[20];
32 extern const uint16_t WebRtcIsacfix_kPitchLagCdf3Lo[2];
33 extern const uint16_t WebRtcIsacfix_kPitchLagCdf4Lo[10];
34 
35 extern const uint16_t* WebRtcIsacfix_kPitchLagPtrLo[4];
36 
37 /* size of first cdf table */
38 extern const uint16_t WebRtcIsacfix_kPitchLagSizeLo[1];
39 
40 /* index limits and ranges */
41 extern const int16_t WebRtcIsacfix_kLowerLimitLo[4];
42 extern const int16_t WebRtcIsacfix_kUpperLimitLo[4];
43 
44 /* initial index for arithmetic decoder */
45 extern const uint16_t WebRtcIsacfix_kInitIndLo[3];
46 
47 /* mean values of pitch filter lags */
48 extern const int16_t WebRtcIsacfix_kMeanLag2Lo[19];
49 extern const int16_t WebRtcIsacfix_kMeanLag4Lo[9];
50 
51 /* tables for use with medium pitch gain */
52 
53 /* cdfs for quantized pitch lags */
54 extern const uint16_t WebRtcIsacfix_kPitchLagCdf1Mid[255];
55 extern const uint16_t WebRtcIsacfix_kPitchLagCdf2Mid[36];
56 extern const uint16_t WebRtcIsacfix_kPitchLagCdf3Mid[2];
57 extern const uint16_t WebRtcIsacfix_kPitchLagCdf4Mid[20];
58 
59 extern const uint16_t* WebRtcIsacfix_kPitchLagPtrMid[4];
60 
61 /* size of first cdf table */
62 extern const uint16_t WebRtcIsacfix_kPitchLagSizeMid[1];
63 
64 /* index limits and ranges */
65 extern const int16_t WebRtcIsacfix_kLowerLimitMid[4];
66 extern const int16_t WebRtcIsacfix_kUpperLimitMid[4];
67 
68 /* initial index for arithmetic decoder */
69 extern const uint16_t WebRtcIsacfix_kInitIndMid[3];
70 
71 /* mean values of pitch filter lags */
72 extern const int16_t WebRtcIsacfix_kMeanLag2Mid[35];
73 extern const int16_t WebRtcIsacfix_kMeanLag4Mid[19];
74 
75 /* tables for use with large pitch gain */
76 
77 /* cdfs for quantized pitch lags */
78 extern const uint16_t WebRtcIsacfix_kPitchLagCdf1Hi[511];
79 extern const uint16_t WebRtcIsacfix_kPitchLagCdf2Hi[68];
80 extern const uint16_t WebRtcIsacfix_kPitchLagCdf3Hi[2];
81 extern const uint16_t WebRtcIsacfix_kPitchLagCdf4Hi[35];
82 
83 extern const uint16_t* WebRtcIsacfix_kPitchLagPtrHi[4];
84 
85 /* size of first cdf table */
86 extern const uint16_t WebRtcIsacfix_kPitchLagSizeHi[1];
87 
88 /* index limits and ranges */
89 extern const int16_t WebRtcIsacfix_kLowerLimitHi[4];
90 extern const int16_t WebRtcIsacfix_kUpperLimitHi[4];
91 
92 /* initial index for arithmetic decoder */
93 extern const uint16_t WebRtcIsacfix_kInitIndHi[3];
94 
95 /* mean values of pitch filter lags */
96 extern const int16_t WebRtcIsacfix_kMeanLag2Hi[67];
97 extern const int16_t WebRtcIsacfix_kMeanLag4Hi[34];
98 
99 #endif /* MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_PITCH_LAG_TABLES_H_ */
100