Asterisk - The Open Source Telephony Project
18.5.0
codecs
ilbc
createCB.h
Go to the documentation of this file.
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
filteredCBvecs
void filteredCBvecs(float *cbvectors, float *mem, int lMem)
Definition:
createCB.c:29
createAugmentedVec
void createAugmentedVec(int index, float *buffer, float *cbVec)
Definition:
createCB.c:190
searchAugmentedCB
void searchAugmentedCB(int low, int high, int stage, int startIndex, float *target, float *buffer, float *max_measure, int *best_index, float *gain, float *energy, float *invenergy)
Definition:
createCB.c:71
Generated on Sun Aug 8 2021 19:43:41 for Asterisk - The Open Source Telephony Project by
1.8.13