Home | History | Annotate | Download | only in src

Lines Matching full:sectiondata

390         SECTION_DATA* const RESTRICT sectionData,
419 sectionData->noOfSections = 0;
420 sectionData->huffmanBits = 0;
421 sectionData->sideInfoBits = 0;
424 if (sectionData->maxSfbPerGroup == 0)
428 for (grpNdx = 0; grpNdx < sectionData->sfbCnt; grpNdx += sectionData->sfbPerGroup)
430 huffsection = sectionData->huffsection + sectionData->noOfSections;
434 sectionData->maxSfbPerGroup,
441 FDKaacEnc_gmStage0(huffsection, bitLookUp, sectionData->maxSfbPerGroup, noiseNrg+grpNdx, isBook+grpNdx);
444 FDKaacEnc_gmStage1(huffsection, bitLookUp, sectionData->maxSfbPerGroup, sideInfoTab, useVCB11);
456 sectionData->maxSfbPerGroup,
468 for (i = 0; i < sectionData->maxSfbPerGroup; i += huffsection[i].sfbCnt)
476 /* the sections in the sectionData are now marked with the optimal code book */
480 sectionData->huffmanBits += huffsection[i].sectionBits - FDKaacEnc_getSideInfoBits(&huffsection[i], sideInfoTab, useVCB11);
486 sectionData->sideInfoBits += FDKaacEnc_getSideInfoBits(&huffsection[i], sideInfoTab, useVCB11);
487 sectionData->huffsection[sectionData->noOfSections++] = huffsection[i];
531 SECTION_DATA* const RESTRICT sectionData,
543 sectionData->scalefacBits = 0;
548 sectionData->firstScf = 0;
550 for (i=0; i<sectionData->noOfSections; i++)
552 if (sectionData->huffsection[i].codeBook != CODE_BOOK_ZERO_NO)
554 sectionData->firstScf = sectionData->huffsection[i].sfbStart;
555 lastValScf = scalefacGain[sectionData->firstScf];
560 for (i=0; i<sectionData->noOfSections; i++)
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;
571 sectionData->scalefacBits+=FDKaacEnc_bitCountScalefactorDelta(deltaIs);
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++)
615 for (m=(i+1); (m < sectionData->noOfSections) && (found == 0); m++)
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++)
658 sectionData->scalefacBits += FDKaacEnc_bitCountScalefactorDelta(deltaScf);
661 } /* for (i=0; i<sectionData->noOfSections; i++) */
696 SECTION_DATA* const RESTRICT sectionData,
704 sectionData->noiseNrgBits = 0;
706 for (i = 0; i < sectionData->noOfSections; i++) {
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;
713 sectionData->noiseNrgBits+=PNS_PCM_BITS;
719 sectionData->noiseNrgBits+=FDKaacEnc_bitCountScalefactorDelta(deltaPns);
736 SECTION_DATA* const RESTRICT sectionData,
743 sectionData->blockType = blockType;
744 sectionData->sfbCnt = sfbCnt;
745 sectionData->sfbPerGroup = sfbPerGroup;
746 sectionData->noOfGroups = sfbCnt / sfbPerGroup;
747 sectionData->maxSfbPerGroup = maxSfbPerGroup;
750 sectionData,
764 sectionData,
767 FDKaacEnc_noiseCount(sectionData,
770 return (sectionData->huffmanBits +
771 sectionData->sideInfoBits +
772 sectionData->scalefacBits +
773 sectionData->noiseNrgBits);