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 | 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( |
| 17 | float *cbvectors, /* (o) Codebook vector for the |
| 18 | higher section */ |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | float *mem, /* (i) Buffer to create codebook |
| 25 | vectors from */ |
| 26 | int lMem /* (i) Length of buffer */ |
| 27 | ); |
| 28 | |
| 29 | void searchAugmentedCB( |
| 30 | int low, /* (i) Start index for the search */ |
| 31 | int high, /* (i) End index for the search */ |
| 32 | int stage, /* (i) Current stage */ |
| 33 | int startIndex, /* (i) CB index for the first |
| 34 | augmented vector */ |
| 35 | float *target, /* (i) Target vector for encoding */ |
| 36 | float *buffer, /* (i) Pointer to the end of the |
| 37 | buffer for augmented codebook |
| 38 | construction */ |
| 39 | float *max_measure, /* (i/o) Currently maximum measure */ |
| 40 | int *best_index,/* (o) Currently the best index */ |
| 41 | float *gain, /* (o) Currently the best gain */ |
| 42 | float *energy, /* (o) Energy of augmented |
| 43 | codebook vectors */ |
| 44 | float *invenergy/* (o) Inv energy of aug codebook |
| 45 | vectors */ |
| 46 | ); |
| 47 | |
| 48 | void createAugmentedVec( |
| 49 | int index, /* (i) Index for the aug vector |
| 50 | to be created */ |
| 51 | float *buffer, /* (i) Pointer to the end of the |
| 52 | buffer for augmented codebook |
| 53 | construction */ |
| 54 | float *cbVec /* (o) The construced codebook vector */ |
| 55 | ); |
| 56 | |
| 57 | #endif |
| 58 | |