• Home
  • Raw
  • Download

Lines Matching refs:lpcSize

217    st->lpcSize=mode->lpcSize;  in sb_encoder_init()
242 st->old_lsp = (spx_lsp_t*)speex_alloc(st->lpcSize*sizeof(spx_lsp_t)); in sb_encoder_init()
243 st->old_qlsp = (spx_lsp_t*)speex_alloc(st->lpcSize*sizeof(spx_lsp_t)); in sb_encoder_init()
244 st->interp_qlpc = (spx_coef_t*)speex_alloc(st->lpcSize*sizeof(spx_coef_t)); in sb_encoder_init()
249 st->mem_sp = (spx_mem_t*)speex_alloc((st->lpcSize)*sizeof(spx_mem_t)); in sb_encoder_init()
250 st->mem_sp2 = (spx_mem_t*)speex_alloc((st->lpcSize)*sizeof(spx_mem_t)); in sb_encoder_init()
251 st->mem_sw = (spx_mem_t*)speex_alloc((st->lpcSize)*sizeof(spx_mem_t)); in sb_encoder_init()
253 for (i=0;i<st->lpcSize;i++) in sb_encoder_init()
254 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in sb_encoder_init()
373 ALLOC(lpc, st->lpcSize, spx_coef_t); in sb_encode()
374 ALLOC(interp_lpc, st->lpcSize, spx_coef_t); in sb_encode()
375 ALLOC(bw_lpc1, st->lpcSize, spx_coef_t); in sb_encode()
376 ALLOC(bw_lpc2, st->lpcSize, spx_coef_t); in sb_encode()
378 ALLOC(lsp, st->lpcSize, spx_lsp_t); in sb_encode()
379 ALLOC(qlsp, st->lpcSize, spx_lsp_t); in sb_encode()
380 ALLOC(interp_lsp, st->lpcSize, spx_lsp_t); in sb_encode()
381 ALLOC(interp_qlsp, st->lpcSize, spx_lsp_t); in sb_encode()
386 ALLOC(autocorr, st->lpcSize+1, spx_word16_t); in sb_encode()
399 _spx_autocorr(w_sig, autocorr, st->lpcSize+1, st->windowSize); in sb_encode()
403 for (i=0;i<st->lpcSize+1;i++) in sb_encode()
407 _spx_lpc(lpc, autocorr, st->lpcSize); in sb_encode()
411 roots=lpc_to_lsp (lpc, st->lpcSize, lsp, 10, LSP_DELTA1, stack); in sb_encode()
412 if (roots!=st->lpcSize) in sb_encode()
414 roots = lpc_to_lsp (lpc, st->lpcSize, lsp, 10, LSP_DELTA2, stack); in sb_encode()
415 if (roots!=st->lpcSize) { in sb_encode()
417 for (i=0;i<st->lpcSize;i++) in sb_encode()
518 for (i=0;i<st->lpcSize;i++) in sb_encode()
523 iir_mem16(high, st->interp_qlpc, high, st->frame_size, st->lpcSize, st->mem_sp, stack); in sb_encode()
533 SUBMODE(lsp_quant)(lsp, qlsp, st->lpcSize, bits); in sb_encode()
537 for (i=0;i<st->lpcSize;i++) in sb_encode()
539 for (i=0;i<st->lpcSize;i++) in sb_encode()
543 ALLOC(mem, st->lpcSize, spx_mem_t); in sb_encode()
566 lsp_interpolate(st->old_lsp, lsp, interp_lsp, st->lpcSize, sub, st->nbSubframes); in sb_encode()
567 lsp_interpolate(st->old_qlsp, qlsp, interp_qlsp, st->lpcSize, sub, st->nbSubframes); in sb_encode()
569 lsp_enforce_margin(interp_lsp, st->lpcSize, LSP_MARGIN); in sb_encode()
570 lsp_enforce_margin(interp_qlsp, st->lpcSize, LSP_MARGIN); in sb_encode()
572 lsp_to_lpc(interp_lsp, interp_lpc, st->lpcSize,stack); in sb_encode()
573 lsp_to_lpc(interp_qlsp, st->interp_qlpc, st->lpcSize, stack); in sb_encode()
575 bw_lpc(st->gamma1, interp_lpc, bw_lpc1, st->lpcSize); in sb_encode()
576 bw_lpc(st->gamma2, interp_lpc, bw_lpc2, st->lpcSize); in sb_encode()
582 for (i=0;i<st->lpcSize;i+=2) in sb_encode()
596 fir_mem16(sp, st->interp_qlpc, exc, st->subframeSize, st->lpcSize, st->mem_sp2, stack); in sb_encode()
615 for (i=0;i<st->lpcSize;i++) in sb_encode()
617 … iir_mem2(st->low_innov+offset, st->interp_qlpc, tmp_sig, st->subframeSize, st->lpcSize, mem); in sb_encode()
663 …mpulse_response(st->interp_qlpc, bw_lpc1, bw_lpc2, syn_resp, st->subframeSize, st->lpcSize, stack); in sb_encode()
671 for (i=0;i<st->lpcSize;i++) in sb_encode()
673 iir_mem16(res, st->interp_qlpc, res, st->subframeSize, st->lpcSize, mem, stack); in sb_encode()
675 for (i=0;i<st->lpcSize;i++) in sb_encode()
677 filter_mem16(res, bw_lpc1, bw_lpc2, res, st->subframeSize, st->lpcSize, mem, stack); in sb_encode()
680 for (i=0;i<st->lpcSize;i++) in sb_encode()
682 filter_mem16(sp, bw_lpc1, bw_lpc2, sw, st->subframeSize, st->lpcSize, mem, stack); in sb_encode()
695 SUBMODE(innovation_params), st->lpcSize, st->subframeSize, in sb_encode()
710 SUBMODE(innovation_params), st->lpcSize, st->subframeSize, in sb_encode()
732 for (i=0;i<st->lpcSize;i++) in sb_encode()
735 iir_mem16(exc, st->interp_qlpc, sp, st->subframeSize, st->lpcSize, st->mem_sp, stack); in sb_encode()
738 filter_mem16(sp, bw_lpc1, bw_lpc2, sw, st->subframeSize, st->lpcSize, st->mem_sw, stack); in sb_encode()
741 for (i=0;i<st->lpcSize;i++) in sb_encode()
743 for (i=0;i<st->lpcSize;i++) in sb_encode()
779 st->lpcSize=mode->lpcSize; in sb_decoder_init()
795 st->old_qlsp = (spx_lsp_t*)speex_alloc((st->lpcSize)*sizeof(spx_lsp_t)); in sb_decoder_init()
796 st->interp_qlpc = (spx_coef_t*)speex_alloc(st->lpcSize*sizeof(spx_coef_t)); in sb_decoder_init()
800 st->mem_sp = (spx_mem_t*)speex_alloc((2*st->lpcSize)*sizeof(spx_mem_t)); in sb_decoder_init()
845 bw_lpc(QCONST16(0.99f,15), st->interp_qlpc, st->interp_qlpc, st->lpcSize); in sb_decode_lost()
859 iir_mem16(out+st->frame_size, st->interp_qlpc, out+st->frame_size, st->frame_size, st->lpcSize, in sb_decode_lost()
954 …st->frame_size, st->interp_qlpc, out+st->frame_size, st->frame_size, st->lpcSize, st->mem_sp, stac… in sb_decode()
967 ALLOC(qlsp, st->lpcSize, spx_lsp_t); in sb_decode()
968 ALLOC(interp_qlsp, st->lpcSize, spx_lsp_t); in sb_decode()
969 SUBMODE(lsp_unquant)(qlsp, st->lpcSize, bits); in sb_decode()
973 for (i=0;i<st->lpcSize;i++) in sb_decode()
977 ALLOC(ak, st->lpcSize, spx_coef_t); in sb_decode()
1000 lsp_interpolate(st->old_qlsp, qlsp, interp_qlsp, st->lpcSize, sub, st->nbSubframes); in sb_decode()
1002 lsp_enforce_margin(interp_qlsp, st->lpcSize, LSP_MARGIN); in sb_decode()
1005 lsp_to_lpc(interp_qlsp, ak, st->lpcSize, stack); in sb_decode()
1012 for (i=0;i<st->lpcSize;i+=2) in sb_decode()
1080 iir_mem16(st->excBuf, st->interp_qlpc, sp, st->subframeSize, st->lpcSize, in sb_decode()
1084 for (i=0;i<st->lpcSize;i++) in sb_decode()
1092 for (i=0;i<st->lpcSize;i++) in sb_decode()
1257 for (i=0;i<st->lpcSize;i++) in sb_encoder_ctl()
1258 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in sb_encoder_ctl()
1259 for (i=0;i<st->lpcSize;i++) in sb_encoder_ctl()
1426 for (i=0;i<2*st->lpcSize;i++) in sb_decoder_ctl()