2
|
1
|
|
2 /******************************************************************
|
|
3
|
|
4 iLBC Speech Coder ANSI-C Source Code
|
|
5
|
|
6 iCBSearch.h
|
|
7
|
|
8 Copyright (C) The Internet Society (2004).
|
|
9 All Rights Reserved.
|
|
10
|
|
11 ******************************************************************/
|
|
12
|
|
13 #ifndef __iLBC_ICBSEARCH_H
|
|
14 #define __iLBC_ICBSEARCH_H
|
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
|
20
|
|
21 void iCBSearch(iLBC_Enc_Inst_t * iLBCenc_inst,
|
|
22 /* (i) the encoder state structure */
|
|
23 int *index, /* (o) Codebook indices */
|
|
24 int *gain_index, /* (o) Gain quantization indices */
|
|
25 float *intarget, /* (i) Target vector for encoding */
|
|
26 float *mem, /* (i) Buffer for codebook construction */
|
|
27 int lMem, /* (i) Length of buffer */
|
|
28 int lTarget, /* (i) Length of vector */
|
|
29 int nStages, /* (i) Number of codebook stages */
|
|
30 float *weightDenum, /* (i) weighting filter coefficients */
|
|
31 float *weightState, /* (i) weighting filter state */
|
|
32 int block /* (i) the sub-block number */
|
|
33 );
|
|
34
|
|
35 #endif
|