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