#include <speex/speex_bits.h>
#include "misc.h"
Include dependency graph for ltp.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
struct | ltp_params |
Defines | |
#define | gain_3tap_to_1tap(g) (ABS(g[1]) + (g[0]>0 ? g[0] : -.5*g[0]) + (g[2]>0 ? g[2] : -.5*g[2])) |
Functions | |
void | open_loop_nbest_pitch (spx_sig_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack) |
int | pitch_search_3tap (spx_sig_t target[], spx_sig_t *sw, spx_coef_t ak[], spx_coef_t awk1[], spx_coef_t awk2[], spx_sig_t exc[], const void *par, int start, int end, spx_word16_t pitch_coef, int p, int nsf, SpeexBits *bits, char *stack, spx_sig_t *exc2, spx_word16_t *r, int complexity, int cdbk_offset, int plc_tuning) |
void | pitch_unquant_3tap (spx_sig_t exc[], int start, int end, spx_word16_t pitch_coef, const void *par, int nsf, int *pitch_val, spx_word16_t *gain_val, SpeexBits *bits, char *stack, int lost, int subframe_offset, spx_word16_t last_pitch_gain, int cdbk_offset) |
int | forced_pitch_quant (spx_sig_t target[], spx_sig_t *sw, spx_coef_t ak[], spx_coef_t awk1[], spx_coef_t awk2[], spx_sig_t exc[], const void *par, int start, int end, spx_word16_t pitch_coef, int p, int nsf, SpeexBits *bits, char *stack, spx_sig_t *exc2, spx_word16_t *r, int complexity, int cdbk_offset, int plc_tuning) |
void | forced_pitch_unquant (spx_sig_t exc[], int start, int end, spx_word16_t pitch_coef, const void *par, int nsf, int *pitch_val, spx_word16_t *gain_val, SpeexBits *bits, char *stack, int lost, int subframe_offset, spx_word16_t last_pitch_gain, int cdbk_offset) |
#define gain_3tap_to_1tap | ( | g | ) | (ABS(g[1]) + (g[0]>0 ? g[0] : -.5*g[0]) + (g[2]>0 ? g[2] : -.5*g[2])) |
int forced_pitch_quant | ( | spx_sig_t | target[], | |
spx_sig_t * | sw, | |||
spx_coef_t | ak[], | |||
spx_coef_t | awk1[], | |||
spx_coef_t | awk2[], | |||
spx_sig_t | exc[], | |||
const void * | par, | |||
int | start, | |||
int | end, | |||
spx_word16_t | pitch_coef, | |||
int | p, | |||
int | nsf, | |||
SpeexBits * | bits, | |||
char * | stack, | |||
spx_sig_t * | exc2, | |||
spx_word16_t * | r, | |||
int | complexity, | |||
int | cdbk_offset, | |||
int | plc_tuning | |||
) |
Forced pitch delay and gain
void forced_pitch_unquant | ( | spx_sig_t | exc[], | |
int | start, | |||
int | end, | |||
spx_word16_t | pitch_coef, | |||
const void * | par, | |||
int | nsf, | |||
int * | pitch_val, | |||
spx_word16_t * | gain_val, | |||
SpeexBits * | bits, | |||
char * | stack, | |||
int | count_lost, | |||
int | subframe_offset, | |||
spx_word16_t | last_pitch_gain, | |||
int | cdbk_offset | |||
) |
Unquantize forced pitch delay and gain
void open_loop_nbest_pitch | ( | spx_sig_t * | sw, | |
int | start, | |||
int | end, | |||
int | len, | |||
int * | pitch, | |||
spx_word16_t * | gain, | |||
int | N, | |||
char * | stack | |||
) |
int pitch_search_3tap | ( | spx_sig_t | target[], | |
spx_sig_t * | sw, | |||
spx_coef_t | ak[], | |||
spx_coef_t | awk1[], | |||
spx_coef_t | awk2[], | |||
spx_sig_t | exc[], | |||
const void * | par, | |||
int | start, | |||
int | end, | |||
spx_word16_t | pitch_coef, | |||
int | p, | |||
int | nsf, | |||
SpeexBits * | bits, | |||
char * | stack, | |||
spx_sig_t * | exc2, | |||
spx_word16_t * | r, | |||
int | complexity, | |||
int | cdbk_offset, | |||
int | plc_tuning | |||
) |
Finds the best quantized 3-tap pitch predictor by analysis by synthesis
void pitch_unquant_3tap | ( | spx_sig_t | exc[], | |
int | start, | |||
int | end, | |||
spx_word16_t | pitch_coef, | |||
const void * | par, | |||
int | nsf, | |||
int * | pitch_val, | |||
spx_word16_t * | gain_val, | |||
SpeexBits * | bits, | |||
char * | stack, | |||
int | lost, | |||
int | subframe_offset, | |||
spx_word16_t | last_pitch_gain, | |||
int | cdbk_offset | |||
) |