Home
last modified time | relevance | path

Searched refs:LPC_ORDER (Results 1 – 8 of 8) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dg723_1enc.c70 static const int16_t binomial_window[LPC_ORDER] = {
77 static const int16_t bandwidth_expand[LPC_ORDER] = {
84 static const int16_t percept_flt_tbl[2][LPC_ORDER] = {
117 memcpy(p->prev_lsp, dc_lsp, LPC_ORDER * sizeof(int16_t)); in g723_1_encode_init()
169 memset(autocorr + 1, 0, LPC_ORDER * sizeof(int16_t)); in comp_autocorr()
171 for (i = 1; i <= LPC_ORDER; i++) { in comp_autocorr()
189 int16_t vector[LPC_ORDER]; in levinson_durbin()
193 memset(lpc, 0, LPC_ORDER * sizeof(int16_t)); in levinson_durbin()
195 for (i = 0; i < LPC_ORDER; i++) { in levinson_durbin()
233 int16_t autocorr[(LPC_ORDER + 1) * SUBFRAMES]; in comp_lpc_coeff()
[all …]
Dg723_1.c1191 int f1[LPC_ORDER / 2 + 1]; in lsp2lpc()
1192 int f2[LPC_ORDER / 2 + 1]; in lsp2lpc()
1196 for (j = 0; j < LPC_ORDER; j++) { in lsp2lpc()
1223 for (i = 2; i < LPC_ORDER / 2; i++) { in lsp2lpc()
1241 for (i = 0; i < LPC_ORDER / 2; i++) { in lsp2lpc()
1246 lpc[LPC_ORDER - i - 1] = av_clipl_int32(((ff1 - ff2) * 8) + in lsp2lpc()
1259 4096, 12288, 1 << 13, 14, LPC_ORDER); in ff_g723_1_lsp_interpolate()
1260 ff_acelp_weighted_vector_sum(lpc + LPC_ORDER, cur_lsp, prev_lsp, in ff_g723_1_lsp_interpolate()
1261 8192, 8192, 1 << 13, 14, LPC_ORDER); in ff_g723_1_lsp_interpolate()
1262 ff_acelp_weighted_vector_sum(lpc + 2 * LPC_ORDER, cur_lsp, prev_lsp, in ff_g723_1_lsp_interpolate()
[all …]
Dra144.c1548 int buffer1[LPC_ORDER]; in ff_eval_refl()
1549 int buffer2[LPC_ORDER]; in ff_eval_refl()
1553 for (i=0; i < LPC_ORDER; i++) in ff_eval_refl()
1556 refl[LPC_ORDER-1] = bp2[LPC_ORDER-1]; in ff_eval_refl()
1558 if ((unsigned) bp2[LPC_ORDER-1] + 0x1000 > 0x1fff) { in ff_eval_refl()
1563 for (i = LPC_ORDER-2; i >= 0; i--) { in ff_eval_refl()
1595 int buffer[LPC_ORDER]; in ff_eval_coefs()
1600 for (i=0; i < LPC_ORDER; i++) { in ff_eval_coefs()
1609 for (i=0; i < LPC_ORDER; i++) in ff_eval_coefs()
1617 for (i = 0; i < LPC_ORDER; i++) in ff_int_to_int16()
[all …]
Dra144enc.c65 ret = ff_lpc_init(&ractx->lpc_ctx, avctx->frame_size, LPC_ORDER, in ra144_encode_init()
146 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER); in get_match_score()
220 ff_celp_lp_synthesis_filterf(work, coefs, exc, BLOCKSIZE, LPC_ORDER); in adaptive_cb_search()
303 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER); in fixed_cb_search()
332 float data[BLOCKSIZE] = { 0 }, work[LPC_ORDER + BLOCKSIZE]; in ra144_encode_subblock()
333 float coefs[LPC_ORDER]; in ra144_encode_subblock()
341 for (i = 0; i < LPC_ORDER; i++) { in ra144_encode_subblock()
350 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, data, BLOCKSIZE, in ra144_encode_subblock()
351 LPC_ORDER); in ra144_encode_subblock()
353 zero[i] = work[LPC_ORDER + i]; in ra144_encode_subblock()
[all …]
Dg723_1.h40 #define LPC_ORDER 10 macro
128 int16_t prev_lsp[LPC_ORDER];
129 int16_t sid_lsp[LPC_ORDER];
132 int16_t synth_mem[LPC_ORDER];
133 int16_t fir_mem[LPC_ORDER];
134 int iir_mem[LPC_ORDER];
145 int16_t audio[FRAME_LEN + LPC_ORDER + PITCH_MAX + 4];
153 int16_t perf_fir_mem[LPC_ORDER]; ///< perceptual filter fir
154 int16_t perf_iir_mem[LPC_ORDER]; ///< and iir memories
227 static const int16_t dc_lsp[LPC_ORDER] = {
Dg723_1dec.c102 static const int16_t postfilter_tbl[2][LPC_ORDER] = {
130 memcpy(p->prev_lsp, dc_lsp, LPC_ORDER * sizeof(*p->prev_lsp)); in g723_1_decode_init()
131 memcpy(p->sid_lsp, dc_lsp, LPC_ORDER * sizeof(*p->sid_lsp)); in g723_1_decode_init()
445 int16_t *buf = p->audio + LPC_ORDER + offset; in comp_ppf_coeff()
519 int16_t *buf = p->audio + LPC_ORDER; in comp_interp_index()
597 for (n = 1; n <= LPC_ORDER; n++) {\
660 int16_t filter_coef[2][LPC_ORDER]; in formant_postfilter()
661 int filter_signal[LPC_ORDER + FRAME_LEN], *signal_ptr; in formant_postfilter()
664 memcpy(buf, p->fir_mem, LPC_ORDER * sizeof(*buf)); in formant_postfilter()
665 memcpy(filter_signal, p->iir_mem, LPC_ORDER * sizeof(*filter_signal)); in formant_postfilter()
[all …]
Dra144dec.c68 static const uint8_t sizes[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; in ra144_decode_frame()
70 int16_t block_coefs[NBLOCKS][LPC_ORDER]; // LPC coefficients of each sub-block in ra144_decode_frame()
71 unsigned int lpc_refl[LPC_ORDER]; // LPC reflection coefficients of the frame in ra144_decode_frame()
95 for (i = 0; i < LPC_ORDER; i++) in ra144_decode_frame()
Dra144.h38 #define LPC_ORDER 10 ///< order of LPC filter macro