Home | History | Annotate | Download | only in ilbc
      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 
     19 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_
     20 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CONSTANTS_H_
     21 
     22 #include "defines.h"
     23 #include "webrtc/typedefs.h"
     24 
     25 /* high pass filters */
     26 
     27 extern const int16_t WebRtcIlbcfix_kHpInCoefs[];
     28 extern const int16_t WebRtcIlbcfix_kHpOutCoefs[];
     29 
     30 /* Window for start state decision */
     31 extern const int16_t WebRtcIlbcfix_kStartSequenceEnrgWin[];
     32 
     33 /* low pass filter used for downsampling */
     34 extern const int16_t WebRtcIlbcfix_kLpFiltCoefs[];
     35 
     36 /* LPC analysis and quantization */
     37 
     38 extern const int16_t WebRtcIlbcfix_kLpcWin[];
     39 extern const int16_t WebRtcIlbcfix_kLpcAsymWin[];
     40 extern const int32_t WebRtcIlbcfix_kLpcLagWin[];
     41 extern const int16_t WebRtcIlbcfix_kLpcChirpSyntDenum[];
     42 extern const int16_t WebRtcIlbcfix_kLpcChirpWeightDenum[];
     43 extern const int16_t WebRtcIlbcfix_kLsfDimCb[];
     44 extern const int16_t WebRtcIlbcfix_kLsfSizeCb[];
     45 extern const int16_t WebRtcIlbcfix_kLsfCb[];
     46 extern const int16_t WebRtcIlbcfix_kLsfWeight20ms[];
     47 extern const int16_t WebRtcIlbcfix_kLsfWeight30ms[];
     48 extern const int16_t WebRtcIlbcfix_kLsfMean[];
     49 extern const int16_t WebRtcIlbcfix_kLspMean[];
     50 extern const int16_t WebRtcIlbcfix_kCos[];
     51 extern const int16_t WebRtcIlbcfix_kCosDerivative[];
     52 extern const int16_t WebRtcIlbcfix_kCosGrid[];
     53 extern const int16_t WebRtcIlbcfix_kAcosDerivative[];
     54 
     55 /* state quantization tables */
     56 
     57 extern const int16_t WebRtcIlbcfix_kStateSq3[];
     58 extern const int32_t WebRtcIlbcfix_kChooseFrgQuant[];
     59 extern const int16_t WebRtcIlbcfix_kScale[];
     60 extern const int16_t WebRtcIlbcfix_kFrgQuantMod[];
     61 
     62 /* Ranges for search and filters at different subframes */
     63 
     64 extern const size_t WebRtcIlbcfix_kSearchRange[5][CB_NSTAGES];
     65 extern const size_t WebRtcIlbcfix_kFilterRange[];
     66 
     67 /* gain quantization tables */
     68 
     69 extern const int16_t WebRtcIlbcfix_kGainSq3[];
     70 extern const int16_t WebRtcIlbcfix_kGainSq4[];
     71 extern const int16_t WebRtcIlbcfix_kGainSq5[];
     72 extern const int16_t WebRtcIlbcfix_kGainSq5Sq[];
     73 extern const int16_t* const WebRtcIlbcfix_kGain[];
     74 
     75 /* adaptive codebook definitions */
     76 
     77 extern const int16_t WebRtcIlbcfix_kCbFiltersRev[];
     78 extern const int16_t WebRtcIlbcfix_kAlpha[];
     79 
     80 /* enhancer definitions */
     81 
     82 extern const int16_t WebRtcIlbcfix_kEnhPolyPhaser[ENH_UPS0][ENH_FLO_MULT2_PLUS1];
     83 extern const int16_t WebRtcIlbcfix_kEnhWt[];
     84 extern const size_t WebRtcIlbcfix_kEnhPlocs[];
     85 
     86 /* PLC tables */
     87 
     88 extern const int16_t WebRtcIlbcfix_kPlcPerSqr[];
     89 extern const int16_t WebRtcIlbcfix_kPlcPitchFact[];
     90 extern const int16_t WebRtcIlbcfix_kPlcPfSlope[];
     91 
     92 #endif
     93