• Home
  • Raw
  • Download

Lines Matching refs:subframeSize

133    st->nbSubframes=mode->frameSize/mode->subframeSize;  in nb_encoder_init()
134 st->subframeSize=mode->subframeSize; in nb_encoder_init()
135 st->windowSize = st->frameSize+st->subframeSize; in nb_encoder_init()
638 ALLOC(target, st->subframeSize, spx_word16_t); in nb_encode()
639 ALLOC(innov, st->subframeSize, spx_sig_t); in nb_encode()
640 ALLOC(exc32, st->subframeSize, spx_word32_t); in nb_encode()
641 ALLOC(ringing, st->subframeSize, spx_word16_t); in nb_encode()
642 ALLOC(syn_resp, st->subframeSize, spx_word16_t); in nb_encode()
643 ALLOC(real_exc, st->subframeSize, spx_word16_t); in nb_encode()
653 int response_bound = st->subframeSize; in nb_encode()
656 offset = st->subframeSize*sub; in nb_encode()
708 speex_assert(st->windowSize-st->frameSize == st->subframeSize); in nb_encode()
711 for (i=0;i<st->subframeSize;i++) in nb_encode()
714 for (i=0;i<st->subframeSize;i++) in nb_encode()
715 real_exc[i] = sw[i] = in[i+((sub-1)*st->subframeSize)]; in nb_encode()
717 … fir_mem16(real_exc, interp_qlpc, real_exc, st->subframeSize, st->lpcSize, st->mem_exc2, stack); in nb_encode()
722 for (i=response_bound;i<st->subframeSize;i++) in nb_encode()
728 for (i=0;i<st->subframeSize;i++) in nb_encode()
735 SPEEX_MEMSET(&ringing[response_bound], 0, st->subframeSize-response_bound); in nb_encode()
737 iir_mem16(ringing, interp_qlpc, ringing, st->subframeSize, st->lpcSize, mem, stack); in nb_encode()
740 filter_mem16(ringing, bw_lpc1, bw_lpc2, ringing, st->subframeSize, st->lpcSize, mem, stack); in nb_encode()
746 filter_mem16(sw, bw_lpc1, bw_lpc2, sw, st->subframeSize, st->lpcSize, mem, stack); in nb_encode()
753 for (i=0;i<st->subframeSize;i++) in nb_encode()
757 SPEEX_MEMSET(exc, 0, st->subframeSize); in nb_encode()
792 st->lpcSize, st->subframeSize, bits, stack, in nb_encode()
798 SPEEX_MEMSET(innov, 0, st->subframeSize); in nb_encode()
801 for (i=0;i<st->subframeSize;i++) in nb_encode()
804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),SIG_SHIFT); in nb_encode()
839 signal_div(target, target, ener, st->subframeSize); in nb_encode()
846 SUBMODE(innovation_params), st->lpcSize, st->subframeSize, in nb_encode()
850 signal_mul(innov, innov, ener, st->subframeSize); in nb_encode()
852 for (i=0;i<st->subframeSize;i++) in nb_encode()
859 ALLOC(innov2, st->subframeSize, spx_sig_t); in nb_encode()
860 SPEEX_MEMSET(innov2, 0, st->subframeSize); in nb_encode()
861 for (i=0;i<st->subframeSize;i++) in nb_encode()
864 SUBMODE(innovation_params), st->lpcSize, st->subframeSize, in nb_encode()
866 … signal_mul(innov2, innov2, MULT16_32_Q15(QCONST16(0.454545f,15),ener), st->subframeSize); in nb_encode()
867 for (i=0;i<st->subframeSize;i++) in nb_encode()
871 for (i=0;i<st->subframeSize;i++) in nb_encode()
875 st->innov_rms_save[sub] = compute_rms(innov, st->subframeSize); in nb_encode()
880 iir_mem16(exc, interp_qlpc, sw, st->subframeSize, st->lpcSize, st->mem_sp, stack); in nb_encode()
884 filter_mem16(sw, bw_lpc1, bw_lpc2, sw, st->subframeSize, st->lpcSize, st->mem_sw, stack); in nb_encode()
948 st->nbSubframes=mode->frameSize/mode->subframeSize; in nb_decoder_init()
949 st->subframeSize=mode->subframeSize; in nb_decoder_init()
959 …st->excBuf = (spx_word16_t*)speex_alloc((st->frameSize + 2*st->max_pitch + st->subframeSize + 12)*… in nb_decoder_init()
960 st->exc = st->excBuf + 2*st->max_pitch + st->subframeSize + 6; in nb_decoder_init()
1054 SPEEX_MOVE(st->excBuf, st->excBuf+st->frameSize, 2*st->max_pitch + st->subframeSize + 12); in nb_decode_lost()
1069 iir_mem16(&st->exc[-st->subframeSize], st->interp_qlpc, out, st->frameSize, in nb_decode_lost()
1201 SPEEX_MOVE(st->excBuf, st->excBuf+st->frameSize, 2*st->max_pitch + st->subframeSize + 12); in nb_decode()
1282 ALLOC(innov, st->subframeSize, spx_sig_t); in nb_decode()
1283 ALLOC(exc32, st->subframeSize, spx_word32_t); in nb_decode()
1308 offset = st->subframeSize*sub; in nb_decode()
1318 SPEEX_MEMSET(exc, 0, st->subframeSize); in nb_decode()
1356 st->subframeSize, &pitch, &pitch_gain[0], bits, stack, in nb_decode()
1362 …values32(exc32, NEG32(QCONST32(32000,SIG_SHIFT-1)), QCONST32(32000,SIG_SHIFT-1), st->subframeSize); in nb_decode()
1382 SPEEX_MEMSET(innov, 0, st->subframeSize); in nb_decode()
1400 …SUBMODE(innovation_unquant)(innov, SUBMODE(innovation_params), st->subframeSize, bits, stack, &st-… in nb_decode()
1403 signal_mul(innov, innov, ener, st->subframeSize); in nb_decode()
1410 ALLOC(innov2, st->subframeSize, spx_sig_t); in nb_decode()
1411 SPEEX_MEMSET(innov2, 0, st->subframeSize); in nb_decode()
1412 …SUBMODE(innovation_unquant)(innov2, SUBMODE(innovation_params), st->subframeSize, bits, stack, &st… in nb_decode()
1413 … signal_mul(innov2, innov2, MULT16_32_Q15(QCONST16(0.454545f,15),ener), st->subframeSize); in nb_decode()
1414 for (i=0;i<st->subframeSize;i++) in nb_decode()
1418 for (i=0;i<st->subframeSize;i++) in nb_decode()
1423 for (i=0;i<st->subframeSize;i++) in nb_decode()
1438 SPEEX_MEMSET(exc, 0, st->subframeSize); in nb_decode()
1439 while (st->voc_offset<st->subframeSize) in nb_decode()
1447 st->voc_offset -= st->subframeSize; in nb_decode()
1449 for (i=0;i<st->subframeSize;i++) in nb_decode()
1470 …multicomb(st->exc-st->subframeSize, out, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, best_pi… in nb_decode()
1471 …multicomb(st->exc+st->subframeSize, out+2*st->subframeSize, st->interp_qlpc, st->lpcSize, 2*st->su… in nb_decode()
1473 SPEEX_COPY(out, &st->exc[-st->subframeSize], st->frameSize); in nb_decode()
1496 out[i]=st->exc[i-st->subframeSize]; in nb_decode()
1507 offset = st->subframeSize*sub; in nb_decode()
1533 iir_mem16(sp, st->interp_qlpc, sp, st->subframeSize, st->lpcSize, in nb_decode()
1756 ((spx_word16_t*)ptr)[i] = compute_rms16(st->exc+i*st->subframeSize, st->subframeSize); in nb_encoder_ctl()
1847 (*(spx_int32_t*)ptr)=st->subframeSize; in nb_decoder_ctl()
1883 ((spx_word16_t*)ptr)[i] = compute_rms16(st->exc+i*st->subframeSize, st->subframeSize); in nb_decoder_ctl()