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 * spectrum_ar_model_tables.h 13 * 14 * This file contains definitions of tables with AR coefficients, 15 * Gain coefficients and cosine tables. 16 * 17 */ 18 19#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ 20#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ 21 22#include "settings.h" 23#include "webrtc/typedefs.h" 24 25/********************* AR Coefficient Tables ************************/ 26/* cdf for quantized reflection coefficient 1 */ 27extern const uint16_t WebRtcIsacfix_kRc1Cdf[12]; 28 29/* cdf for quantized reflection coefficient 2 */ 30extern const uint16_t WebRtcIsacfix_kRc2Cdf[12]; 31 32/* cdf for quantized reflection coefficient 3 */ 33extern const uint16_t WebRtcIsacfix_kRc3Cdf[12]; 34 35/* cdf for quantized reflection coefficient 4 */ 36extern const uint16_t WebRtcIsacfix_kRc4Cdf[12]; 37 38/* cdf for quantized reflection coefficient 5 */ 39extern const uint16_t WebRtcIsacfix_kRc5Cdf[12]; 40 41/* cdf for quantized reflection coefficient 6 */ 42extern const uint16_t WebRtcIsacfix_kRc6Cdf[12]; 43 44/* representation levels for quantized reflection coefficient 1 */ 45extern const int16_t WebRtcIsacfix_kRc1Levels[11]; 46 47/* representation levels for quantized reflection coefficient 2 */ 48extern const int16_t WebRtcIsacfix_kRc2Levels[11]; 49 50/* representation levels for quantized reflection coefficient 3 */ 51extern const int16_t WebRtcIsacfix_kRc3Levels[11]; 52 53/* representation levels for quantized reflection coefficient 4 */ 54extern const int16_t WebRtcIsacfix_kRc4Levels[11]; 55 56/* representation levels for quantized reflection coefficient 5 */ 57extern const int16_t WebRtcIsacfix_kRc5Levels[11]; 58 59/* representation levels for quantized reflection coefficient 6 */ 60extern const int16_t WebRtcIsacfix_kRc6Levels[11]; 61 62/* quantization boundary levels for reflection coefficients */ 63extern const int16_t WebRtcIsacfix_kRcBound[12]; 64 65/* initial indices for AR reflection coefficient quantizer and cdf table search */ 66extern const uint16_t WebRtcIsacfix_kRcInitInd[AR_ORDER]; 67 68/* pointers to AR cdf tables */ 69extern const uint16_t *WebRtcIsacfix_kRcCdfPtr[AR_ORDER]; 70 71/* pointers to AR representation levels tables */ 72extern const int16_t *WebRtcIsacfix_kRcLevPtr[AR_ORDER]; 73 74 75/******************** GAIN Coefficient Tables ***********************/ 76/* cdf for Gain coefficient */ 77extern const uint16_t WebRtcIsacfix_kGainCdf[19]; 78 79/* representation levels for quantized Gain coefficient */ 80extern const int32_t WebRtcIsacfix_kGain2Lev[18]; 81 82/* squared quantization boundary levels for Gain coefficient */ 83extern const int32_t WebRtcIsacfix_kGain2Bound[19]; 84 85/* pointer to Gain cdf table */ 86extern const uint16_t *WebRtcIsacfix_kGainPtr[1]; 87 88/* Gain initial index for gain quantizer and cdf table search */ 89extern const uint16_t WebRtcIsacfix_kGainInitInd[1]; 90 91/************************* Cosine Tables ****************************/ 92/* Cosine table */ 93extern const int16_t WebRtcIsacfix_kCos[6][60]; 94 95#endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ */ 96