#include <math.h>
#include "ltp.h"
#include "stack_alloc.h"
#include "filters.h"
#include <speex/speex_bits.h>
#include "math_approx.h"
Defines | |
#define | NULL 0 |
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 count_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 count_lost, int subframe_offset, spx_word16_t last_pitch_gain, int cdbk_offset) |
#define NULL 0 |
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
References GAIN_SCALING_1.
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
References GAIN_SCALING_1.
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 | |||
) |
References ADD32, ALLOC, DIV32, DIV32_16, EXTEND32, MULT16_16, normalize16(), SHL32, SHR16, SHR32, spx_sqrt, SUB32, and VARDECL.
Referenced by nb_encode(), and pitch_search_3tap().
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
References ALLOC, ltp_params::gain_bits, NULL, open_loop_nbest_pitch(), ltp_params::pitch_bits, speex_bits_pack(), and VARDECL.
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 | count_lost, | |||
int | subframe_offset, | |||
spx_word16_t | last_pitch_gain, | |||
int | cdbk_offset | |||
) |