/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] 151 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 | 116 INT sfb; /* counts through scalefactor bands */ local 132 for (sfb = sfbActive-1; sfb >= highestSfb; sfb--) 134 for (line = sfbOffset[sfb+1]-1; line >= sfbOffset[sfb]; line--) 138 if (line >= sfbOffset[sfb]) break; /* this band was not completely zero */ 140 highestSfb = fixMax(highestSfb, sfb); 150 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 579 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 | 460 INT sfb; /* counts through scalefactor bands */ local 625 /* Low pass / highest sfb */ 666 /* Calc possible spectrum leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */ 681 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++) 682 minSpecShift = fixMin(minSpecShift, (pSfbMaxScaleSpec[ch]+w*maxSfb[ch])[sfb]); 687 /* Calc possible energy leftshift for each sfb (1 means: 1 bit left shift is possible without overflow) */ 725 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 | 1293 INT sfbOffs,sfb; local 1297 for (sfb = 0; sfb < maxSfbPerGroup; sfb++) 1301 for (line = sfbOffset[sfbOffs+sfb]; line < sfbOffset[sfbOffs+sfb+1]; line++) 1307 maxValue[sfbOffs+sfb] = maxThisSfb; 1465 INT sfb, sfbGrp ; local 1481 INT sfb ; local 1484 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 | 156 INT ch, sfb, sfbGrp; local 161 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb++) { 162 thrExpLdData = psyOutChannel[ch]->sfbThresholdLdData[sfbGrp+sfb]>>2 ; 163 thrExp[ch][sfbGrp+sfb] = CalcInvLdData(thrExpLdData); 179 INT ch, sfb, sfbGrp, nSfb; local 191 for (sfb=0; sfb<psyOutChannel[ch]->maxSfbPerGroup; sfb 234 INT ch, sfb, sfbGrp; local 242 INT sfbGrp, sfb; local 453 int sfb, nLinesSum = 0; local 576 int sfb, sfbGrp; local 606 INT ch, sfb,sfbGrp; local 645 INT ch, sfb, sfbGrp; local 703 INT sfbGrp, sfb; local 748 INT ch, sfbGrp, sfb; local 944 INT ch, sfb, sfbGrp; local 1138 INT sfb, sfbGrp; local 1227 INT ch, sfb, sfbGrp; local 1363 INT sfb, sfbGrp; local 1404 int ch, sfb, sfbGrp; local 2295 int ch,sfb,sfbGrp; local [all...] |
/external/aac/libAACdec/src/ |
H A D | conceal.cpp | 1318 int line, sfb, scaleFactorBandsTotal = 0; local 1335 for (sfb = 0; sfb < scaleFactorBandsTotal; sfb++) { 1337 int sfbScale = (sizeof(LONG)<<3) - CntLeadingZeros(pSfbOffset[sfb+1] - pSfbOffset[sfb]) - 1; 1338 /* scaling depends on sfb width. */ 1339 for ( ; line < pSfbOffset[sfb+1]; line++) { 1342 *(sfbEnergy + sfb) = CntLeadingZeros(enAccu) - 1; 1350 for (sfb 1418 int sfb, line = 0; local [all...] |