/frameworks/base/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...] |
/frameworks/base/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 | 70 Word16 ch, sfb, sfbGrp;
local 77 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 95 Word16 ch, sfb, sfbOffs, shift; local 108 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) { 109 avgEn = L_add(avgEn, psyOutChan->sfbEnergy[sfbOffs+sfb]); 124 for (sfb=0; sfb<psyOutChan->maxSfbPerGroup; sfb++) 166 Word16 ch, sfb, sfbGrp, shift; local 331 Word16 ch, sfb, sfbGrp; local 371 Word16 ch, sfb, sfbGrp; local 418 Word16 ch, sfb, sfbGrp,shift; local 530 Word16 ch, sfb, sfbSubWin; local 582 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...] |
stat_bits.c | 54 Word16 msBits, sfbOff, sfb; local 65 for(sfb=0; sfb<maxSfbPerGroup; sfb++)
|
qc_main.c | 401 * description: search the max Spectrum in one sfb 411 Word16 sfbOffs, sfb; local 417 for (sfb = 0; sfb < maxSfbPerGroup; sfb++) { 422 for (line = sfbOffset[sfbOffs+sfb]; line < sfbOffset[sfbOffs+sfb+1]; line++) { 428 maxValue[sfbOffs+sfb] = maxThisSfb;
|
tns.c | 273 Word32 * sfbEnergy) /*!< sfb-wise energy */ 534 Word32 *sfbEnergy, /*!< sfb energies */ 544 Word32 i, sfb, shift; local 554 for( sfb = lpcStartBand; sfb < lpcStopBand; sfb++) { 556 tmp2 = sfbEnergy[sfb] - 2; 558 tmp = rsqrt(sfbEnergy[sfb], INT_BITS); 572 tnsSfbMean[sfb] = tmp; 576 sfb = lpcStartBand; [all...] |
/frameworks/base/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...] |
huffspec_fxp.cpp | 47 by sfb 105 factors[] = array that contains scalefactors for each sfb, type Int16 316 Int sfb; local 321 Int stop_idx; /* index of 1st coef in next sfb */ 322 Int sect_start; /* start index of sfb in one section*/ 323 Int sect_end; /* index of 1st sfb in next section */ 358 /* pSfb: ptr to array that holds stop index of each sfb */ 476 /* move ptr to first sfb of current section */ 480 for (sfb = sect_start; sfb < sect_end; sfb++ [all...] |
pns_intensity_right.cpp | 117 When a SFB utilizing the codebook NOISE_HCB is detected, a check is made to 118 see if M/S has also been enabled for that SFB. 130 When a SFB utilizing an intensity codebook is detected, the band's spectral 196 FOR (sfb = sfb_per_win; sfb > 0; sfb--) 413 Int sfb; local 482 for (sfb = sfb_per_win; sfb > 0; sfb-- [all...] |