niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
| 13 | iLBC Speech Coder ANSI-C Source Code |
| 14 | |
| 15 | constants.h |
| 16 | |
| 17 | ******************************************************************/ |
| 18 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 19 | #ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_ |
| 20 | #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 21 | |
Mirko Bonadei | 06c2aa9 | 2018-02-01 15:11:41 +0100 | [diff] [blame] | 22 | #include "modules/audio_coding/codecs/ilbc/defines.h" |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 23 | |
| 24 | /* high pass filters */ |
| 25 | |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 26 | extern const int16_t WebRtcIlbcfix_kHpInCoefs[]; |
| 27 | extern const int16_t WebRtcIlbcfix_kHpOutCoefs[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 28 | |
| 29 | /* Window for start state decision */ |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 30 | extern const int16_t WebRtcIlbcfix_kStartSequenceEnrgWin[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 31 | |
| 32 | /* low pass filter used for downsampling */ |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 33 | extern const int16_t WebRtcIlbcfix_kLpFiltCoefs[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 34 | |
| 35 | /* LPC analysis and quantization */ |
| 36 | |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 37 | extern const int16_t WebRtcIlbcfix_kLpcWin[]; |
| 38 | extern const int16_t WebRtcIlbcfix_kLpcAsymWin[]; |
| 39 | extern const int32_t WebRtcIlbcfix_kLpcLagWin[]; |
| 40 | extern const int16_t WebRtcIlbcfix_kLpcChirpSyntDenum[]; |
| 41 | extern const int16_t WebRtcIlbcfix_kLpcChirpWeightDenum[]; |
| 42 | extern const int16_t WebRtcIlbcfix_kLsfDimCb[]; |
| 43 | extern const int16_t WebRtcIlbcfix_kLsfSizeCb[]; |
| 44 | extern const int16_t WebRtcIlbcfix_kLsfCb[]; |
| 45 | extern const int16_t WebRtcIlbcfix_kLsfWeight20ms[]; |
| 46 | extern const int16_t WebRtcIlbcfix_kLsfWeight30ms[]; |
| 47 | extern const int16_t WebRtcIlbcfix_kLsfMean[]; |
| 48 | extern const int16_t WebRtcIlbcfix_kLspMean[]; |
| 49 | extern const int16_t WebRtcIlbcfix_kCos[]; |
| 50 | extern const int16_t WebRtcIlbcfix_kCosDerivative[]; |
| 51 | extern const int16_t WebRtcIlbcfix_kCosGrid[]; |
| 52 | extern const int16_t WebRtcIlbcfix_kAcosDerivative[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 53 | |
| 54 | /* state quantization tables */ |
| 55 | |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 56 | extern const int16_t WebRtcIlbcfix_kStateSq3[]; |
| 57 | extern const int32_t WebRtcIlbcfix_kChooseFrgQuant[]; |
| 58 | extern const int16_t WebRtcIlbcfix_kScale[]; |
| 59 | extern const int16_t WebRtcIlbcfix_kFrgQuantMod[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 60 | |
| 61 | /* Ranges for search and filters at different subframes */ |
| 62 | |
Peter Kasting | dce40cf | 2015-08-24 14:52:23 -0700 | [diff] [blame] | 63 | extern const size_t WebRtcIlbcfix_kSearchRange[5][CB_NSTAGES]; |
| 64 | extern const size_t WebRtcIlbcfix_kFilterRange[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 65 | |
| 66 | /* gain quantization tables */ |
| 67 | |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 68 | extern const int16_t WebRtcIlbcfix_kGainSq3[]; |
| 69 | extern const int16_t WebRtcIlbcfix_kGainSq4[]; |
| 70 | extern const int16_t WebRtcIlbcfix_kGainSq5[]; |
| 71 | extern const int16_t WebRtcIlbcfix_kGainSq5Sq[]; |
| 72 | extern const int16_t* const WebRtcIlbcfix_kGain[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 73 | |
| 74 | /* adaptive codebook definitions */ |
| 75 | |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 76 | extern const int16_t WebRtcIlbcfix_kCbFiltersRev[]; |
| 77 | extern const int16_t WebRtcIlbcfix_kAlpha[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 78 | |
| 79 | /* enhancer definitions */ |
| 80 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 81 | extern const int16_t WebRtcIlbcfix_kEnhPolyPhaser[ENH_UPS0] |
| 82 | [ENH_FLO_MULT2_PLUS1]; |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 83 | extern const int16_t WebRtcIlbcfix_kEnhWt[]; |
Peter Kasting | 1380e26 | 2015-08-28 17:31:03 -0700 | [diff] [blame] | 84 | extern const size_t WebRtcIlbcfix_kEnhPlocs[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 85 | |
| 86 | /* PLC tables */ |
| 87 | |
pbos@webrtc.org | 0946a56 | 2013-04-09 00:28:06 +0000 | [diff] [blame] | 88 | extern const int16_t WebRtcIlbcfix_kPlcPerSqr[]; |
| 89 | extern const int16_t WebRtcIlbcfix_kPlcPitchFact[]; |
| 90 | extern const int16_t WebRtcIlbcfix_kPlcPfSlope[]; |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 91 | |
| 92 | #endif |