Lines Matching refs:HIFILT
396 tC->lpcStartBand[HIFILT] = i;
397 tC->lpcStartLine[HIFILT] = pC->sfbOffset[i];
399 tC->confTab.threshOn[HIFILT] = 1437;
402 tC->confTab.tnsLimitOrder[HIFILT] = tC->maxOrder;
405 tC->confTab.tnsFilterDirection[HIFILT] = FILTER_DIRECTION;
408 tC->confTab.acfSplit[HIFILT] = -1; /* signal Merged4to2QuartersAutoCorrelation in FDKaacEnc_MergedAutoCorrelation*/
411 tC->confTab.filterEnabled[HIFILT] = 1;
422 FDKmemcpy(tC->acfWindow[HIFILT], acfWindowShort, FDKmin(sizeof(acfWindowShort), sizeof(tC->acfWindow[HIFILT])));
423 FDKmemcpy(tC->acfWindow[LOFILT], acfWindowShort, FDKmin(sizeof(acfWindowShort), sizeof(tC->acfWindow[HIFILT])));
426 FDKmemcpy(tC->acfWindow[HIFILT], acfWindowLong, FDKmin(sizeof(acfWindowLong), sizeof(tC->acfWindow[HIFILT])));
427 FDKmemcpy(tC->acfWindow[LOFILT], acfWindowLong, FDKmin(sizeof(acfWindowLong), sizeof(tC->acfWindow[HIFILT])));
439 tC->lpcStartBand[HIFILT] = FDKaacEnc_FreqToBandWithRounding(pCfg->filterStartFreq[HIFILT], sampleRate, pC->sfbCnt, pC->sfbOffset);
440 tC->lpcStartLine[HIFILT] = pC->sfbOffset[tC->lpcStartBand[HIFILT]];
444 FDKaacEnc_CalcGaussWindow(tC->acfWindow[HIFILT], tC->maxOrder+1, sampleRate, granuleLength, pCfg->tnsTimeResolution[HIFILT], TNS_TIMERES_SCALE);
610 if ( (acfSplit[LOFILT]==-1) || (acfSplit[HIFILT]==-1) ) {
621 FDK_ASSERT(acfSplit[HIFILT]==3);
622 i = (lpcStopLine - lpcStartLine[HIFILT]) / 3;
624 idx1 = lpcStartLine[HIFILT];
706 _rxx2[lag] = fMult(x2, acfWindow[HIFILT][lag]);
749 tsbi->tnsActive[HIFILT] = FALSE;
750 tsbi->predictionGain[HIFILT] = 1000;
757 tnsInfo->coef[subBlockNumber][HIFILT][i] = tnsInfo->coef[subBlockNumber][LOFILT][i] = 0;
760 tnsInfo->length[subBlockNumber][HIFILT] = tnsInfo->length[subBlockNumber][LOFILT] = 0;
761 tnsInfo->order [subBlockNumber][HIFILT] = tnsInfo->order [subBlockNumber][LOFILT] = 0;
779 tsbi->predictionGain[HIFILT] = FDKaacEnc_AutoToParcor(rxx2, parcor_tmp, tC->confTab.tnsLimitOrder[HIFILT]);
784 tnsInfo->coef[subBlockNumber][HIFILT],
785 tC->confTab.tnsLimitOrder[HIFILT],
789 for (i = tC->confTab.tnsLimitOrder[HIFILT] - 1; i >= 0; i--) {
790 if (tnsInfo->coef[subBlockNumber][HIFILT][i] != 0) {
795 tnsInfo->order[subBlockNumber][HIFILT] = i + 1;
799 sumSqrCoef += tnsInfo->coef[subBlockNumber][HIFILT][i] * tnsInfo->coef[subBlockNumber][HIFILT][i];
802 tnsInfo->direction[subBlockNumber][HIFILT] = tC->confTab.tnsFilterDirection[HIFILT];
803 tnsInfo->length[subBlockNumber][HIFILT] = sfbCnt - tC->lpcStartBand[HIFILT];
806 if ((tsbi->predictionGain[HIFILT] > tC->confTab.threshOn[HIFILT]) || (sumSqrCoef > (tC->confTab.tnsLimitOrder[HIFILT]/2 + 2)))
808 tsbi->tnsActive[HIFILT] = TRUE;
841 tnsInfo->length[subBlockNumber][LOFILT] = tC->lpcStartBand[HIFILT] - tC->lpcStartBand[LOFILT];
851 sumSqrCoef += FDKabs(tnsInfo->coef[subBlockNumber][HIFILT][i] - tnsInfo->coef[subBlockNumber][LOFILT][i]);
854 (tnsInfo->direction[subBlockNumber][LOFILT] == tnsInfo->direction[subBlockNumber][HIFILT]) )
857 tnsInfo->length[subBlockNumber][HIFILT] = sfbCnt - tC->lpcStartBand[LOFILT];
858 for (; i < tnsInfo->order[subBlockNumber][HIFILT]; i++) {
859 if (FDKabs(tnsInfo->coef[subBlockNumber][HIFILT][i]) > 1) {
864 if (tnsInfo->coef[subBlockNumber][HIFILT][i] != 0) {
868 if (i < tnsInfo->order[subBlockNumber][HIFILT]) {
869 tnsInfo->order[subBlockNumber][HIFILT] = i + 1;
938 if (pSbInfoDestW->tnsActive[HIFILT] || pSbInfoSrcW->tnsActive[HIFILT]) {
940 absDiff = FDKabs(tnsInfoDest->coef[w][HIFILT][i] - tnsInfoSrc->coef[w][HIFILT][i]);
951 if (pSbInfoSrcW->tnsActive[HIFILT]) {
953 if ((!pSbInfoDestW->tnsActive[HIFILT]) ||
954 ((pSbInfoDestW->tnsActive[HIFILT]) && (tnsInfoDest->numOfFilters[w] > tnsInfoSrc->numOfFilters[w])))
956 pSbInfoDestW->tnsActive[HIFILT] = tnsInfoDest->numOfFilters[w] = 1;
959 tnsInfoDest->order [w][HIFILT] = tnsInfoSrc->order [w][HIFILT];
960 tnsInfoDest->length [w][HIFILT] = tnsInfoSrc->length [w][HIFILT];
961 tnsInfoDest->direction [w][HIFILT] = tnsInfoSrc->direction [w][HIFILT];
962 tnsInfoDest->coefCompress[w][HIFILT] = tnsInfoSrc->coefCompress[w][HIFILT];
965 tnsInfoDest->coef[w][HIFILT][i] = tnsInfoSrc->coef[w][HIFILT][i];
969 pSbInfoDestW->tnsActive[HIFILT] = tnsInfoDest->numOfFilters[w] = 0;
1006 if ( ( (blockType == SHORT_WINDOW) && (!tnsData->dataRaw.Short.subBlockInfo[subBlockNumber].tnsActive[HIFILT]) )
1007 || ( (blockType != SHORT_WINDOW) && (!tnsData->dataRaw.Long.subBlockInfo.tnsActive[HIFILT]) ) )
1012 startLine = (tnsData->filtersMerged) ? tC->lpcStartLine[LOFILT] : tC->lpcStartLine[HIFILT];
1043 stopLine = tC->lpcStartLine[HIFILT];