Lines Matching refs:tC

358                                                  TNS_CONFIG *tC,  in FDKaacEnc_InitTnsConfiguration()  argument
369 tC->isLowDelay = isLowDelay; in FDKaacEnc_InitTnsConfiguration()
372 tC->tnsActive = (active) ? TRUE : FALSE; in FDKaacEnc_InitTnsConfiguration()
373 tC->maxOrder = (blockType == SHORT_WINDOW) ? 5 : 12; /* maximum: 7, 20 */ in FDKaacEnc_InitTnsConfiguration()
375 tC->maxOrder -= 2; in FDKaacEnc_InitTnsConfiguration()
376 tC->coefRes = (blockType == SHORT_WINDOW) ? 3 : 4; in FDKaacEnc_InitTnsConfiguration()
379 tC->lpcStopBand = getTnsMaxBands(sampleRate, granuleLength, (blockType == SHORT_WINDOW) ? 1 : 0); in FDKaacEnc_InitTnsConfiguration()
381 if (tC->lpcStopBand < 0) { in FDKaacEnc_InitTnsConfiguration()
385 tC->lpcStopBand = FDKmin(tC->lpcStopBand, pC->sfbActive); in FDKaacEnc_InitTnsConfiguration()
386 tC->lpcStopLine = pC->sfbOffset[tC->lpcStopBand]; in FDKaacEnc_InitTnsConfiguration()
391 tC->lpcStartBand[LOFILT] = (blockType == SHORT_WINDOW) ? 0 : ((sampleRate < 18783) ? 4 : 8); in FDKaacEnc_InitTnsConfiguration()
392 tC->lpcStartLine[LOFILT] = pC->sfbOffset[tC->lpcStartBand[LOFILT]]; in FDKaacEnc_InitTnsConfiguration()
394 i = tC->lpcStopBand; in FDKaacEnc_InitTnsConfiguration()
395 …while (pC->sfbOffset[i] > (tC->lpcStartLine[LOFILT] + (tC->lpcStopLine - tC->lpcStartLine[LOFILT])… in FDKaacEnc_InitTnsConfiguration()
396 tC->lpcStartBand[HIFILT] = i; in FDKaacEnc_InitTnsConfiguration()
397 tC->lpcStartLine[HIFILT] = pC->sfbOffset[i]; in FDKaacEnc_InitTnsConfiguration()
399 tC->confTab.threshOn[HIFILT] = 1437; in FDKaacEnc_InitTnsConfiguration()
400 tC->confTab.threshOn[LOFILT] = 1500; in FDKaacEnc_InitTnsConfiguration()
402 tC->confTab.tnsLimitOrder[HIFILT] = tC->maxOrder; in FDKaacEnc_InitTnsConfiguration()
403 tC->confTab.tnsLimitOrder[LOFILT] = tC->maxOrder - 7; in FDKaacEnc_InitTnsConfiguration()
405 tC->confTab.tnsFilterDirection[HIFILT] = FILTER_DIRECTION; in FDKaacEnc_InitTnsConfiguration()
406 tC->confTab.tnsFilterDirection[LOFILT] = FILTER_DIRECTION; in FDKaacEnc_InitTnsConfiguration()
408tC->confTab.acfSplit[HIFILT] = -1; /* signal Merged4to2QuartersAutoCorrelation in FDKaacEnc_Merge… in FDKaacEnc_InitTnsConfiguration()
409tC->confTab.acfSplit[LOFILT] = -1; /* signal Merged4to2QuartersAutoCorrelation in FDKaacEnc_Merge… in FDKaacEnc_InitTnsConfiguration()
411 tC->confTab.filterEnabled[HIFILT] = 1; in FDKaacEnc_InitTnsConfiguration()
412 tC->confTab.filterEnabled[LOFILT] = 1; in FDKaacEnc_InitTnsConfiguration()
413 tC->confTab.seperateFiltersAllowed = 1; in FDKaacEnc_InitTnsConfiguration()
422 …FDKmemcpy(tC->acfWindow[HIFILT], acfWindowShort, FDKmin(sizeof(acfWindowShort), sizeof(tC->acfWind… in FDKaacEnc_InitTnsConfiguration()
423 …FDKmemcpy(tC->acfWindow[LOFILT], acfWindowShort, FDKmin(sizeof(acfWindowShort), sizeof(tC->acfWind… in FDKaacEnc_InitTnsConfiguration()
426 …FDKmemcpy(tC->acfWindow[HIFILT], acfWindowLong, FDKmin(sizeof(acfWindowLong), sizeof(tC->acfWindow… in FDKaacEnc_InitTnsConfiguration()
427 …FDKmemcpy(tC->acfWindow[LOFILT], acfWindowLong, FDKmin(sizeof(acfWindowLong), sizeof(tC->acfWindow… in FDKaacEnc_InitTnsConfiguration()
437 FDKmemcpy(&(tC->confTab), pCfg, sizeof(tC->confTab)); in FDKaacEnc_InitTnsConfiguration()
439tC->lpcStartBand[HIFILT] = FDKaacEnc_FreqToBandWithRounding(pCfg->filterStartFreq[HIFILT],… in FDKaacEnc_InitTnsConfiguration()
440 tC->lpcStartLine[HIFILT] = pC->sfbOffset[tC->lpcStartBand[HIFILT]]; in FDKaacEnc_InitTnsConfiguration()
441tC->lpcStartBand[LOFILT] = FDKaacEnc_FreqToBandWithRounding(pCfg->filterStartFreq[LOFILT],… in FDKaacEnc_InitTnsConfiguration()
442 tC->lpcStartLine[LOFILT] = pC->sfbOffset[tC->lpcStartBand[LOFILT]]; in FDKaacEnc_InitTnsConfiguration()
444 …FDKaacEnc_CalcGaussWindow(tC->acfWindow[HIFILT], tC->maxOrder+1, sampleRate, granuleLength, pCfg->… in FDKaacEnc_InitTnsConfiguration()
445 …FDKaacEnc_CalcGaussWindow(tC->acfWindow[LOFILT], tC->maxOrder+1, sampleRate, granuleLength, pCfg->… in FDKaacEnc_InitTnsConfiguration()
448 tC->tnsActive = FALSE; /* no configuration available, disable tns tool */ in FDKaacEnc_InitTnsConfiguration()
453 tC->tnsActive = FALSE; /* no configuration available, disable tns tool */ in FDKaacEnc_InitTnsConfiguration()
728 const TNS_CONFIG *tC, in FDKaacEnc_TnsDetect() argument
755 tnsInfo->coefRes[subBlockNumber] = tC->coefRes; in FDKaacEnc_TnsDetect()
756 for (i = 0; i < tC->maxOrder; i++) { in FDKaacEnc_TnsDetect()
763 if ( (tC->tnsActive) && (tC->maxOrder>0) ) in FDKaacEnc_TnsDetect()
769 tC->isLowDelay, in FDKaacEnc_TnsDetect()
770 tC->acfWindow, in FDKaacEnc_TnsDetect()
771 tC->lpcStartLine, in FDKaacEnc_TnsDetect()
772 tC->lpcStopLine, in FDKaacEnc_TnsDetect()
773 tC->maxOrder, in FDKaacEnc_TnsDetect()
774 tC->confTab.acfSplit, in FDKaacEnc_TnsDetect()
779 …tsbi->predictionGain[HIFILT] = FDKaacEnc_AutoToParcor(rxx2, parcor_tmp, tC->confTab.tnsLimitOrder[… in FDKaacEnc_TnsDetect()
785 tC->confTab.tnsLimitOrder[HIFILT], in FDKaacEnc_TnsDetect()
786 tC->coefRes); in FDKaacEnc_TnsDetect()
789 for (i = tC->confTab.tnsLimitOrder[HIFILT] - 1; i >= 0; i--) { in FDKaacEnc_TnsDetect()
802 tnsInfo->direction[subBlockNumber][HIFILT] = tC->confTab.tnsFilterDirection[HIFILT]; in FDKaacEnc_TnsDetect()
803 tnsInfo->length[subBlockNumber][HIFILT] = sfbCnt - tC->lpcStartBand[HIFILT]; in FDKaacEnc_TnsDetect()
806 …if ((tsbi->predictionGain[HIFILT] > tC->confTab.threshOn[HIFILT]) || (sumSqrCoef > (tC->confTab.tn… in FDKaacEnc_TnsDetect()
813 (tC->confTab.filterEnabled[LOFILT]) && (tC->confTab.seperateFiltersAllowed) ) in FDKaacEnc_TnsDetect()
818 INT predGain = FDKaacEnc_AutoToParcor(rxx1, parcor_tmp, tC->confTab.tnsLimitOrder[LOFILT]); in FDKaacEnc_TnsDetect()
824 tC->confTab.tnsLimitOrder[LOFILT], in FDKaacEnc_TnsDetect()
825 tC->coefRes); in FDKaacEnc_TnsDetect()
828 for (i = tC->confTab.tnsLimitOrder[LOFILT] - 1; i >= 0; i--) { in FDKaacEnc_TnsDetect()
840 tnsInfo->direction[subBlockNumber][LOFILT] = tC->confTab.tnsFilterDirection[LOFILT]; in FDKaacEnc_TnsDetect()
841 … tnsInfo->length[subBlockNumber][LOFILT] = tC->lpcStartBand[HIFILT] - tC->lpcStartBand[LOFILT]; in FDKaacEnc_TnsDetect()
844 …if ( ( (predGain > tC->confTab.threshOn[LOFILT]) && (predGain < (16000 * tC->confTab.tnsLimitOrder… in FDKaacEnc_TnsDetect()
845 || ( (sumSqrCoef > 9) && (sumSqrCoef < 22 * tC->confTab.tnsLimitOrder[LOFILT]) ) ) in FDKaacEnc_TnsDetect()
850 for (i = 0; i < tC->confTab.tnsLimitOrder[LOFILT]; i++) { in FDKaacEnc_TnsDetect()
857 tnsInfo->length[subBlockNumber][HIFILT] = sfbCnt - tC->lpcStartBand[LOFILT]; in FDKaacEnc_TnsDetect()
908 const TNS_CONFIG *tC in FDKaacEnc_TnsSync() argument
939 for (i = 0; i < tC->maxOrder; i++) { in FDKaacEnc_TnsSync()
964 for (i = 0; i < tC->maxOrder; i++) { in FDKaacEnc_TnsSync()
997 const TNS_CONFIG *tC, in FDKaacEnc_TnsEncode() argument
1012 startLine = (tnsData->filtersMerged) ? tC->lpcStartLine[LOFILT] : tC->lpcStartLine[HIFILT]; in FDKaacEnc_TnsEncode()
1013 stopLine = tC->lpcStopLine; in FDKaacEnc_TnsEncode()
1026 tC->coefRes); in FDKaacEnc_TnsEncode()
1042 startLine = tC->lpcStartLine[LOFILT]; in FDKaacEnc_TnsEncode()
1043 stopLine = tC->lpcStartLine[HIFILT]; in FDKaacEnc_TnsEncode()