#include <math.h>
#include "sipr.h"
#include "libavutil/mathematics.h"
#include "lsp.h"
#include "celp_math.h"
#include "acelp_vectors.h"
#include "acelp_pitch_delay.h"
#include "acelp_filters.h"
#include "celp_filters.h"
#include "sipr16kdata.h"
Go to the source code of this file.
Defines | |
#define | DIVIDE_BY_3(x) ((x) * 10923 >> 15) |
Functions | |
static void | lsf2lsp (const float *lsf, double *lsp) |
Convert an lsf vector into an lsp vector. | |
static void | dequant (float *out, const int *idx, const float *cbs[]) |
static void | lsf_decode_fp_16k (float *lsf_history, float *isp_new, const int *parm, int ma_pred) |
static int | dec_delay3_1st (int index) |
static int | dec_delay3_2nd (int index, int pit_min, int pit_max, int pitch_lag_prev) |
static void | postfilter (float *out_data, float *synth, float *iir_mem, float *filt_mem[2], float *mem_preemph) |
static void | acelp_lp_decodef (float *lp_1st, float *lp_2nd, const double *lsp_2nd, const double *lsp_prev) |
Floating point version of ff_acelp_lp_decode(). | |
static float | acelp_decode_gain_codef (float gain_corr_factor, const float *fc_v, float mr_energy, const float *quant_energy, const float *ma_prediction_coeff, int subframe_size, int ma_pred_order) |
Floating point version of ff_acelp_decode_gain_code(). | |
void | ff_sipr_decode_frame_16k (SiprContext *ctx, SiprParameters *params, float *out_data) |
void | ff_sipr_init_16k (SiprContext *ctx) |
#define DIVIDE_BY_3 | ( | x | ) | ((x) * 10923 >> 15) |
static float acelp_decode_gain_codef | ( | float | gain_corr_factor, | |
const float * | fc_v, | |||
float | mr_energy, | |||
const float * | quant_energy, | |||
const float * | ma_prediction_coeff, | |||
int | subframe_size, | |||
int | ma_pred_order | |||
) | [static] |
Floating point version of ff_acelp_decode_gain_code().
Definition at line 159 of file sipr16k.c.
Referenced by ff_sipr_decode_frame_16k().
static void acelp_lp_decodef | ( | float * | lp_1st, | |
float * | lp_2nd, | |||
const double * | lsp_2nd, | |||
const double * | lsp_prev | |||
) | [static] |
Floating point version of ff_acelp_lp_decode().
Definition at line 140 of file sipr16k.c.
Referenced by ff_sipr_decode_frame_16k().
static int dec_delay3_1st | ( | int | index | ) | [static] |
static int dec_delay3_2nd | ( | int | index, | |
int | pit_min, | |||
int | pit_max, | |||
int | pitch_lag_prev | |||
) | [static] |
static void dequant | ( | float * | out, | |
const int * | idx, | |||
const float * | cbs[] | |||
) | [static] |
void ff_sipr_decode_frame_16k | ( | SiprContext * | ctx, | |
SiprParameters * | params, | |||
float * | out_data | |||
) |
void ff_sipr_init_16k | ( | SiprContext * | ctx | ) |
static void lsf2lsp | ( | const float * | lsf, | |
double * | lsp | |||
) | [static] |
Convert an lsf vector into an lsp vector.
lsf | input lsf vector | |
lsp | output lsp vector |
Definition at line 43 of file sipr16k.c.
Referenced by ff_sipr_decode_frame_16k().
static void lsf_decode_fp_16k | ( | float * | lsf_history, | |
float * | isp_new, | |||
const int * | parm, | |||
int | ma_pred | |||
) | [static] |
static void postfilter | ( | float * | out_data, | |
float * | synth, | |||
float * | iir_mem, | |||
float * | filt_mem[2], | |||
float * | mem_preemph | |||
) | [static] |