• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2012 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  * filterbank_tables.c
13  *
14  * This file contains variables that are used in
15  * filterbanks.c
16  *
17  */
18 
19 #include "filterbank_tables.h"
20 
21 /* HPstcoeff_in_Q14 = {a1, a2, b1 - b0 * a1, b2 - b0 * a2};
22  * In float, they are: {-1.94895953203325f, 0.94984516000000f,
23  * -0.05101826139794f, 0.05015484000000f};
24  */
25 const int16_t WebRtcIsacfix_kHpStCoeffInQ30[8] = {
26   16189, -31932,  /* Q30 lo/hi pair */
27   17243, 15562,  /* Q30 lo/hi pair */
28   -17186, -26748,  /* Q35 lo/hi pair */
29   -27476, 26296  /* Q35 lo/hi pair */
30 };
31 
32 /* HPstcoeff_out_1_Q14 = {a1, a2, b1 - b0 * a1, b2 - b0 * a2};
33  * In float, they are: {-1.99701049409000f, 0.99714204490000f,
34  * 0.01701049409000f, -0.01704204490000f};
35  */
36 const int16_t WebRtcIsacfix_kHPStCoeffOut1Q30[8] = {
37   -1306, -32719,  /* Q30 lo/hi pair */
38   11486, 16337,  /* Q30 lo/hi pair */
39   26078, 8918,  /* Q35 lo/hi pair */
40   3956, -8935  /* Q35 lo/hi pair */
41 };
42 
43 /* HPstcoeff_out_2_Q14 = {a1, a2, b1 - b0 * a1, b2 - b0 * a2};
44  * In float, they are: {-1.98645294509837f, 0.98672435560000f,
45  * 0.00645294509837f, -0.00662435560000f};
46  */
47 const int16_t WebRtcIsacfix_kHPStCoeffOut2Q30[8] = {
48   -2953, -32546,  /* Q30 lo/hi pair */
49   32233, 16166,  /* Q30 lo/hi pair */
50   13217, 3383,  /* Q35 lo/hi pair */
51   -4597, -3473  /* Q35 lo/hi pair */
52 };
53 
54 /* The upper channel all-pass filter factors */
55 const int16_t WebRtcIsacfix_kUpperApFactorsQ15[2] = {
56   1137, 12537
57 };
58 
59 /* The lower channel all-pass filter factors */
60 const int16_t WebRtcIsacfix_kLowerApFactorsQ15[2] = {
61   5059, 24379
62 };
63