constants.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. iLBC Speech Coder ANSI-C Source Code
  12. constants.h
  13. ******************************************************************/
  14. #ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_
  15. #define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_
  16. #include "modules/audio_coding/codecs/ilbc/defines.h"
  17. /* high pass filters */
  18. extern const int16_t WebRtcIlbcfix_kHpInCoefs[];
  19. extern const int16_t WebRtcIlbcfix_kHpOutCoefs[];
  20. /* Window for start state decision */
  21. extern const int16_t WebRtcIlbcfix_kStartSequenceEnrgWin[];
  22. /* low pass filter used for downsampling */
  23. extern const int16_t WebRtcIlbcfix_kLpFiltCoefs[];
  24. /* LPC analysis and quantization */
  25. extern const int16_t WebRtcIlbcfix_kLpcWin[];
  26. extern const int16_t WebRtcIlbcfix_kLpcAsymWin[];
  27. extern const int32_t WebRtcIlbcfix_kLpcLagWin[];
  28. extern const int16_t WebRtcIlbcfix_kLpcChirpSyntDenum[];
  29. extern const int16_t WebRtcIlbcfix_kLpcChirpWeightDenum[];
  30. extern const int16_t WebRtcIlbcfix_kLsfDimCb[];
  31. extern const int16_t WebRtcIlbcfix_kLsfSizeCb[];
  32. extern const int16_t WebRtcIlbcfix_kLsfCb[];
  33. extern const int16_t WebRtcIlbcfix_kLsfWeight20ms[];
  34. extern const int16_t WebRtcIlbcfix_kLsfWeight30ms[];
  35. extern const int16_t WebRtcIlbcfix_kLsfMean[];
  36. extern const int16_t WebRtcIlbcfix_kLspMean[];
  37. extern const int16_t WebRtcIlbcfix_kCos[];
  38. extern const int16_t WebRtcIlbcfix_kCosDerivative[];
  39. extern const int16_t WebRtcIlbcfix_kCosGrid[];
  40. extern const int16_t WebRtcIlbcfix_kAcosDerivative[];
  41. /* state quantization tables */
  42. extern const int16_t WebRtcIlbcfix_kStateSq3[];
  43. extern const int32_t WebRtcIlbcfix_kChooseFrgQuant[];
  44. extern const int16_t WebRtcIlbcfix_kScale[];
  45. extern const int16_t WebRtcIlbcfix_kFrgQuantMod[];
  46. /* Ranges for search and filters at different subframes */
  47. extern const size_t WebRtcIlbcfix_kSearchRange[5][CB_NSTAGES];
  48. extern const size_t WebRtcIlbcfix_kFilterRange[];
  49. /* gain quantization tables */
  50. extern const int16_t WebRtcIlbcfix_kGainSq3[];
  51. extern const int16_t WebRtcIlbcfix_kGainSq4[];
  52. extern const int16_t WebRtcIlbcfix_kGainSq5[];
  53. extern const int16_t WebRtcIlbcfix_kGainSq5Sq[];
  54. extern const int16_t* const WebRtcIlbcfix_kGain[];
  55. /* adaptive codebook definitions */
  56. extern const int16_t WebRtcIlbcfix_kCbFiltersRev[];
  57. extern const int16_t WebRtcIlbcfix_kAlpha[];
  58. /* enhancer definitions */
  59. extern const int16_t WebRtcIlbcfix_kEnhPolyPhaser[ENH_UPS0]
  60. [ENH_FLO_MULT2_PLUS1];
  61. extern const int16_t WebRtcIlbcfix_kEnhWt[];
  62. extern const size_t WebRtcIlbcfix_kEnhPlocs[];
  63. /* PLC tables */
  64. extern const int16_t WebRtcIlbcfix_kPlcPerSqr[];
  65. extern const int16_t WebRtcIlbcfix_kPlcPitchFact[];
  66. extern const int16_t WebRtcIlbcfix_kPlcPfSlope[];
  67. #endif