Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include <math.h>
#include <string.h>
#include "iLBC_define.h"
#include "constants.h"
#include "filter.h"
Go to the source code of this file.
Functions | |
void | enh_upsample (float *useq1, float *seq1, int dim1, int hfl) |
void | enhancer (float *odata, float *idata, int idatal, int centerStartPos, float alpha0, float *period, float *plocs, int periodl) |
int | enhancerInterface (float *out, float *in, iLBC_Dec_Inst_t *iLBCdec_inst) |
void | getsseq (float *sseq, float *idata, int idatal, int centerStartPos, float *period, float *plocs, int periodl, int hl) |
void | mycorr1 (float *corr, float *seq1, int dim1, const float *seq2, int dim2) |
void | NearestNeighbor (int *index, float *array, float value, int arlength) |
void | refiner (float *seg, float *updStartPos, float *idata, int idatal, int centerStartPos, float estSegPos, float period) |
void | smath (float *odata, float *sseq, int hl, float alpha0) |
float | xCorrCoef (float *target, float *regressor, int subl) |
void enh_upsample | ( | float * | useq1, |
float * | seq1, | ||
int | dim1, | ||
int | hfl | ||
) |
Definition at line 84 of file enhancer.c.
References ENH_UPS0, and polyphaserTbl.
Referenced by refiner().
void enhancer | ( | float * | odata, |
float * | idata, | ||
int | idatal, | ||
int | centerStartPos, | ||
float | alpha0, | ||
float * | period, | ||
float * | plocs, | ||
int | periodl | ||
) |
Definition at line 455 of file enhancer.c.
References ENH_BLOCKL, ENH_HL, getsseq(), and smath().
Referenced by enhancerInterface().
int enhancerInterface | ( | float * | out, |
float * | in, | ||
iLBC_Dec_Inst_t * | iLBCdec_inst | ||
) |
Definition at line 517 of file enhancer.c.
References iLBC_Dec_Inst_t_::blockl, DownSample(), ENH_ALPHA0, ENH_BLOCKL, ENH_BLOCKL_HALF, iLBC_Dec_Inst_t_::enh_buf, ENH_BUFL, ENH_NBLOCKS, ENH_NBLOCKS_EXTRA, ENH_NBLOCKS_TOT, iLBC_Dec_Inst_t_::enh_period, enh_plocsTbl, enhancer(), in, lpFilt_coefsTbl, iLBC_Dec_Inst_t_::mode, out, iLBC_Dec_Inst_t_::prev_enh_pl, and xCorrCoef().
Referenced by iLBC_decode().
void getsseq | ( | float * | sseq, |
float * | idata, | ||
int | idatal, | ||
int | centerStartPos, | ||
float * | period, | ||
float * | plocs, | ||
int | periodl, | ||
int | hl | ||
) |
Definition at line 372 of file enhancer.c.
References ENH_BLOCKL, ENH_BLOCKL_HALF, ENH_HL, ENH_OVERHANG, ENH_PLOCSL, NearestNeighbor(), and refiner().
Referenced by enhancer().
void mycorr1 | ( | float * | corr, |
float * | seq1, | ||
int | dim1, | ||
const float * | seq2, | ||
int | dim2 | ||
) |
Definition at line 58 of file enhancer.c.
Referenced by refiner().
void NearestNeighbor | ( | int * | index, |
float * | array, | ||
float | value, | ||
int | arlength | ||
) |
Definition at line 25 of file enhancer.c.
References array(), and value.
Referenced by getsseq().
void refiner | ( | float * | seg, |
float * | updStartPos, | ||
float * | idata, | ||
int | idatal, | ||
int | centerStartPos, | ||
float | estSegPos, | ||
float | period | ||
) |
Definition at line 172 of file enhancer.c.
References ENH_BLOCKL, ENH_CORRDIM, ENH_FL0, ENH_SLOP, ENH_UPS0, enh_upsample(), ENH_VECTL, mycorr1(), and polyphaserTbl.
Referenced by getsseq().
void smath | ( | float * | odata, |
float * | sseq, | ||
int | hl, | ||
float | alpha0 | ||
) |
Definition at line 267 of file enhancer.c.
References BLOCKL_MAX, cos, ENH_BLOCKL, ENH_HL, errs, and PI.
Referenced by enhancer().
float xCorrCoef | ( | float * | target, |
float * | regressor, | ||
int | subl | ||
) |
Definition at line 485 of file enhancer.c.
Referenced by enhancerInterface(), and iLBC_decode().