Home | History | Annotate | Download | only in ilbc
      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 "defines.h"
     20 #include "constants.h"
     21 #include "poly_to_lsp.h"
     22 #include "lsp_to_lsf.h"
     23 
     24 void WebRtcIlbcfix_Poly2Lsf(
     25     int16_t *lsf,   /* (o) lsf coefficients (Q13) */
     26     int16_t *a    /* (i) A coefficients (Q12) */
     27                             ) {
     28   int16_t lsp[10];
     29   WebRtcIlbcfix_Poly2Lsp(a, lsp, (int16_t*)WebRtcIlbcfix_kLspMean);
     30   WebRtcIlbcfix_Lsp2Lsf(lsp, lsf, 10);
     31 }
     32