libilbc
0.0.1
|
00001 /* 00002 * iLBC - a library for the iLBC codec 00003 * 00004 * StateSearchW.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: StateSearchW.h,v 1.2 2008/03/06 12:27:37 steveu Exp $ 00018 */ 00019 00020 #ifndef __iLBC_STATESEARCHW_H 00021 #define __iLBC_STATESEARCHW_H 00022 00023 void AbsQuantW(ilbc_encode_state_t *iLBCenc_inst, /* (i) Encoder instance */ 00024 float *in, /* (i) vector to encode */ 00025 float *syntDenum, /* (i) denominator of synthesis filter */ 00026 float *weightDenum, /* (i) denominator of weighting filter */ 00027 int *out, /* (o) vector of quantizer indexes */ 00028 int len, /* (i) length of vector to encode and 00029 vector of quantizer indexes */ 00030 int state_first); /* (i) position of start state in the 80 vec */ 00031 00032 void StateSearchW(ilbc_encode_state_t *iLBCenc_inst, /* (i) Encoder instance */ 00033 float *residual, /* (i) target residual vector */ 00034 float *syntDenum, /* (i) lpc synthesis filter */ 00035 float *weightDenum, /* (i) weighting filter denuminator */ 00036 int *idxForMax, /* (o) quantizer index for maximum 00037 amplitude */ 00038 int *idxVec, /* (o) vector of quantization indexes */ 00039 int len, /* (i) length of all vectors */ 00040 int state_first); /* (i) position of start state in the 80 vec */ 00041 00042 #endif