• Home
  • Raw
  • Download

Lines Matching refs:sectionData

344     SECTION_DATA* const RESTRICT sectionData, INT mergeGainLookUp[MAX_SFB_LONG],  in FDKaacEnc_noiselessCounter()  argument
366 sectionData->noOfSections = 0; in FDKaacEnc_noiselessCounter()
367 sectionData->huffmanBits = 0; in FDKaacEnc_noiselessCounter()
368 sectionData->sideInfoBits = 0; in FDKaacEnc_noiselessCounter()
370 if (sectionData->maxSfbPerGroup == 0) return; in FDKaacEnc_noiselessCounter()
373 for (grpNdx = 0; grpNdx < sectionData->sfbCnt; in FDKaacEnc_noiselessCounter()
374 grpNdx += sectionData->sfbPerGroup) { in FDKaacEnc_noiselessCounter()
375 huffsection = sectionData->huffsection + sectionData->noOfSections; in FDKaacEnc_noiselessCounter()
378 FDKaacEnc_buildBitLookUp(quantSpectrum, sectionData->maxSfbPerGroup, in FDKaacEnc_noiselessCounter()
383 FDKaacEnc_gmStage0(huffsection, bitLookUp, sectionData->maxSfbPerGroup, in FDKaacEnc_noiselessCounter()
387 FDKaacEnc_gmStage1(huffsection, bitLookUp, sectionData->maxSfbPerGroup, in FDKaacEnc_noiselessCounter()
397 sectionData->maxSfbPerGroup, sideInfoTab, useVCB11); in FDKaacEnc_noiselessCounter()
405 for (i = 0; i < sectionData->maxSfbPerGroup; i += huffsection[i].sfbCnt) { in FDKaacEnc_noiselessCounter()
417 sectionData->huffmanBits += in FDKaacEnc_noiselessCounter()
425 sectionData->sideInfoBits += in FDKaacEnc_noiselessCounter()
427 sectionData->huffsection[sectionData->noOfSections++] = huffsection[i]; in FDKaacEnc_noiselessCounter()
469 SECTION_DATA* const RESTRICT sectionData, in FDKaacEnc_scfCount() argument
479 sectionData->scalefacBits = 0; in FDKaacEnc_scfCount()
483 sectionData->firstScf = 0; in FDKaacEnc_scfCount()
485 for (i = 0; i < sectionData->noOfSections; i++) { in FDKaacEnc_scfCount()
486 if (sectionData->huffsection[i].codeBook != CODE_BOOK_ZERO_NO) { in FDKaacEnc_scfCount()
487 sectionData->firstScf = sectionData->huffsection[i].sfbStart; in FDKaacEnc_scfCount()
488 lastValScf = scalefacGain[sectionData->firstScf]; in FDKaacEnc_scfCount()
493 for (i = 0; i < sectionData->noOfSections; i++) { in FDKaacEnc_scfCount()
494 if ((sectionData->huffsection[i].codeBook == in FDKaacEnc_scfCount()
496 (sectionData->huffsection[i].codeBook == CODE_BOOK_IS_IN_PHASE_NO)) { in FDKaacEnc_scfCount()
497 for (j = sectionData->huffsection[i].sfbStart; in FDKaacEnc_scfCount()
498 j < sectionData->huffsection[i].sfbStart + in FDKaacEnc_scfCount()
499 sectionData->huffsection[i].sfbCnt; in FDKaacEnc_scfCount()
503 sectionData->scalefacBits += in FDKaacEnc_scfCount()
507 else if ((sectionData->huffsection[i].codeBook != CODE_BOOK_ZERO_NO) && in FDKaacEnc_scfCount()
508 (sectionData->huffsection[i].codeBook != CODE_BOOK_PNS_NO)) { in FDKaacEnc_scfCount()
509 INT tmp = sectionData->huffsection[i].sfbStart + in FDKaacEnc_scfCount()
510 sectionData->huffsection[i].sfbCnt; in FDKaacEnc_scfCount()
511 for (j = sectionData->huffsection[i].sfbStart; j < tmp; j++) { in FDKaacEnc_scfCount()
542 for (m = (i + 1); (m < sectionData->noOfSections) && (found == 0); in FDKaacEnc_scfCount()
544 if ((sectionData->huffsection[m].codeBook != CODE_BOOK_ZERO_NO) && in FDKaacEnc_scfCount()
545 (sectionData->huffsection[m].codeBook != CODE_BOOK_PNS_NO)) { in FDKaacEnc_scfCount()
546 INT end = sectionData->huffsection[m].sfbStart + in FDKaacEnc_scfCount()
547 sectionData->huffsection[m].sfbCnt; in FDKaacEnc_scfCount()
548 for (n = sectionData->huffsection[m].sfbStart; n < end; n++) { in FDKaacEnc_scfCount()
581 sectionData->scalefacBits += in FDKaacEnc_scfCount()
589 static void FDKaacEnc_noiseCount(SECTION_DATA* const RESTRICT sectionData, in FDKaacEnc_noiseCount() argument
595 sectionData->noiseNrgBits = 0; in FDKaacEnc_noiseCount()
597 for (i = 0; i < sectionData->noOfSections; i++) { in FDKaacEnc_noiseCount()
598 if (sectionData->huffsection[i].codeBook == CODE_BOOK_PNS_NO) { in FDKaacEnc_noiseCount()
599 int sfbStart = sectionData->huffsection[i].sfbStart; in FDKaacEnc_noiseCount()
600 int sfbEnd = sfbStart + sectionData->huffsection[i].sfbCnt; in FDKaacEnc_noiseCount()
603 sectionData->noiseNrgBits += PNS_PCM_BITS; in FDKaacEnc_noiseCount()
609 sectionData->noiseNrgBits += in FDKaacEnc_noiseCount()
623 SECTION_DATA* const RESTRICT sectionData, in FDKaacEnc_dynBitCount() argument
626 sectionData->blockType = blockType; in FDKaacEnc_dynBitCount()
627 sectionData->sfbCnt = sfbCnt; in FDKaacEnc_dynBitCount()
628 sectionData->sfbPerGroup = sfbPerGroup; in FDKaacEnc_dynBitCount()
629 sectionData->noOfGroups = sfbCnt / sfbPerGroup; in FDKaacEnc_dynBitCount()
630 sectionData->maxSfbPerGroup = maxSfbPerGroup; in FDKaacEnc_dynBitCount()
632 FDKaacEnc_noiselessCounter(sectionData, hBC->mergeGainLookUp, in FDKaacEnc_dynBitCount()
637 FDKaacEnc_scfCount(scalefac, maxValueInSfb, sectionData, isScale); in FDKaacEnc_dynBitCount()
639 FDKaacEnc_noiseCount(sectionData, noiseNrg); in FDKaacEnc_dynBitCount()
641 return (sectionData->huffmanBits + sectionData->sideInfoBits + in FDKaacEnc_dynBitCount()
642 sectionData->scalefacBits + sectionData->noiseNrgBits); in FDKaacEnc_dynBitCount()