Home | History | Annotate | Download | only in src

Lines Matching defs:huffsection

101         const SECTION_INFO* const huffsection,
108 if ( useHCR && ((huffsection->codeBook == 11) || (huffsection->codeBook >= 16)) ) {
112 sideInfoBits = sideInfoTab[huffsection->sfbCnt];
125 SECTION_INFO* const huffsection
132 huffsection[i].sfbCnt = 1;
133 huffsection[i].sfbStart = i;
134 huffsection[i].sectionBits = INVALID_BITCOUNT;
135 huffsection[i].codeBook = -1;
200 const SECTION_INFO* const huffsection,
207 for (i = 0; i + huffsection[i].sfbCnt < maxSfb; i += huffsection[i].sfbCnt)
219 const SECTION_INFO* const huffsection,
229 MergeBits = sideInfoTab[huffsection[ndx1].sfbCnt + huffsection[ndx2].sfbCnt] + FDKaacEnc_findMinMergeBits(bitLookUp[ndx1], bitLookUp[ndx2], useVCB11);
230 SplitBits = huffsection[ndx1].sectionBits + huffsection[ndx2].sectionBits; /* Bit amount for splitted huffsections */
233 if ( (huffsection[ndx1].codeBook==CODE_BOOK_PNS_NO)||(huffsection[ndx2].codeBook==CODE_BOOK_PNS_NO)
234 || (huffsection[ndx1].codeBook==CODE_BOOK_IS_OUT_OF_PHASE_NO)||(huffsection[ndx2].codeBook==CODE_BOOK_IS_OUT_OF_PHASE_NO)
235 || (huffsection[ndx1].codeBook==CODE_BOOK_IS_IN_PHASE_NO)||(huffsection[ndx2].codeBook==CODE_BOOK_IS_IN_PHASE_NO)
247 SECTION_INFO* const RESTRICT huffsection,
259 if (huffsection[i].sectionBits == INVALID_BITCOUNT)
263 huffsection[i].codeBook=CODE_BOOK_PNS_NO;
264 huffsection[i].sectionBits = 0;
267 huffsection[i].codeBook=isBook[i];
268 huffsection[i].sectionBits = 0;
271 huffsection[i].sectionBits = FDKaacEnc_findBestBook(bitLookUp[i], &(huffsection[i].codeBook), 0); /* useVCB11 must be 0!!! */
282 SECTION_INFO* const RESTRICT huffsection,
295 if (huffsection[mergeStart].codeBook != huffsection[mergeEnd].codeBook)
300 huffsection[mergeStart].sfbCnt++;
301 huffsection[mergeStart].sectionBits += huffsection[mergeEnd].sectionBits;
308 huffsection[mergeStart].sectionBits += FDKaacEnc_getSideInfoBits(&huffsection[mergeStart], sideInfoTab, useVCB11);
309 huffsection[mergeEnd - 1].sfbStart = huffsection[mergeStart].sfbStart; /* speed up prev search */
322 SECTION_INFO* const RESTRICT huffsection,
332 for (i = 0; i + huffsection[i].sfbCnt < maxSfb; i += huffsection[i].sfbCnt)
334 mergeGainLookUp[i] = FDKaacEnc_CalcMergeGain(huffsection,
338 i + huffsection[i].sfbCnt,
346 maxMergeGain = FDKaacEnc_findMaxMerge(mergeGainLookUp, huffsection, maxSfb, &maxNdx);
352 maxNdxNext = maxNdx + huffsection[maxNdx].sfbCnt;
355 huffsection[maxNdx].sfbCnt += huffsection[maxNdxNext].sfbCnt;
356 huffsection[maxNdx].sectionBits += huffsection[maxNdxNext].sectionBits - maxMergeGain;
358 /* update bit look up table for merged huffsection */
364 maxNdxLast = huffsection[maxNdx - 1].sfbStart;
365 mergeGainLookUp[maxNdxLast] = FDKaacEnc_CalcMergeGain(huffsection,
373 maxNdxNext = maxNdx + huffsection[maxNdx].sfbCnt;
375 huffsection[maxNdxNext - 1].sfbStart = huffsection[maxNdx].sfbStart;
378 mergeGainLookUp[maxNdx] = FDKaacEnc_CalcMergeGain(huffsection,
404 SECTION_INFO *huffsection;
430 huffsection = sectionData->huffsection + sectionData->noOfSections;
438 huffsection);
441 FDKaacEnc_gmStage0(huffsection, bitLookUp, sectionData->maxSfbPerGroup, noiseNrg+grpNdx, isBook+grpNdx);
444 FDKaacEnc_gmStage1(huffsection, bitLookUp, sectionData->maxSfbPerGroup, sideInfoTab, useVCB11);
453 FDKaacEnc_gmStage2(huffsection,
468 for (i = 0; i < sectionData->maxSfbPerGroup; i += huffsection[i].sfbCnt)
470 huffsection[i].codeBook==CODE_BOOK_PNS_NO) ||
471 (huffsection[i].codeBook==CODE_BOOK_IS_OUT_OF_PHASE_NO) ||
472 (huffsection[i].codeBook==CODE_BOOK_IS_IN_PHASE_NO))
474 huffsection[i].sectionBits=0;
478 FDKaacEnc_findBestBook(bitLookUp[i], &(huffsection[i].codeBook), useVCB11);
480 sectionData->huffmanBits += huffsection[i].sectionBits - FDKaacEnc_getSideInfoBits(&huffsection[i], sideInfoTab, useVCB11);
483 huffsection[i].sfbStart += grpNdx;
486 sectionData->sideInfoBits += FDKaacEnc_getSideInfoBits(&huffsection[i], sideInfoTab, useVCB11);
487 sectionData->huffsection[sectionData->noOfSections++] = huffsection[i];
552 if (sectionData->huffsection[i].codeBook != CODE_BOOK_ZERO_NO)
554 sectionData->firstScf = sectionData->huffsection[i].sfbStart;
562 if ((sectionData->huffsection[i].codeBook == CODE_BOOK_IS_OUT_OF_PHASE_NO) ||
563 (sectionData->huffsection[i].codeBook == CODE_BOOK_IS_IN_PHASE_NO))
565 for (j = sectionData->huffsection[i].sfbStart;
566 j < sectionData->huffsection[i].sfbStart + sectionData->huffsection[i].sfbCnt;
574 else if ((sectionData->huffsection[i].codeBook != CODE_BOOK_ZERO_NO) &&
575 (sectionData->huffsection[i].codeBook != CODE_BOOK_PNS_NO))
577 INT tmp = sectionData->huffsection[i].sfbStart + sectionData->huffsection[i].sfbCnt;
578 for (j = sectionData->huffsection[i].sfbStart; j<tmp; j++)
617 if ((sectionData->huffsection[m].codeBook != CODE_BOOK_ZERO_NO) && (sectionData->huffsection[m].codeBook != CODE_BOOK_PNS_NO))
619 INT end = sectionData->huffsection[m].sfbStart + sectionData->huffsection[m].sfbCnt;
620 for (n = sectionData->huffsection[m].sfbStart; n<end; n++)
707 if (sectionData->huffsection[i].codeBook == CODE_BOOK_PNS_NO) {
708 int sfbStart = sectionData->huffsection[i].sfbStart;
709 int sfbEnd = sfbStart + sectionData->huffsection[i].sfbCnt;