/external/aac/libAACenc/src/ |
H A D | line_pe.cpp | 112 INT sfbGrp,sfb; local 118 for (sfb=0; sfb<maxSfbPerGroup; sfb++) { 119 if ((FIXP_DBL)sfbEnergyLdData[sfbGrp+sfb] > (FIXP_DBL)sfbThresholdLdData[sfbGrp+sfb]) { 120 sfbWidth = sfbOffset[sfbGrp+sfb+1] - sfbOffset[sfbGrp+sfb]; 122 avgFormFactorLdData = ((-sfbEnergyLdData[sfbGrp+sfb]>>1) + (CalcLdInt(sfbWidth)>>1))>>1; 123 peChanData->sfbNLines[sfbGrp+sfb] 153 INT sfbGrp,sfb; local [all...] |
H A D | noisedet.cpp | 125 description: detect tonal sfb's; two tests 127 sfb splittet in four regions, 133 number of sfb's 134 pointer to offset of sfb's 137 pointer to sfb energies 152 int i, k, sfb, sfbWidth; local 158 for (sfb=0; sfb<sfbActive; sfb++) { 161 sfbWidth = sfbOffset[sfb [all...] |
H A D | grp_data.cpp | 120 INT sfb; /* counts through scalefactor bands */ local 136 for (sfb = sfbActive-1; sfb >= highestSfb; sfb--) 138 for (line = sfbOffset[sfb+1]-1; line >= sfbOffset[sfb]; line--) 142 if (line >= sfbOffset[sfb]) break; /* this band was not completely zero */ 144 highestSfb = fixMax(highestSfb, sfb); 154 for (sfb = 0; sfb < sfbActiv [all...] |
H A D | ms_stereo.cpp | 126 INT sfb,sfboffs, j; /* loop counters */ local 135 for(sfb=0; sfb<sfbCnt; sfb+=sfbPerGroup) { 138 if ( (isBook==NULL) ? 1 : (isBook[sfb+sfboffs] == 0) ) { 142 minThreshold=min(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs])*scaleMinThres; 143 pnlr = (sfbThresholdLeft[sfb+sfboffs]/ 144 max(sfbEnergyLeft[sfb+sfboffs],sfbThresholdLeft[sfb [all...] |
H A D | aacenc_pns.cpp | 127 number of sfb's, pointer to sfb offset 200 int sfb; local 208 for (sfb=0; sfb<MAX_GROUPED_SFB; sfb++) { 209 noiseNrg[sfb] = NO_NOISE_PNS; /* clear nrg's of previous frame */ 221 for (sfb = 0; sfb < sfbActive; sfb 399 int sfb; local 432 INT sfb; local 499 INT sfb; local 552 INT sfb; local [all...] |
H A D | quantize.cpp | 268 INT sfbOffs,sfb; local 276 for (sfb = 0; sfb < maxSfbPerGroup; sfb++) 278 INT scalefactor = scalefactors[sfbOffs+sfb] ; 281 sfbOffset[sfbOffs+sfb+1] - sfbOffset[sfbOffs+sfb], 282 mdctSpectrum + sfbOffset[sfbOffs+sfb], 283 quantizedSpectrum + sfbOffset[sfbOffs+sfb]);
|
H A D | intensity.cpp | 118 * if IS_LEFT_RIGHT_RATIO_THRESH < sfbEnergyLeft[sfb]/sfbEnergyRight[sfb] < 1 / IS_LEFT_RIGHT_RATIO_THRESH 258 INT j,sfb,sfboffs; local 279 for (sfb = 0; sfb < maxSfbPerGroup; sfb++) { 281 FIXP_DBL isValue = sfbEnergyLdDataLeft[sfb+sfboffs]-sfbEnergyLdDataRight[sfb+sfboffs]; 284 realScale[sfb + sfboffs] = fixMin(FL2FXCONST_DBL(60.f/(1<<(REAL_SCALE_SF+LD_DATA_SHIFT))), fixMax(FL2FXCONST_DBL(-60.f/(1<<(REAL_SCALE_SF+LD_DATA_SHIFT))), isValue)); 286 sL = fixMax(0,(CntLeadingZeros(sfbEnergyLeft[sfb 452 INT sfb,sfboffs, j; local 588 INT sfb,sfboffs, j; local [all...] |
H A D | psy_configuration.cpp | 262 calc sfb offsets 466 INT sfb; local 518 for (sfb = 0; sfb < sfbActive; sfb++) 520 barcWidth = FDKaacEnc_BarcLineValue(numLines, sfbOffset[sfb+1], samplerate) - 521 FDKaacEnc_BarcLineValue(numLines, sfbOffset[sfb], samplerate); 523 /* adapt to sfb bands */ 527 sfbWidth = (sfbOffset[sfb+1] - sfbOffset[sfb]); 578 INT sfb; local [all...] |
H A D | psy_main.cpp | 455 INT sfb; /* counts through scalefactor bands */ local 620 /* Low pass / highest sfb */ 661 /* Calc possible spectrum leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */ 676 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++) 677 minSpecShift = fixMin(minSpecShift, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]); 682 /* Calc possible energy leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */ 720 for(sfb=0; sfb<psyDat [all...] |
H A D | bitenc.cpp | 121 INT i,sfb; local 130 for(sfb=sectionData->huffsection[i].sfbStart; sfb<tmp; sfb++) 132 FDKaacEnc_codeValues(quantSpectrum+sfbOffset[sfb], 133 sfbOffset[sfb+1]-sfbOffset[sfb], 327 } /* sfb */ 345 } /* sfb */ 362 } /* sfb */ 389 INT sfb, sfbOff, msBits = 0; local [all...] |
H A D | qc_main.cpp | 1299 INT sfbOffs,sfb; local 1303 for (sfb = 0; sfb < maxSfbPerGroup; sfb++) 1307 for (line = sfbOffset[sfbOffs+sfb]; line < sfbOffset[sfbOffs+sfb+1]; line++) 1313 maxValue[sfbOffs+sfb] = maxThisSfb; 1483 INT sfb, sfbGrp ; local 1499 INT sfb ; local 1502 for (sfb [all...] |
H A D | sf_estim.cpp | 122 INT j, sfb, sfbGrp; local 129 for (sfb = 0; sfb < tmp1; sfb++) { 132 for(j=psyOutChan->sfbOffsets[sfbGrp+sfb]; j<psyOutChan->sfbOffsets[sfbGrp+sfb+1]; j++ ) { 135 sfbFormFactorLdData[sfbGrp+sfb] = CalcLdData(formFactor); 138 for ( ; sfb < psyOutChan->sfbPerGroup; sfb++) { 139 sfbFormFactorLdData[sfbGrp+sfb] 178 INT sfbOffs, sfb; local 264 INT sfb = 0, sfbLast; local 316 INT sfb; local 639 INT sfb, startSfb, stopSfb; local 778 INT sfb, startSfb, stopSfb; local 1064 INT i, j, sfb, sfbOffs; local [all...] |
H A D | adj_thr.cpp | 360 INT ch, sfb, sfbGrp; local 365 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { 366 thrExpLdData = psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb]>>2 ; 367 thrExp[ch][sfbGrp+sfb] = CalcInvLdData(thrExpLdData); 383 INT ch, sfb, sfbGrp, nSfb; local 395 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb 438 INT ch, sfb, sfbGrp; local 446 INT sfbGrp, sfb; local 657 int sfb, sfbGrp, nLinesSum = 0; local 784 int sfb, sfbGrp; local 814 INT ch, sfb,sfbGrp; local 853 INT ch, sfb, sfbGrp; local 911 INT sfbGrp, sfb; local 955 INT ch, sfbGrp, sfb; local 1150 INT ch, sfb, sfbGrp; local 1344 INT sfb, sfbGrp; local 1433 INT ch, sfb, sfbGrp; local 1569 INT sfb, sfbGrp; local 1610 int ch, sfb, sfbGrp; local 2603 int ch,sfb,sfbGrp; local [all...] |
/external/aac/libAACdec/src/ |
H A D | conceal.cpp | 1319 int line, sfb, scaleFactorBandsTotal = 0; local 1336 for (sfb = 0; sfb < scaleFactorBandsTotal; sfb++) { 1338 int sfbScale = (sizeof(LONG)<<3) - CntLeadingZeros(pSfbOffset[sfb+1] - pSfbOffset[sfb]) - 1; 1339 /* scaling depends on sfb width. */ 1340 for ( ; line < pSfbOffset[sfb+1]; line++) { 1343 *(sfbEnergy + sfb) = CntLeadingZeros(enAccu) - 1; 1351 for (sfb 1419 int sfb, line = 0; local [all...] |