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_MAIN_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ 20 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ 21 22 #include "structs.h" 23 24 /********************* AR Coefficient Tables ************************/ 25 /* cdf for quantized reflection coefficient 1 */ 26 extern const WebRtc_UWord16 WebRtcIsac_kQArRc1Cdf[12]; 27 28 /* cdf for quantized reflection coefficient 2 */ 29 extern const WebRtc_UWord16 WebRtcIsac_kQArRc2Cdf[12]; 30 31 /* cdf for quantized reflection coefficient 3 */ 32 extern const WebRtc_UWord16 WebRtcIsac_kQArRc3Cdf[12]; 33 34 /* cdf for quantized reflection coefficient 4 */ 35 extern const WebRtc_UWord16 WebRtcIsac_kQArRc4Cdf[12]; 36 37 /* cdf for quantized reflection coefficient 5 */ 38 extern const WebRtc_UWord16 WebRtcIsac_kQArRc5Cdf[12]; 39 40 /* cdf for quantized reflection coefficient 6 */ 41 extern const WebRtc_UWord16 WebRtcIsac_kQArRc6Cdf[12]; 42 43 /* quantization boundary levels for reflection coefficients */ 44 extern const WebRtc_Word16 WebRtcIsac_kQArBoundaryLevels[12]; 45 46 /* initial indices for AR reflection coefficient quantizer and cdf table search */ 47 extern const WebRtc_UWord16 WebRtcIsac_kQArRcInitIndex[AR_ORDER]; 48 49 /* pointers to AR cdf tables */ 50 extern const WebRtc_UWord16 *WebRtcIsac_kQArRcCdfPtr[AR_ORDER]; 51 52 /* pointers to AR representation levels tables */ 53 extern const WebRtc_Word16 *WebRtcIsac_kQArRcLevelsPtr[AR_ORDER]; 54 55 56 /******************** GAIN Coefficient Tables ***********************/ 57 /* cdf for Gain coefficient */ 58 extern const WebRtc_UWord16 WebRtcIsac_kQGainCdf[19]; 59 60 /* representation levels for quantized Gain coefficient */ 61 extern const WebRtc_Word32 WebRtcIsac_kQGain2Levels[18]; 62 63 /* squared quantization boundary levels for Gain coefficient */ 64 extern const WebRtc_Word32 WebRtcIsac_kQGain2BoundaryLevels[19]; 65 66 /* pointer to Gain cdf table */ 67 extern const WebRtc_UWord16 *WebRtcIsac_kQGainCdf_ptr[1]; 68 69 /* Gain initial index for gain quantizer and cdf table search */ 70 extern const WebRtc_UWord16 WebRtcIsac_kQGainInitIndex[1]; 71 72 /************************* Cosine Tables ****************************/ 73 /* Cosine table */ 74 extern const WebRtc_Word16 WebRtcIsac_kCos[6][60]; 75 76 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_MAIN_SOURCE_SPECTRUM_AR_MODEL_TABLES_H_ */ 77