libilbc 0.0.1
StateSearchW.h
1/*
2 * iLBC - a library for the iLBC codec
3 *
4 * StateSearchW.h - The iLBC low bit rate speech codec.
5 *
6 * Adapted by Steve Underwood <steveu@coppice.org> from the reference
7 * iLBC code supplied in RFC3951.
8 *
9 * Original code Copyright (C) The Internet Society (2004).
10 * All changes to produce this version Copyright (C) 2008 by Steve Underwood
11 * All Rights Reserved.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 */
17
18#ifndef __iLBC_STATESEARCHW_H
19#define __iLBC_STATESEARCHW_H
20
21void AbsQuantW(ilbc_encode_state_t *iLBCenc_inst, /* (i) Encoder instance */
22 float *in, /* (i) vector to encode */
23 float *syntDenum, /* (i) denominator of synthesis filter */
24 float *weightDenum, /* (i) denominator of weighting filter */
25 int *out, /* (o) vector of quantizer indexes */
26 int len, /* (i) length of vector to encode and
27 vector of quantizer indexes */
28 int state_first); /* (i) position of start state in the 80 vec */
29
30void StateSearchW(ilbc_encode_state_t *iLBCenc_inst, /* (i) Encoder instance */
31 float *residual, /* (i) target residual vector */
32 float *syntDenum, /* (i) lpc synthesis filter */
33 float *weightDenum, /* (i) weighting filter denuminator */
34 int *idxForMax, /* (o) quantizer index for maximum
35 amplitude */
36 int *idxVec, /* (o) vector of quantization indexes */
37 int len, /* (i) length of all vectors */
38 int state_first); /* (i) position of start state in the 80 vec */
39
40#endif
Definition ilbc/ilbc.h:85