/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_mpeg2_get_scale_factors.cpp | 127 int32 sfb; local 147 for (sfb = 0; sfb < 6; sfb++) 149 scalefac->l[sfb] = scalefac_buffer[sfb]; 154 for (sfb = 3; sfb < 12; sfb++) 158 scalefac->s[window][sfb] = scalefac_buffer[k] [all...] |
pvmp3_get_scale_factors.cpp | 138 int32 sfb; local 147 for (sfb = 0; sfb < 8; sfb++) 149 scalefac->l[sfb] = getNbits(pMainData, slen[0][gr_info->scalefac_compress]); 152 for (sfb = 3; sfb < 6; sfb++) 156 scalefac->s[window][sfb] = getNbits(pMainData, slen[0][gr_info->scalefac_compress]); 159 for (sfb = 6; sfb < 12; sfb++ [all...] |
pvmp3_mpeg2_stereo_proc.cpp | 233 int32 sfb; local 310 sfbTemp = i; /* from that (long) sfb on we have intensity stereo */ 320 /* 2. long blocks from intensity border up to sfb band 6: intensity */ 323 for (sfb = sfbTemp; sfb < 6; sfb++) 325 sfbStart = mp3_sfBandIndex[sfreq].l[sfb]; /* = Start in 0 ... 575 */ 326 sfbNo = mp3_sfBandIndex[sfreq].l[sfb+1] - mp3_sfBandIndex[sfreq].l[sfb]; /* No of lines to process */ 328 if ((uint32)(scalefac_R->l[sfb]) != scalefac_IIP_buffer[sfb] [all...] |
pvmp3_reorder.cpp | 133 int32 sfb; local 137 sfb = 3; /* no reorder for low 2 subbands */ 142 sfb = 0; 147 for (; sfb < 13; sfb++) 149 if (*used_freq_lines > 3*mp3_sfBandIndex[sfreq].s[sfb+1]) 151 sfb_lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; 172 sfb_lines = mp3_sfBandIndex[sfreq].s[sfb+1] - mp3_sfBandIndex[sfreq].s[sfb]; [all...] |
pvmp3_stereo_proc.cpp | 100 scalefactors of the left channel) and a stereo position is_pos[sfb], 266 int32 sfb; local 323 sfb = 4; 327 sfb = 0; 330 while (mp3_sfBandIndex[sfreq].l[sfb] < sb) 332 sfb++; 335 /* from that sfb on intensity stereo */ 336 sfbTemp = sfb; /* save for later use */ 338 sfbStart = mp3_sfBandIndex[sfreq].l[sfb]; 347 /* 2. long blocks from intensity border up to sfb band 8: intensity * [all...] |
/external/aac/libAACenc/src/ |
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+sfboffs])) [all...] |
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...] |
aacenc_pns.cpp | 127 number of sfb's, pointer to sfb offset 174 pointer to Sfb Energy, Threshold, 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...] |
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] = FL2FXCONST_DBL(-1.0f) 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...] |
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 < sfbActive+1; sfb++ [all...] |
intensity.cpp | 103 * not more than IS_LOCAL_ERROR_THRESH for the current SFB */ 118 * if IS_LEFT_RIGHT_RATIO_THRESH < sfbEnergyLeft[sfb]/sfbEnergyRight[sfb] < 1 / IS_LEFT_RIGHT_RATIO_THRESH 145 not more than 'local_error_thresh' for the current SFB. */ 258 INT j,sfb,sfboffs; local 279 for (sfb = 0; sfb < maxSfbPerGroup; sfb++) { 281 FIXP_DBL isValue = sfbEnergyLdDataLeft[sfb+sfboffs]-sfbEnergyLdDataRight[sfb+sfboffs] 452 INT sfb,sfboffs, j; local 588 INT sfb,sfboffs, j; local [all...] |
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+1] - sfbOffset[sfb] [all...] |
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...] |
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...] |
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<psyData[ch]->sfbActive; sfb++) [all...] |
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]);
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
grp_data.c | 52 Word32 sfb; local 64 for (sfb=sfbCnt - 1; sfb>=highestSfb; sfb--) { 65 for (line=(sfbOffset[sfb + 1] - 1); line>=sfbOffset[sfb]; line--) { 70 if (line >= sfbOffset[sfb]) break; 72 highestSfb = max(highestSfb, sfb); 84 for (sfb = 0; sfb < sfbCnt; sfb++) [all...] |
line_pe.c | 47 Word32 sfbGrp, sfb; local 54 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 55 peChanData->sfbNLines4[sfbGrp+sfb] = sfbNRelevantLines[ch][sfbGrp+sfb]; 56 sfbNRelevantLines[ch][sfbGrp+sfb] = sfbNRelevantLines[ch][sfbGrp+sfb] >> 2; 57 peChanData->sfbLdEnergy[sfbGrp+sfb] = logSfbEnergy[ch][sfbGrp+sfb]; 76 Word32 sfbGrp, sfb; local [all...] |
adj_thr.c | 74 Word16 ch, sfb, sfbGrp; local 81 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 99 Word16 ch, sfb, sfbOffs, shift; local 112 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 113 avgEn = L_add(avgEn, psyOutChan->sfbEnergy[sfbOffs+sfb]); 128 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) 170 Word16 ch, sfb, sfbGrp, shift; local 335 Word16 ch, sfb, sfbGrp; local 375 Word16 ch, sfb, sfbGrp; local 422 Word16 ch, sfb, sfbGrp,shift; local 534 Word16 ch, sfb, sfbSubWin; local 586 Word16 ch, sfb; local [all...] |
sf_estim.c | 102 Word32 sfbOffs, sfb, shift; local 106 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 107 i = sfbOffs+sfb; 282 Word32 sfb, sfbLast; local 286 sfb = 0; 288 /* search for first relevant sfb */ 294 /* search for previous relevant sfb and count diff */ 306 for (sfb=sfbLast+1; sfb<stopSfb; sfb++) 338 Word32 sfb; local 568 Word32 sfb, startSfb, stopSfb, scfMin, scfMax, scfAct; local [all...] |
psy_configuration.c | 286 Word16 sfb; local 300 for (sfb=0; sfb<sfbActive; sfb++) { 302 pbVal1 = (pbBarcVal[sfb] << 1) - pbVal0; 308 (pbBarcVal[sfbActive-1] * (sfbOffset[sfb+1] - sfbOffset[sfb])); 334 sfbMinSnr[sfb] = round16(snr); 352 Word16 sfb; local 355 init sfb tabl 436 Word16 sfb; local [all...] |
ms_stereo.c | 54 Word32 sfb,sfboffs, j; local 58 for (sfb=0; sfb<sfbCnt; sfb+=sfbPerGroup) { 67 idx = sfb + sfboffs;
|
quantize.c | 299 Word32 sfbOffs, sfb; local 303 for (sfb = 0; sfb < maxSfbPerGroup; sfb = sfbNext) { 304 Word16 scalefactor = scalefactors[sfbOffs+sfb]; 306 for (sfbNext = sfb+1; 311 sfbOffset[sfbOffs+sfbNext] - sfbOffset[sfbOffs+sfb], 312 mdctSpectrum + sfbOffset[sfbOffs+sfb], 313 quantizedSpectrum + sfbOffset[sfbOffs+sfb]);
|
bitenc.c | 46 Word16 i,sfb; local 56 for(sfb=psectioninfo->sfbStart; 57 sfb<psectioninfo->sfbStart+psectioninfo->sfbCnt; 58 sfb++) { 59 codeValues(quantSpectrum+sfbOffset[sfb], 60 sfbOffset[sfb+1] - sfbOffset[sfb], 129 * SFB's) 228 Word16 sfb, sfbOff; local 244 for(sfb=0; sfb<maxSfb; sfb++) [all...] |
/external/aac/libAACdec/src/ |
conceal.cpp | 1318 int line, sfb, scaleFactorBandsTotal = 0; local 1418 int sfb, line = 0; local [all...] |