2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
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.
18 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_MASKING_MODEL_H_
19 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_MASKING_MODEL_H_
27 void WebRtcIsacfix_GetVars(const int16_t *input,
28 const int16_t *pitchGains_Q12,
32 void WebRtcIsacfix_GetLpcCoef(int16_t *inLoQ0,
34 MaskFiltstr_enc *maskdata,
36 const int16_t *pitchGains_Q12,
37 int32_t *gain_lo_hiQ17,
39 int16_t *hi_coeffQ15);
41 typedef int32_t (*CalculateResidualEnergy)(int lpc_order,
44 int16_t* a_polynomial,
46 int* q_val_residual_energy);
47 extern CalculateResidualEnergy WebRtcIsacfix_CalculateResidualEnergy;
49 int32_t WebRtcIsacfix_CalculateResidualEnergyC(int lpc_order,
52 int16_t* a_polynomial,
54 int* q_val_residual_energy);
56 #if (defined WEBRTC_DETECT_ARM_NEON) || (defined WEBRTC_ARCH_ARM_NEON)
57 int32_t WebRtcIsacfix_CalculateResidualEnergyNeon(int lpc_order,
60 int16_t* a_polynomial,
62 int* q_val_residual_energy);
65 #if defined(MIPS_DSP_R2_LE)
66 int32_t WebRtcIsacfix_CalculateResidualEnergyMIPS(int lpc_order,
69 int16_t* a_polynomial,
71 int* q_val_residual_energy);
78 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_LPC_MASKING_MODEL_H_ */