Lines Matching refs:maxNdx
202 INT* const maxNdx in FDKaacEnc_findMaxMerge() argument
212 *maxNdx = i; in FDKaacEnc_findMaxMerge()
344 INT maxMergeGain, maxNdx = 0, maxNdxNext, maxNdxLast; in FDKaacEnc_gmStage2() local
346 maxMergeGain = FDKaacEnc_findMaxMerge(mergeGainLookUp, huffsection, maxSfb, &maxNdx); in FDKaacEnc_gmStage2()
352 maxNdxNext = maxNdx + huffsection[maxNdx].sfbCnt; in FDKaacEnc_gmStage2()
355 huffsection[maxNdx].sfbCnt += huffsection[maxNdxNext].sfbCnt; in FDKaacEnc_gmStage2()
356 huffsection[maxNdx].sectionBits += huffsection[maxNdxNext].sectionBits - maxMergeGain; in FDKaacEnc_gmStage2()
359 FDKaacEnc_mergeBitLookUp(bitLookUp[maxNdx], bitLookUp[maxNdxNext]); in FDKaacEnc_gmStage2()
362 if (maxNdx != 0) in FDKaacEnc_gmStage2()
364 maxNdxLast = huffsection[maxNdx - 1].sfbStart; in FDKaacEnc_gmStage2()
369 maxNdx, in FDKaacEnc_gmStage2()
373 maxNdxNext = maxNdx + huffsection[maxNdx].sfbCnt; in FDKaacEnc_gmStage2()
375 huffsection[maxNdxNext - 1].sfbStart = huffsection[maxNdx].sfbStart; in FDKaacEnc_gmStage2()
378 mergeGainLookUp[maxNdx] = FDKaacEnc_CalcMergeGain(huffsection, in FDKaacEnc_gmStage2()
381 maxNdx, in FDKaacEnc_gmStage2()