00001 /* 00002 * iLBC - a library for the iLBC codec 00003 * 00004 * LPCdecode.h - The iLBC low bit rate speech codec. 00005 * 00006 * Adapted by Steve Underwood <steveu@coppice.org> from the reference 00007 * iLBC code supplied in RFC3951. 00008 * 00009 * Original code Copyright (C) The Internet Society (2004). 00010 * All changes to produce this version Copyright (C) 2008 by Steve Underwood 00011 * All Rights Reserved. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * 00017 * $Id: LPCdecode.h,v 1.2 2008/03/06 12:27:37 steveu Exp $ 00018 */ 00019 00020 #ifndef __iLBC_LPCDECODE_H 00021 #define __iLBC_LPCDECODE_H 00022 00023 void LSFinterpolate2a_dec(float *a, /* (o) lpc coefficients for a sub-frame */ 00024 float *lsf1, /* (i) first lsf coefficient vector */ 00025 float *lsf2, /* (i) second lsf coefficient vector */ 00026 float coef, /* (i) interpolation weight */ 00027 int length); /* (i) length of lsf vectors */ 00028 00029 void SimplelsfDEQ(float *lsfdeq, /* (o) dequantized lsf coefficients */ 00030 int *index, /* (i) quantization index */ 00031 int lpc_n); /* (i) number of LPCs */ 00032 00033 void DecoderInterpolateLSF(float *syntdenum, /* (o) synthesis filter coefficients */ 00034 float *weightdenum, /* (o) weighting denumerator coefficients */ 00035 float *lsfdeq, /* (i) dequantized lsf coefficients */ 00036 int length, /* (i) length of lsf coefficient vector */ 00037 ilbc_decode_state_t *iLBCdec_inst); /* (i) the decoder state structure */ 00038 00039 #endif