Searched refs:LPC_ORDER (Results 1 – 8 of 8) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | g723_1.c | 120 int f1[LPC_ORDER / 2 + 1]; in lsp2lpc() 121 int f2[LPC_ORDER / 2 + 1]; in lsp2lpc() 125 for (j = 0; j < LPC_ORDER; j++) { in lsp2lpc() 152 for (i = 2; i < LPC_ORDER / 2; i++) { in lsp2lpc() 170 for (i = 0; i < LPC_ORDER / 2; i++) { in lsp2lpc() 175 lpc[LPC_ORDER - i - 1] = av_clipl_int32(((ff1 - ff2) * 8) + in lsp2lpc() 188 4096, 12288, 1 << 13, 14, LPC_ORDER); in ff_g723_1_lsp_interpolate() 189 ff_acelp_weighted_vector_sum(lpc + LPC_ORDER, cur_lsp, prev_lsp, in ff_g723_1_lsp_interpolate() 190 8192, 8192, 1 << 13, 14, LPC_ORDER); in ff_g723_1_lsp_interpolate() 191 ff_acelp_weighted_vector_sum(lpc + 2 * LPC_ORDER, cur_lsp, prev_lsp, in ff_g723_1_lsp_interpolate() [all …]
|
D | g723_1.h | 40 #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 232 static const int16_t dc_lsp[LPC_ORDER] = { [all …]
|
D | g723_1enc.c | 69 memcpy(p->prev_lsp, dc_lsp, LPC_ORDER * sizeof(int16_t)); in g723_1_encode_init() 121 memset(autocorr + 1, 0, LPC_ORDER * sizeof(int16_t)); in comp_autocorr() 123 for (i = 1; i <= LPC_ORDER; i++) { in comp_autocorr() 141 int16_t vector[LPC_ORDER]; in levinson_durbin() 145 memset(lpc, 0, LPC_ORDER * sizeof(int16_t)); in levinson_durbin() 147 for (i = 0; i < LPC_ORDER; i++) { in levinson_durbin() 185 int16_t autocorr[(LPC_ORDER + 1) * SUBFRAMES]; in comp_lpc_coeff() 194 lpc_ptr += LPC_ORDER; in comp_lpc_coeff() 195 autocorr_ptr += LPC_ORDER + 1; in comp_lpc_coeff() 201 int f[LPC_ORDER + 2]; ///< coefficients of the sum and difference in lpc2lsp() [all …]
|
D | ra144.c | 1548 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 …]
|
D | ra144enc.c | 65 ret = ff_lpc_init(&ractx->lpc_ctx, avctx->frame_size, LPC_ORDER, in ra144_encode_init() 149 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER); in get_match_score() 223 ff_celp_lp_synthesis_filterf(work, coefs, exc, BLOCKSIZE, LPC_ORDER); in adaptive_cb_search() 306 ff_celp_lp_synthesis_filterf(work, coefs, vect, BLOCKSIZE, LPC_ORDER); in fixed_cb_search() 335 float data[BLOCKSIZE] = { 0 }, work[LPC_ORDER + BLOCKSIZE]; in ra144_encode_subblock() 336 float coefs[LPC_ORDER]; in ra144_encode_subblock() 344 for (i = 0; i < LPC_ORDER; i++) { in ra144_encode_subblock() 353 ff_celp_lp_synthesis_filterf(work + LPC_ORDER, coefs, data, BLOCKSIZE, in ra144_encode_subblock() 354 LPC_ORDER); in ra144_encode_subblock() 356 zero[i] = work[LPC_ORDER + i]; in ra144_encode_subblock() [all …]
|
D | g723_1dec.c | 58 memcpy(p->prev_lsp, dc_lsp, LPC_ORDER * sizeof(*p->prev_lsp)); in g723_1_decode_init() 59 memcpy(p->sid_lsp, dc_lsp, LPC_ORDER * sizeof(*p->sid_lsp)); in g723_1_decode_init() 373 int16_t *buf = p->audio + LPC_ORDER + offset; in comp_ppf_coeff() 447 int16_t *buf = p->audio + LPC_ORDER; in comp_interp_index() 525 for (n = 1; n <= LPC_ORDER; n++) {\ 588 int16_t filter_coef[2][LPC_ORDER]; in formant_postfilter() 589 int filter_signal[LPC_ORDER + FRAME_LEN], *signal_ptr; in formant_postfilter() 592 memcpy(buf, p->fir_mem, LPC_ORDER * sizeof(*buf)); in formant_postfilter() 593 memcpy(filter_signal, p->iir_mem, LPC_ORDER * sizeof(*filter_signal)); in formant_postfilter() 595 for (i = LPC_ORDER, j = 0; j < SUBFRAMES; i += SUBFRAME_LEN, j++) { in formant_postfilter() [all …]
|
D | ra144dec.c | 68 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()
|
D | ra144.h | 35 #define LPC_ORDER 10 ///< order of LPC filter macro
|