Mercurial > hg > audiostuff
comparison intercom/ilbc/createCB.h @ 2:13be24d74cd2
import intercom-0.4.1
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Fri, 25 Jun 2010 09:57:52 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:9cadc470e3da | 2:13be24d74cd2 |
|---|---|
| 1 | |
| 2 /****************************************************************** | |
| 3 | |
| 4 iLBC Speech Coder ANSI-C Source Code | |
| 5 | |
| 6 createCB.h | |
| 7 | |
| 8 Copyright (C) The Internet Society (2004). | |
| 9 All Rights Reserved. | |
| 10 | |
| 11 ******************************************************************/ | |
| 12 | |
| 13 #ifndef __iLBC_CREATECB_H | |
| 14 #define __iLBC_CREATECB_H | |
| 15 | |
| 16 void filteredCBvecs(float *cbvectors, /* (o) Codebook vector for the | |
| 17 higher section */ | |
| 18 float *mem, /* (i) Buffer to create codebook | |
| 19 vectors from */ | |
| 20 int lMem /* (i) Length of buffer */ | |
| 21 ); | |
| 22 | |
| 23 void searchAugmentedCB(int low, /* (i) Start index for the search */ | |
| 24 int high, /* (i) End index for the search */ | |
| 25 int stage, /* (i) Current stage */ | |
| 26 int startIndex, /* (i) CB index for the first | |
| 27 augmented vector */ | |
| 28 float *target, /* (i) Target vector for encoding */ | |
| 29 float *buffer, /* (i) Pointer to the end of the | |
| 30 buffer for augmented codebook | |
| 31 construction */ | |
| 32 float *max_measure, /* (i/o) Currently maximum measure */ | |
| 33 int *best_index, /* (o) Currently the best index */ | |
| 34 float *gain, /* (o) Currently the best gain */ | |
| 35 float *energy, /* (o) Energy of augmented | |
| 36 codebook vectors */ | |
| 37 float *invenergy /* (o) Inv energy of aug codebook | |
| 38 vectors */ | |
| 39 ); | |
| 40 | |
| 41 void createAugmentedVec(int index, /* (i) Index for the aug vector | |
| 42 to be created */ | |
| 43 float *buffer, /* (i) Pointer to the end of the | |
| 44 buffer for augmented codebook | |
| 45 construction */ | |
| 46 float *cbVec /* (o) The construced codebook vector */ | |
| 47 ); | |
| 48 | |
| 49 #endif |
