Lines Matching refs:hMdct
272 INT CLpd_FAC_Mdct2Acelp(H_MDCT hMdct, FIXP_DBL *output, FIXP_DBL *pFac, in CLpd_FAC_Mdct2Acelp() argument
288 if (hMdct->prev_fr != fl) { in CLpd_FAC_Mdct2Acelp()
290 imdct_adapt_parameters(hMdct, &fl, &nl, fac_length, pWindow, nrOutSamples); in CLpd_FAC_Mdct2Acelp()
296 nrSamples += hMdct->ov_offset; in CLpd_FAC_Mdct2Acelp()
298 FDKmemcpy(pOut0, hMdct->overlap.time, hMdct->ov_offset * sizeof(pOut0[0])); in CLpd_FAC_Mdct2Acelp()
299 hMdct->ov_offset = 0; in CLpd_FAC_Mdct2Acelp()
302 pOvl = hMdct->overlap.freq + hMdct->ov_size - 1; in CLpd_FAC_Mdct2Acelp()
305 pOut0 = hMdct->overlap.time + hMdct->ov_offset; in CLpd_FAC_Mdct2Acelp()
306 hMdct->ov_offset += hMdct->prev_nr + fl / 2; in CLpd_FAC_Mdct2Acelp()
309 nrSamples += hMdct->prev_nr + fl / 2; in CLpd_FAC_Mdct2Acelp()
311 if (hMdct->prevPrevAliasSymmetry == 0) { in CLpd_FAC_Mdct2Acelp()
312 for (i = 0; i < hMdct->prev_nr; i++) { in CLpd_FAC_Mdct2Acelp()
318 for (i = 0; i < hMdct->prev_nr; i++) { in CLpd_FAC_Mdct2Acelp()
324 hMdct->prev_nr = 0; in CLpd_FAC_Mdct2Acelp()
340 if (hMdct->prevPrevAliasSymmetry == 0) { in CLpd_FAC_Mdct2Acelp()
361 if (hMdct->pFacZir != in CLpd_FAC_Mdct2Acelp()
365 pOut[i] += IMDCT_SCALE_DBL(hMdct->pFacZir[i]); in CLpd_FAC_Mdct2Acelp()
367 hMdct->pFacZir = NULL; in CLpd_FAC_Mdct2Acelp()
370 hMdct->prev_fr = 0; in CLpd_FAC_Mdct2Acelp()
371 hMdct->prev_nr = 0; in CLpd_FAC_Mdct2Acelp()
372 hMdct->prev_tl = 0; in CLpd_FAC_Mdct2Acelp()
373 hMdct->prevPrevAliasSymmetry = hMdct->prevAliasSymmetry; in CLpd_FAC_Mdct2Acelp()
378 INT CLpd_FAC_Acelp2Mdct(H_MDCT hMdct, FIXP_DBL *output, FIXP_DBL *_pSpec, in CLpd_FAC_Acelp2Mdct() argument
440 FDKmemcpy(pOut0, hMdct->overlap.time, hMdct->ov_offset * sizeof(pOut0[0])); in CLpd_FAC_Acelp2Mdct()
441 nrSamples = hMdct->ov_offset; in CLpd_FAC_Acelp2Mdct()
442 hMdct->ov_offset = 0; in CLpd_FAC_Acelp2Mdct()
446 pOut1 = hMdct->overlap.time + hMdct->ov_offset; in CLpd_FAC_Acelp2Mdct()
447 if (hMdct->ov_offset < fac_length) { in CLpd_FAC_Acelp2Mdct()
452 hMdct->ov_offset += fac_length + nl; in CLpd_FAC_Acelp2Mdct()
552 FDK_ASSERT((pOut1 >= hMdct->overlap.time && in CLpd_FAC_Acelp2Mdct()
553 pOut1 < hMdct->overlap.time + hMdct->ov_size) || in CLpd_FAC_Acelp2Mdct()
566 hMdct->pFacZir = pFAC_and_FAC_ZIR; in CLpd_FAC_Acelp2Mdct()
570 hMdct->pFacZir = NULL; in CLpd_FAC_Acelp2Mdct()
584 FDK_ASSERT((pOut1 >= hMdct->overlap.time && in CLpd_FAC_Acelp2Mdct()
585 pOut1 < hMdct->overlap.time + hMdct->ov_size) || in CLpd_FAC_Acelp2Mdct()
591 hMdct->prev_nr = nr; in CLpd_FAC_Acelp2Mdct()
592 hMdct->prev_fr = fr; in CLpd_FAC_Acelp2Mdct()
593 hMdct->prev_wrs = wrs; in CLpd_FAC_Acelp2Mdct()
594 hMdct->prev_tl = tl; in CLpd_FAC_Acelp2Mdct()
595 hMdct->prevPrevAliasSymmetry = hMdct->prevAliasSymmetry; in CLpd_FAC_Acelp2Mdct()
596 hMdct->prevAliasSymmetry = currAliasingSymmetry; in CLpd_FAC_Acelp2Mdct()
608 pWindow_prev = hMdct->prev_wrs; in CLpd_FAC_Acelp2Mdct()
638 pOut0 = hMdct->overlap.time + hMdct->ov_offset; in CLpd_FAC_Acelp2Mdct()
639 hMdct->ov_offset += hMdct->prev_nr + fl / 2; in CLpd_FAC_Acelp2Mdct()
642 nrSamples += hMdct->prev_nr + fl / 2; in CLpd_FAC_Acelp2Mdct()
646 for (i = 0; i < hMdct->prev_nr; i++) { in CLpd_FAC_Acelp2Mdct()
655 pOut1 = hMdct->overlap.time + hMdct->ov_offset + fl / 2 - 1; in CLpd_FAC_Acelp2Mdct()
656 hMdct->ov_offset += fl / 2 + nl; in CLpd_FAC_Acelp2Mdct()
678 if (hMdct->prevPrevAliasSymmetry == 0) { in CLpd_FAC_Acelp2Mdct()
703 if (hMdct->pFacZir != 0) { in CLpd_FAC_Acelp2Mdct()
708 pOut[i] += IMDCT_SCALE_DBL(hMdct->pFacZir[i]); in CLpd_FAC_Acelp2Mdct()
710 hMdct->pFacZir = NULL; in CLpd_FAC_Acelp2Mdct()
727 hMdct->prev_nr = nr; in CLpd_FAC_Acelp2Mdct()
728 hMdct->prev_fr = fr; in CLpd_FAC_Acelp2Mdct()
729 hMdct->prev_tl = tl; in CLpd_FAC_Acelp2Mdct()
730 hMdct->prev_wrs = pWindow_prev; in CLpd_FAC_Acelp2Mdct()
731 hMdct->prevPrevAliasSymmetry = hMdct->prevAliasSymmetry; in CLpd_FAC_Acelp2Mdct()
732 hMdct->prevAliasSymmetry = currAliasingSymmetry; in CLpd_FAC_Acelp2Mdct()
737 pOvl = hMdct->overlap.freq + hMdct->ov_size - tl / 2; in CLpd_FAC_Acelp2Mdct()
738 FDK_ASSERT(pOvl >= hMdct->overlap.time + hMdct->ov_offset); in CLpd_FAC_Acelp2Mdct()
739 FDK_ASSERT(tl / 2 <= hMdct->ov_size); in CLpd_FAC_Acelp2Mdct()