OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 const int16_t WebRtcIlbcfix_kCbFiltersRev[CB_FILTERLEN]={ | 586 const int16_t WebRtcIlbcfix_kCbFiltersRev[CB_FILTERLEN]={ |
587 -140, 446, -755, 3302, 2922, -590, 343, -138}; | 587 -140, 446, -755, 3302, 2922, -590, 343, -138}; |
588 | 588 |
589 /* Weighting coefficients for short lags. | 589 /* Weighting coefficients for short lags. |
590 * [0.2 0.4 0.6 0.8] in Q15 */ | 590 * [0.2 0.4 0.6 0.8] in Q15 */ |
591 const int16_t WebRtcIlbcfix_kAlpha[4]={ | 591 const int16_t WebRtcIlbcfix_kAlpha[4]={ |
592 6554, 13107, 19661, 26214}; | 592 6554, 13107, 19661, 26214}; |
593 | 593 |
594 /* Ranges for search and filters at different subframes */ | 594 /* Ranges for search and filters at different subframes */ |
595 | 595 |
596 const int16_t WebRtcIlbcfix_kSearchRange[5][CB_NSTAGES]={ | 596 const size_t WebRtcIlbcfix_kSearchRange[5][CB_NSTAGES]={ |
597 {58,58,58}, {108,44,44}, {108,108,108}, {108,108,108}, {108,108,108}}; | 597 {58,58,58}, {108,44,44}, {108,108,108}, {108,108,108}, {108,108,108}}; |
598 | 598 |
599 const int16_t WebRtcIlbcfix_kFilterRange[5]={63, 85, 125, 147, 147}; | 599 const size_t WebRtcIlbcfix_kFilterRange[5]={63, 85, 125, 147, 147}; |
600 | 600 |
601 /* Gain Quantization for the codebook gains of the 3 stages */ | 601 /* Gain Quantization for the codebook gains of the 3 stages */ |
602 | 602 |
603 /* Q14 (one extra value (max int16_t) to simplify for the search) */ | 603 /* Q14 (one extra value (max int16_t) to simplify for the search) */ |
604 const int16_t WebRtcIlbcfix_kGainSq3[9]={ | 604 const int16_t WebRtcIlbcfix_kGainSq3[9]={ |
605 -16384, -10813, -5407, 0, 4096, 8192, | 605 -16384, -10813, -5407, 0, 4096, 8192, |
606 12288, 16384, 32767}; | 606 12288, 16384, 32767}; |
607 | 607 |
608 /* Q14 (one extra value (max int16_t) to simplify for the search) */ | 608 /* Q14 (one extra value (max int16_t) to simplify for the search) */ |
609 const int16_t WebRtcIlbcfix_kGainSq4[17]={ | 609 const int16_t WebRtcIlbcfix_kGainSq4[17]={ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 839, 1343, 2048, 2998, 4247, 5849 | 657 839, 1343, 2048, 2998, 4247, 5849 |
658 }; | 658 }; |
659 | 659 |
660 const int16_t WebRtcIlbcfix_kPlcPitchFact[6] = { /* Value of y=(x^4-0.4)/(0.7-0.
4) in grid points in Q15 */ | 660 const int16_t WebRtcIlbcfix_kPlcPitchFact[6] = { /* Value of y=(x^4-0.4)/(0.7-0.
4) in grid points in Q15 */ |
661 0, 5462, 10922, 16384, 21846, 27306 | 661 0, 5462, 10922, 16384, 21846, 27306 |
662 }; | 662 }; |
663 | 663 |
664 const int16_t WebRtcIlbcfix_kPlcPfSlope[6] = { /* Slope of y=(x^4-0.4)/(0.7-0.4)
in Q11 */ | 664 const int16_t WebRtcIlbcfix_kPlcPfSlope[6] = { /* Slope of y=(x^4-0.4)/(0.7-0.4)
in Q11 */ |
665 26667, 18729, 13653, 10258, 7901, 6214 | 665 26667, 18729, 13653, 10258, 7901, 6214 |
666 }; | 666 }; |
OLD | NEW |