/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...] |
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...] |
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...] |
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 | 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 < 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 579 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 | 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...] |
/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 | 71 Word16 ch, sfb, sfbGrp; local 78 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 96 Word16 ch, sfb, sfbOffs, shift; local 109 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 110 avgEn = L_add(avgEn, psyOutChan->sfbEnergy[sfbOffs+sfb]); 125 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) 167 Word16 ch, sfb, sfbGrp, shift; local 332 Word16 ch, sfb, sfbGrp; local 372 Word16 ch, sfb, sfbGrp; local 419 Word16 ch, sfb, sfbGrp,shift; local 531 Word16 ch, sfb, sfbSubWin; local 583 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...] |
/frameworks/av/media/libstagefright/codecs/aacdec/ |
hufffac.cpp | 79 each sfb, type Int 190 FOR(sfb = 0; sfb < nsfb_win; sfb++) 192 IF ((pHuffBookUsed[sfb] > 0)&&(pHuffBookUsed[sfb] < BOOKSCL)) 204 pFactors[sfb] = fac; 209 ELSE IF (pHuffBookUsed[sfb] == ZERO_HCB) 214 ELSE IF ((pHuffBookUsed[sfb] == INTENSITY_HCB)|| 215 (pHuffBookUsed[sfb] == INTENSITY_HCB2) 374 Int sfb; \/* scalefactor band index *\/ local [all...] |
getmask.cpp | 157 FOR(sfb = pFrameInfo->sfb_per_win[win]; sfb > 0; sfb--) 185 FOR (sfb = nCall; sfb > 0; sfb--) 186 *(pMask++) = (tempMask & bitmask) >> (sfb - 1); 264 Int sfb; local 294 for (sfb = pFrameInfo->sfb_per_win[win]; sfb > 0; sfb-- [all...] |
pns_left.cpp | 78 of long term prediction on a sfb 116 When a SFB utilizing NOISE_HCB is detected, the band in every window in the 184 FOR (sfb = num_bands; sfb > 0; sfb--) 214 RETURNING q_format[start_indx] = q-format for this sfb. 331 Int sfb; local 378 for (sfb = 0; sfb < num_bands; sfb++ [all...] |
calc_gsfb_table.cpp | 135 FOR (sfb = 0; sfb < pFrameInfo->sfb_per_win[group_idx]; sfb++) 137 offset += pFrameInfo->sfb_width_128[sfb] * len; 220 Int sfb; local 258 for (sfb = nsfb; sfb > 0; sfb--)
|
apply_ms_synt.cpp | 104 place, ms_mask_map must be TRUE for that particular SFB, AND the Huffman 167 FOR (sfb = sfb_per_win; sfb > 0; sfb--) 313 Int sfb; local 379 for (sfb = sfb_per_win; sfb > 0; sfb--) 392 * Example... sfb[3] == NOISE_HCB 398 * The for(sfb) steps through the sfb's 0-7 in win 0 [all...] |
deinterleave.cpp | 128 FOR (sfb = pSfbPerWin[ngroups-group]; sfb > 0; sfb--) 149 ENDFOR (sfb) 229 Int sfb; /* scalefactor band index */ local 260 for (sfb = pSfbPerWin[ngroups-group]; sfb > 0; sfb--) 281 } /* for (sfb) */
|
q_normalize.cpp | 120 FOR (sfb = nsfb; sfb > 0; sfb--) 144 FOR (sfb = nsfb; sfb > 0; sfb--) 243 Int sfb; local 278 for (sfb = nsfb; sfb != 0; sfb-- [all...] |