libilbc  0.0.1
iCBSearch.h
00001 /*
00002  * iLBC - a library for the iLBC codec
00003  *
00004  * iCBSearch.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: iCBSearch.h,v 1.2 2008/03/06 12:27:38 steveu Exp $
00018  */
00019 
00020 #ifndef __iLBC_ICBSEARCH_H
00021 #define __iLBC_ICBSEARCH_H
00022 
00023 void iCBSearch(ilbc_encode_state_t *iLBCenc_inst,   /* (i) the encoder state structure */
00024                int *index,                          /* (o) Codebook indices */
00025                int *gain_index,                     /* (o) Gain quantization indices */
00026                float *intarget,                     /* (i) Target vector for encoding */
00027                float *mem,                          /* (i) Buffer for codebook construction */
00028                int lMem,                            /* (i) Length of buffer */
00029                int lTarget,                         /* (i) Length of vector */
00030                int nStages,                         /* (i) Number of codebook stages */
00031                float *weightDenum,                  /* (i) weighting filter coefficients */
00032                float *weightState,                  /* (i) weighting filter state */
00033                int block);                          /* (i) the sub-block number */
00034 
00035 #endif