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 WebRtcIlbcfix_Poly2Lsf.c 16 17 ******************************************************************/ 18 19 #include "modules/audio_coding/codecs/ilbc/poly_to_lsf.h" 20 21 #include "modules/audio_coding/codecs/ilbc/constants.h" 22 #include "modules/audio_coding/codecs/ilbc/lsp_to_lsf.h" 23 #include "modules/audio_coding/codecs/ilbc/poly_to_lsp.h" 24 WebRtcIlbcfix_Poly2Lsf(int16_t * lsf,int16_t * a)25void WebRtcIlbcfix_Poly2Lsf( 26 int16_t *lsf, /* (o) lsf coefficients (Q13) */ 27 int16_t *a /* (i) A coefficients (Q12) */ 28 ) { 29 int16_t lsp[10]; 30 WebRtcIlbcfix_Poly2Lsp(a, lsp, (int16_t*)WebRtcIlbcfix_kLspMean); 31 WebRtcIlbcfix_Lsp2Lsf(lsp, lsf, 10); 32 } 33