• Home
  • Raw
  • Download

Lines Matching refs:k

300   int grouping = 0, index = 0, noGroups, k;  in aliasingReduction()  local
304 for (k = 0; k < noSubbands-1; k++ ){ in aliasingReduction()
305 if ( (degreeAlias[k + 1] != FL2FXCONST_DBL(0.0f)) && useAliasReduction[k] ) { in aliasingReduction()
307 groupVector[index++] = k; in aliasingReduction()
311 if(groupVector[index-1] + 3 == k){ in aliasingReduction()
312 groupVector[index++] = k + 1; in aliasingReduction()
319 if(useAliasReduction[k]) in aliasingReduction()
320 groupVector[index++] = k + 1; in aliasingReduction()
322 groupVector[index++] = k; in aliasingReduction()
351 for(k = startGroup; k < stopGroup; k++){ in aliasingReduction()
353 FIXP_DBL tmp = nrgEst[k]; in aliasingReduction()
354 SCHAR tmp_e = nrgEst_e[k]; in aliasingReduction()
359 tmp = fMult(tmp,nrgGain[k]); in aliasingReduction()
360 tmp_e = tmp_e + nrgGain_e[k]; in aliasingReduction()
370 for(k = startGroup; k < stopGroup; k++){ in aliasingReduction()
374 FIXP_DBL alpha = degreeAlias[k]; in aliasingReduction()
375 if (k < noSubbands - 1) { in aliasingReduction()
376 if (degreeAlias[k + 1] > alpha) in aliasingReduction()
377 alpha = degreeAlias[k + 1]; in aliasingReduction()
382 … fMult(/*FL2FXCONST_DBL(1.0f)*/ (FIXP_DBL)MAXVAL_DBL - alpha,nrgGain[k]), nrgGain_e[k], in aliasingReduction()
383 &nrgGain[k], &nrgGain_e[k] ); in aliasingReduction()
386 tmp = fMult(nrgGain[k],nrgEst[k]); in aliasingReduction()
387 tmp_e = nrgGain_e[k] + nrgEst_e[k]; in aliasingReduction()
401 for(k = startGroup; k < stopGroup; k++){ in aliasingReduction()
402 nrgGain[k] = fMult(nrgGain[k],compensation); in aliasingReduction()
403 nrgGain_e[k] = nrgGain_e[k] + compensation_e; in aliasingReduction()
605 int k, noNoiseFlag; in calculateSbrEnvelope() local
686 for (k=li; k<ui; k++) { in calculateSbrEnvelope()
691 for (k=li; k<ui; k++) { in calculateSbrEnvelope()
692 if (k >= *pUiNoise) { in calculateSbrEnvelope()
699 FDK_ASSERT(k >= lowSubband); in calculateSbrEnvelope()
702 useAliasReduction[k-lowSubband] = !sinePresentFlag; in calculateSbrEnvelope()
757 for (k = hFreq->limiterBandTable[c]; k < hFreq->limiterBandTable[c+1]; k++) { in calculateSbrEnvelope()
758 …if ( (pNrgs->nrgGain_e[k] > maxGain_e) || (pNrgs->nrgGain_e[k] == maxGain_e && pNrgs->nrgGain[k]>m… in calculateSbrEnvelope()
763 …FDK_divide_MantExp(maxGain, maxGain_e, pNrgs->nrgGain[k], pNrgs->nrgGain_e[k], &noiseAmp, &noiseAm… in calculateSbrEnvelope()
764 pNrgs->noiseLevel[k] = fMult(pNrgs->noiseLevel[k],noiseAmp); in calculateSbrEnvelope()
765 pNrgs->noiseLevel_e[k] += noiseAmp_e; in calculateSbrEnvelope()
766 pNrgs->nrgGain[k] = maxGain; in calculateSbrEnvelope()
767 pNrgs->nrgGain_e[k] = maxGain_e; in calculateSbrEnvelope()
777 for (k = hFreq->limiterBandTable[c]; k < hFreq->limiterBandTable[c + 1]; k++) { in calculateSbrEnvelope()
780 FIXP_DBL tmp = fMult(pNrgs->nrgGain[k],pNrgs->nrgEst[k]); in calculateSbrEnvelope()
781 SCHAR tmp_e = pNrgs->nrgGain_e[k] + pNrgs->nrgEst_e[k]; in calculateSbrEnvelope()
785 if(pNrgs->nrgSine[k] != FL2FXCONST_DBL(0.0f)) { in calculateSbrEnvelope()
786 FDK_add_MantExp(pNrgs->nrgSine[k], pNrgs->nrgSine_e[k], accu, accu_e, &accu, &accu_e); in calculateSbrEnvelope()
791 … FDK_add_MantExp(pNrgs->noiseLevel[k], pNrgs->noiseLevel_e[k], accu, accu_e, &accu, &accu_e); in calculateSbrEnvelope()
816 for (k = hFreq->limiterBandTable[c]; k < hFreq->limiterBandTable[c + 1]; k++) { in calculateSbrEnvelope()
817 pNrgs->nrgGain[k] = fMultDiv2(pNrgs->nrgGain[k],boostGain); in calculateSbrEnvelope()
818 pNrgs->nrgGain_e[k] = pNrgs->nrgGain_e[k] + boostGain_e + 1; in calculateSbrEnvelope()
820 pNrgs->nrgSine[k] = fMultDiv2(pNrgs->nrgSine[k],boostGain); in calculateSbrEnvelope()
821 pNrgs->nrgSine_e[k] = pNrgs->nrgSine_e[k] + boostGain_e + 1; in calculateSbrEnvelope()
823 pNrgs->noiseLevel[k] = fMultDiv2(pNrgs->noiseLevel[k],boostGain); in calculateSbrEnvelope()
824 pNrgs->noiseLevel_e[k] = pNrgs->noiseLevel_e[k] + boostGain_e + 1; in calculateSbrEnvelope()
846 for (k=0; k<noSubbands; k++) { in calculateSbrEnvelope()
847 FDK_sqrt_MantExp(&pNrgs->nrgSine[k], &pNrgs->nrgSine_e[k], &noise_e); in calculateSbrEnvelope()
848 FDK_sqrt_MantExp(&pNrgs->nrgGain[k], &pNrgs->nrgGain_e[k], &pNrgs->nrgGain_e[k]); in calculateSbrEnvelope()
849 FDK_sqrt_MantExp(&pNrgs->noiseLevel[k], &pNrgs->noiseLevel_e[k], &noise_e); in calculateSbrEnvelope()
890 for (k=0; k<noSubbands; k++) in calculateSbrEnvelope()
891 h_sbr_cal_env->filtBufferNoise[k] <<= shift; in calculateSbrEnvelope()
895 for (k=0; k<noSubbands; k++) in calculateSbrEnvelope()
896 h_sbr_cal_env->filtBufferNoise[k] >>= shift; in calculateSbrEnvelope()
904 for(k=0;k<noSubbands;k++) { in calculateSbrEnvelope()
905 scale_change = fixMax(scale_change,(int)pNrgs->nrgGain_e[k]); in calculateSbrEnvelope()
914 for(k=0;k<noSubbands;k++) { in calculateSbrEnvelope()
915 int sc = scale_change-pNrgs->nrgGain_e[k] + (sc_change-1); in calculateSbrEnvelope()
916 pNrgs->nrgGain[k] >>= sc; in calculateSbrEnvelope()
917 pNrgs->nrgGain_e[k] += sc; in calculateSbrEnvelope()
921 for(k=0;k<noSubbands;k++) { in calculateSbrEnvelope()
922 int sc = scale_change-h_sbr_cal_env->filtBuffer_e[k] + (sc_change-1); in calculateSbrEnvelope()
923 h_sbr_cal_env->filtBuffer[k] >>= sc; in calculateSbrEnvelope()
943 for (k=0; k<noSubbands; k++) { in calculateSbrEnvelope()
944 pNrgs->nrgSine[k] <<= shift; in calculateSbrEnvelope()
945 pNrgs->noiseLevel[k] <<= shift; in calculateSbrEnvelope()
954 for (k=0; k<noSubbands; k++) { in calculateSbrEnvelope()
955 pNrgs->nrgSine[k] >>= shift; in calculateSbrEnvelope()
956 pNrgs->noiseLevel[k] >>= shift; in calculateSbrEnvelope()
973 for(k=0;k<noSubbands;k++) { in calculateSbrEnvelope()
974 pNrgs->nrgGain[k] >>= -sc_change; in calculateSbrEnvelope()
975 pNrgs->nrgGain_e[k] += -sc_change; in calculateSbrEnvelope()
978 for(k=0;k<noSubbands;k++) { in calculateSbrEnvelope()
979 h_sbr_cal_env->filtBuffer[k] >>= -sc_change; in calculateSbrEnvelope()
1283 int k=width; in maxSubbandSample()
1291 } while(--k!=0); in maxSubbandSample()
1297 int k=width; in maxSubbandSample() local
1302 }while(--k!=0); in maxSubbandSample()
1348 int k,l; in calcNrgPerSubband() local
1355 for (k=lowSubband; k<highSubband; k++) { in calcNrgPerSubband()
1364 bufferImag[l] = analysBufferImag[l][k]; in calcNrgPerSubband()
1366 bufferReal[l] = analysBufferReal[l][k]; in calcNrgPerSubband()
1374 bufferReal[l] = analysBufferReal[l][k]; in calcNrgPerSubband()
1471 int j,k,l,li,ui; in calcNrgPerSfb() local
1506 for (k=li; k<ui; k++) { in calcNrgPerSfb()
1513 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
1515 temp = analysBufferImag[l][k] << (int)preShift; in calcNrgPerSfb()
1521 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
1523 temp = analysBufferImag[l][k] >> -(int)preShift; in calcNrgPerSfb()
1531 temp = analysBufferReal[l][k] << (int)preShift; in calcNrgPerSfb()
1536 temp = analysBufferReal[l][k] >> -(int)preShift; in calcNrgPerSfb()
1574 for (k=li; k<ui; k++) in calcNrgPerSfb()
1709 int k; in calcAvgGain() local
1711 for (k=lowSubband; k<highSubband; k++){ in calcAvgGain()
1714 nrgRef[k], nrgRef_e[k], in calcAvgGain()
1719 nrgEst[k], nrgEst_e[k], in calcAvgGain()
1751 int k; in adjustTimeSlotLC() local
1852 for (k=noSubbands-2; k!=0; k--) { in adjustTimeSlotLC()
1873 for (k=noSubbands-2; k!=0; k--) { in adjustTimeSlotLC()
1957 int k; in adjustTimeSlotHQ() local
1988 for (k=0; k<noSubbands; k++) { in adjustTimeSlotHQ()
1994 smoothedGain = fMult(smooth_ratio,filtBuffer[k]) + in adjustTimeSlotHQ()
1995 fMult(direct_ratio,gain[k]); in adjustTimeSlotHQ()
1998 smoothedNoise = (fMultDiv2(smooth_ratio,filtBufferNoise[k])>>shift) + in adjustTimeSlotHQ()
1999 fMult(direct_ratio,noiseLevel[k]); in adjustTimeSlotHQ()
2002 smoothedNoise = (fMultDiv2(smooth_ratio,filtBufferNoise[k])<<shift) + in adjustTimeSlotHQ()
2003 fMult(direct_ratio,noiseLevel[k]); in adjustTimeSlotHQ()
2016 if (pSineLevel[k] != FL2FXCONST_DBL(0.0f)) { in adjustTimeSlotHQ()
2017 sineLevel = pSineLevel[k]; in adjustTimeSlotHQ()
2065 for (k=0; k<noSubbands; k++) in adjustTimeSlotHQ()
2067 smoothedGain = gain[k]; in adjustTimeSlotHQ()
2073 if ((sineLevel = pSineLevel[k]) != FL2FXCONST_DBL(0.0f)) in adjustTimeSlotHQ()
2102 smoothedNoise = noiseLevel[k]; in adjustTimeSlotHQ()
2136 int i, k, isPatchBorder[2], loLimIndex, hiLimIndex, tempNoLim, nBands; in ResetLimiterBands() local
2157 for (k = 0; k <= noFreqBands; k++) { in ResetLimiterBands()
2158 workLimiterBandTable[k] = freqBandTable[k] - lowSubband; in ResetLimiterBands()
2160 for (k = 1; k < noPatches; k++) { in ResetLimiterBands()
2161 workLimiterBandTable[noFreqBands + k] = patchBorders[k]; in ResetLimiterBands()
2186 for (k = 0; k <= noPatches; k++) { in ResetLimiterBands()
2187 if (workLimiterBandTable[hiLimIndex] == patchBorders[k]) { in ResetLimiterBands()
2198 for (k = 0; k <= noPatches; k++) { in ResetLimiterBands()
2199 if (workLimiterBandTable[loLimIndex] == patchBorders[k]) { in ResetLimiterBands()
2221 for (k = 0; k <= nBands; k++) { in ResetLimiterBands()
2222 limiterBandTable[k] = workLimiterBandTable[k]; in ResetLimiterBands()