Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | |
| 2 | /****************************************************************** |
| 3 | |
| 4 | iLBC Speech Coder ANSI-C Source Code |
| 5 | |
| 6 | StateSearchW.h |
| 7 | |
| 8 | Copyright (C) The Internet Society (2004). |
| 9 | All Rights Reserved. |
| 10 | |
| 11 | ******************************************************************/ |
| 12 | |
| 13 | #ifndef __iLBC_STATESEARCHW_H |
| 14 | #define __iLBC_STATESEARCHW_H |
| 15 | |
| 16 | void AbsQuantW( |
| 17 | iLBC_Enc_Inst_t *iLBCenc_inst, |
| 18 | /* (i) Encoder instance */ |
| 19 | float *in, /* (i) vector to encode */ |
| 20 | float *syntDenum, /* (i) denominator of synthesis filter */ |
| 21 | float *weightDenum, /* (i) denominator of weighting filter */ |
| 22 | int *out, /* (o) vector of quantizer indexes */ |
| 23 | int len, /* (i) length of vector to encode and |
| 24 | vector of quantizer indexes */ |
| 25 | int state_first /* (i) position of start state in the |
| 26 | 80 vec */ |
| 27 | ); |
| 28 | |
| 29 | void StateSearchW( |
| 30 | iLBC_Enc_Inst_t *iLBCenc_inst, |
| 31 | /* (i) Encoder instance */ |
| 32 | float *residual,/* (i) target residual vector */ |
| 33 | float *syntDenum, /* (i) lpc synthesis filter */ |
| 34 | float *weightDenum, /* (i) weighting filter denuminator */ |
| 35 | int *idxForMax, /* (o) quantizer index for maximum |
| 36 | amplitude */ |
| 37 | int *idxVec, /* (o) vector of quantization indexes */ |
| 38 | int len, /* (i) length of all vectors */ |
| 39 | int state_first /* (i) position of start state in the |
| 40 | 80 vec */ |
| 41 | ); |
| 42 | |
| 43 | |
| 44 | #endif |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |