24 #ifndef AVCODEC_SIPR_H
25 #define AVCODEC_SIPR_H
32 #define LP_FILTER_ORDER_16k 16
33 #define L_SUBFR_16k 80
37 #define LSFQ_DIFF_MIN (0.0125 * M_PI)
39 #define LP_FILTER_ORDER 10
42 #define L_INTERPOL (LP_FILTER_ORDER + 1)
47 #define SUBFRAME_COUNT_16k 2
struct SiprContext SiprContext
int gp_index[5]
adaptive-codebook gain indexes
int pitch_delay[5]
pitch delay
This structure describes decoded (raw) audio or video data.
#define SUBFR_SIZE
Subframe size for all modes except 16k.
memory handling functions
double lsp_history_16k[16]
float iir_mem[LP_FILTER_ORDER_16k+1]
float synth_buf[LP_FILTER_ORDER+5 *SUBFR_SIZE+6]
float postfilter_syn5k0[LP_FILTER_ORDER+SUBFR_SIZE *5]
float mem_preemph[LP_FILTER_ORDER_16k]
float lsf_history[LP_FILTER_ORDER_16k]
#define L_INTERPOL
Number of past samples needed for excitation interpolation.
float highpass_filt_mem[2]
float lsp_history[LP_FILTER_ORDER]
int16_t fc_indexes[5][10]
fixed-codebook indexes
float synth[LP_FILTER_ORDER_16k]
main external API structure.
static void(WINAPI *cond_broadcast)(pthread_cond_t *cond)
void(* decode_frame)(struct SiprContext *ctx, SiprParameters *params, float *out_data)
float postfilter_mem5k0[PITCH_DELAY_MAX+LP_FILTER_ORDER]
#define DECLARE_ALIGNED(n, t, v)
float postfilter_mem[PITCH_DELAY_MAX+LP_FILTER_ORDER]
int gc_index[5]
fixed-codebook gain indexes
float excitation[L_INTERPOL+PITCH_MAX+2 *L_SUBFR_16k]
void ff_sipr_decode_frame_16k(SiprContext *ctx, SiprParameters *params, float *out_data)
#define LP_FILTER_ORDER_16k
int ma_pred_switch
switched moving average predictor
const float ff_pow_0_5[16]
struct SiprParameters SiprParameters
void ff_sipr_init_16k(SiprContext *ctx)
float filt_buf[2][LP_FILTER_ORDER_16k+1]