Lines Matching refs:huffsection

101         const SECTION_INFO* const huffsection,  in FDKaacEnc_getSideInfoBits()  argument
108 if ( useHCR && ((huffsection->codeBook == 11) || (huffsection->codeBook >= 16)) ) { in FDKaacEnc_getSideInfoBits()
112 sideInfoBits = sideInfoTab[huffsection->sfbCnt]; in FDKaacEnc_getSideInfoBits()
125 SECTION_INFO* const huffsection in FDKaacEnc_buildBitLookUp() argument
132 huffsection[i].sfbCnt = 1; in FDKaacEnc_buildBitLookUp()
133 huffsection[i].sfbStart = i; in FDKaacEnc_buildBitLookUp()
134 huffsection[i].sectionBits = INVALID_BITCOUNT; in FDKaacEnc_buildBitLookUp()
135 huffsection[i].codeBook = -1; in FDKaacEnc_buildBitLookUp()
200 const SECTION_INFO* const huffsection, in FDKaacEnc_findMaxMerge() argument
207 for (i = 0; i + huffsection[i].sfbCnt < maxSfb; i += huffsection[i].sfbCnt) in FDKaacEnc_findMaxMerge()
219 const SECTION_INFO* const huffsection, in FDKaacEnc_CalcMergeGain() argument
229 …MergeBits = sideInfoTab[huffsection[ndx1].sfbCnt + huffsection[ndx2].sfbCnt] + FDKaacEnc_findMinMe… in FDKaacEnc_CalcMergeGain()
230 …SplitBits = huffsection[ndx1].sectionBits + huffsection[ndx2].sectionBits; /* Bit amount for split… in FDKaacEnc_CalcMergeGain()
233 …if ( (huffsection[ndx1].codeBook==CODE_BOOK_PNS_NO)||(huffsection[ndx2].codeBook==CODE_BOOK_PNS_NO) in FDKaacEnc_CalcMergeGain()
234 …|| (huffsection[ndx1].codeBook==CODE_BOOK_IS_OUT_OF_PHASE_NO)||(huffsection[ndx2].codeBook==CODE_B… in FDKaacEnc_CalcMergeGain()
235 …|| (huffsection[ndx1].codeBook==CODE_BOOK_IS_IN_PHASE_NO)||(huffsection[ndx2].codeBook==CODE_BOOK_… in FDKaacEnc_CalcMergeGain()
247 SECTION_INFO* const RESTRICT huffsection, in FDKaacEnc_gmStage0() argument
259 if (huffsection[i].sectionBits == INVALID_BITCOUNT) in FDKaacEnc_gmStage0()
263 huffsection[i].codeBook=CODE_BOOK_PNS_NO; in FDKaacEnc_gmStage0()
264 huffsection[i].sectionBits = 0; in FDKaacEnc_gmStage0()
267 huffsection[i].codeBook=isBook[i]; in FDKaacEnc_gmStage0()
268 huffsection[i].sectionBits = 0; in FDKaacEnc_gmStage0()
271huffsection[i].sectionBits = FDKaacEnc_findBestBook(bitLookUp[i], &(huffsection[i].codeBook), 0); … in FDKaacEnc_gmStage0()
282 SECTION_INFO* const RESTRICT huffsection, in FDKaacEnc_gmStage1() argument
295 if (huffsection[mergeStart].codeBook != huffsection[mergeEnd].codeBook) in FDKaacEnc_gmStage1()
300 huffsection[mergeStart].sfbCnt++; in FDKaacEnc_gmStage1()
301 huffsection[mergeStart].sectionBits += huffsection[mergeEnd].sectionBits; in FDKaacEnc_gmStage1()
308huffsection[mergeStart].sectionBits += FDKaacEnc_getSideInfoBits(&huffsection[mergeStart], sideInf… in FDKaacEnc_gmStage1()
309huffsection[mergeEnd - 1].sfbStart = huffsection[mergeStart].sfbStart; /* speed up prev searc… in FDKaacEnc_gmStage1()
322 SECTION_INFO* const RESTRICT huffsection, in FDKaacEnc_gmStage2() argument
332 for (i = 0; i + huffsection[i].sfbCnt < maxSfb; i += huffsection[i].sfbCnt) in FDKaacEnc_gmStage2()
334 mergeGainLookUp[i] = FDKaacEnc_CalcMergeGain(huffsection, in FDKaacEnc_gmStage2()
338 i + huffsection[i].sfbCnt, in FDKaacEnc_gmStage2()
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()
364 maxNdxLast = huffsection[maxNdx - 1].sfbStart; in FDKaacEnc_gmStage2()
365 mergeGainLookUp[maxNdxLast] = FDKaacEnc_CalcMergeGain(huffsection, 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()
404 SECTION_INFO *huffsection; in FDKaacEnc_noiselessCounter() local
430 huffsection = sectionData->huffsection + sectionData->noOfSections; in FDKaacEnc_noiselessCounter()
438 huffsection); in FDKaacEnc_noiselessCounter()
441 …FDKaacEnc_gmStage0(huffsection, bitLookUp, sectionData->maxSfbPerGroup, noiseNrg+grpNdx, isBook+gr… in FDKaacEnc_noiselessCounter()
444 FDKaacEnc_gmStage1(huffsection, bitLookUp, sectionData->maxSfbPerGroup, sideInfoTab, useVCB11); in FDKaacEnc_noiselessCounter()
453 FDKaacEnc_gmStage2(huffsection, in FDKaacEnc_noiselessCounter()
468 for (i = 0; i < sectionData->maxSfbPerGroup; i += huffsection[i].sfbCnt) in FDKaacEnc_noiselessCounter()
470 if ((huffsection[i].codeBook==CODE_BOOK_PNS_NO) || in FDKaacEnc_noiselessCounter()
471 (huffsection[i].codeBook==CODE_BOOK_IS_OUT_OF_PHASE_NO) || in FDKaacEnc_noiselessCounter()
472 (huffsection[i].codeBook==CODE_BOOK_IS_IN_PHASE_NO)) in FDKaacEnc_noiselessCounter()
474 huffsection[i].sectionBits=0; in FDKaacEnc_noiselessCounter()
478 FDKaacEnc_findBestBook(bitLookUp[i], &(huffsection[i].codeBook), useVCB11); in FDKaacEnc_noiselessCounter()
480 …sectionData->huffmanBits += huffsection[i].sectionBits - FDKaacEnc_getSideInfoBits(&huffsection[i]… in FDKaacEnc_noiselessCounter()
483 huffsection[i].sfbStart += grpNdx; in FDKaacEnc_noiselessCounter()
486 … sectionData->sideInfoBits += FDKaacEnc_getSideInfoBits(&huffsection[i], sideInfoTab, useVCB11); in FDKaacEnc_noiselessCounter()
487 sectionData->huffsection[sectionData->noOfSections++] = huffsection[i]; in FDKaacEnc_noiselessCounter()
552 if (sectionData->huffsection[i].codeBook != CODE_BOOK_ZERO_NO) in FDKaacEnc_scfCount()
554 sectionData->firstScf = sectionData->huffsection[i].sfbStart; in FDKaacEnc_scfCount()
562 if ((sectionData->huffsection[i].codeBook == CODE_BOOK_IS_OUT_OF_PHASE_NO) || in FDKaacEnc_scfCount()
563 (sectionData->huffsection[i].codeBook == CODE_BOOK_IS_IN_PHASE_NO)) in FDKaacEnc_scfCount()
565 for (j = sectionData->huffsection[i].sfbStart; in FDKaacEnc_scfCount()
566 j < sectionData->huffsection[i].sfbStart + sectionData->huffsection[i].sfbCnt; in FDKaacEnc_scfCount()
574 else if ((sectionData->huffsection[i].codeBook != CODE_BOOK_ZERO_NO) && in FDKaacEnc_scfCount()
575 (sectionData->huffsection[i].codeBook != CODE_BOOK_PNS_NO)) in FDKaacEnc_scfCount()
577 INT tmp = sectionData->huffsection[i].sfbStart + sectionData->huffsection[i].sfbCnt; in FDKaacEnc_scfCount()
578 for (j = sectionData->huffsection[i].sfbStart; j<tmp; j++) in FDKaacEnc_scfCount()
617 …if ((sectionData->huffsection[m].codeBook != CODE_BOOK_ZERO_NO) && (sectionData->huffsection[m].co… in FDKaacEnc_scfCount()
619 INT end = sectionData->huffsection[m].sfbStart + sectionData->huffsection[m].sfbCnt; in FDKaacEnc_scfCount()
620 for (n = sectionData->huffsection[m].sfbStart; n<end; n++) in FDKaacEnc_scfCount()
707 if (sectionData->huffsection[i].codeBook == CODE_BOOK_PNS_NO) { in FDKaacEnc_noiseCount()
708 int sfbStart = sectionData->huffsection[i].sfbStart; in FDKaacEnc_noiseCount()
709 int sfbEnd = sfbStart + sectionData->huffsection[i].sfbCnt; in FDKaacEnc_noiseCount()