/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
psy_main.c | 81 Word32 *mdctSpectrum; 85 mdctSpectrum = (Word32 *)mem_malloc(pMemOP, nChan * FRAME_LEN_LONG * sizeof(Word32), 32, VO_INDEX_ENC_AAC); 86 if(NULL == mdctSpectrum) 103 hPsy->psyData[i].mdctSpectrum = mdctSpectrum + i*FRAME_LEN_LONG; 128 if(hPsy->psyData[0].mdctSpectrum) 129 mem_free(pMemOP, hPsy->psyData[0].mdctSpectrum, VO_INDEX_ENC_AAC); 133 hPsy->psyData[nch].mdctSpectrum = NULL; 285 psyData[ch].mdctSpectrum, 296 Word32 *Spectrum = psyData[ch].mdctSpectrum; [all...] |
grp_data.c | 35 groupShortData(Word32 *mdctSpectrum, 67 if (mdctSpectrum[wnd*FRAME_LEN_SHORT+line] != 0) break; 173 tmpSpectrum[i] = mdctSpectrum[line]; 182 mdctSpectrum[i] = tmpSpectrum[i]; 183 mdctSpectrum[i+1] = tmpSpectrum[i+1]; 184 mdctSpectrum[i+2] = tmpSpectrum[i+2]; 185 mdctSpectrum[i+3] = tmpSpectrum[i+3];
|
band_nrg.c | 33 void CalcBandEnergy(const Word32 *mdctSpectrum, 45 accu = L_add(accu, MULHIGH(mdctSpectrum[j], mdctSpectrum[j]));
|
quantize.c | 53 * quaSpectrum = mdctSpectrum^3/4*2^(-(3/16)*gain) 99 * quaSpectrum = mdctSpectrum^3/4*2^(-(3/16)*gain) 106 const Word32 *mdctSpectrum, 126 mdctSpeL = mdctSpectrum[line]; 174 mdctSpeL = mdctSpectrum[line]; 223 * mdctSpectrum = iquaSpectrum^4/3 *2^(0.25*gain) 231 Word32 *mdctSpectrum) 271 mdctSpectrum[line] = accu << specExp; 273 mdctSpectrum[line] = accu >> (-specExp); 276 mdctSpectrum[line] = 0 [all...] |
interface.c | 68 psyOutCh->mdctSpectrum = groupedMdctSpectrum;
|
sf_estim.c | 114 mdctSpec = psyOutChan->mdctSpectrum + psyOutChan->sfbOffsets[i]; 503 sfbDistNew = calcSfbDist(psyOutChan->mdctSpectrum+ 660 sfbDistNew[sfb] = calcSfbDist(psyOutChan->mdctSpectrum + 723 mdctSpec = psyOutChan->mdctSpectrum+sbfStart; 751 scfInt = improveScf(psyOutChan->mdctSpectrum+sbfStart, 816 psyOutChan->mdctSpectrum[j] = 0; 831 psyOutChan->mdctSpectrum[j] = 0;
|
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
band_nrg.h | 30 void CalcBandEnergy(const Word32 *mdctSpectrum,
|
grp_data.h | 29 groupShortData(Word32 *mdctSpectrum,
|
quantize.h | 34 Word16 *sfbOffset, Word32 *mdctSpectrum,
|
interface.h | 62 Word32 *mdctSpectrum; 89 void BuildInterface(Word32 *mdctSpectrum,
|
psy_data.h | 62 Word32 *mdctSpectrum; /* mdct spectrum [FRAME_LEN_LONG] */
|
/external/aac/libAACenc/src/ |
quantize.cpp | 106 FIXP_DBL *mdctSpectrum, 117 FIXP_DBL accu = fMultDiv2(mdctSpectrum[line],quantizer); 156 mdctSpectrum = iquaSpectrum^4/3 *2^(0.25*gain) 164 FIXP_DBL *mdctSpectrum) 208 mdctSpectrum[line] = -accu; 242 mdctSpectrum[line] = accu; 245 mdctSpectrum[line] = FL2FXCONST_DBL(0.0f); 263 FIXP_DBL *mdctSpectrum, 282 mdctSpectrum + sfbOffset[sfbOffs+sfb], 296 FIXP_DBL FDKaacEnc_calcSfbDist(FIXP_DBL *mdctSpectrum, [all...] |
psy_main.cpp | 501 psyData[ch]->mdctSpectrum = psyOutChannel[ch]->mdctSpectrum; 610 psyData[ch]->mdctSpectrum+wOffset, 621 FDKmemclear(&psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset], 627 psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset - FADE_OUT_LEN + i] = fMult(psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset - FADE_OUT_LEN + i], fadeOutFactor[i]); 634 if (psyData[ch]->mdctSpectrum[line+wOffset] != (FIXP_DBL)0) { 671 FDKaacEnc_CalcSfbMaxScaleSpec(psyData[ch]->mdctSpectrum+wOffset, 686 currNrg = FDKaacEnc_CheckBandEnergyOptim(psyData[ch]->mdctSpectrum+wOffset, 736 psyData[ch]->mdctSpectrum[line+wOffset] <<= finalShift [all...] |
band_nrg.cpp | 101 FDKaacEnc_CalcSfbMaxScaleSpec(const FIXP_DBL *RESTRICT mdctSpectrum, 112 tmp = fixp_abs(mdctSpectrum[j]); 127 FDKaacEnc_CheckBandEnergyOptim(const FIXP_DBL *RESTRICT mdctSpectrum, 144 spec = mdctSpectrum[j]<<scale; 177 FDKaacEnc_CalcBandEnergyOptimLong(const FIXP_DBL *RESTRICT mdctSpectrum, 195 spec = mdctSpectrum[j]<<leadingBits; 201 spec = mdctSpectrum[j]>>shift; 253 FDKaacEnc_CalcBandEnergyOptimShort(const FIXP_DBL *RESTRICT mdctSpectrum, 267 FIXP_DBL spec = scaleValue(mdctSpectrum[j],leadingBits);
|
band_nrg.h | 99 const FIXP_DBL *mdctSpectrum, 107 const FIXP_DBL *mdctSpectrum, 118 const FIXP_DBL *mdctSpectrum, 128 const FIXP_DBL *mdctSpectrum,
|
noisedet.cpp | 143 void FDKaacEnc_noiseDetect(FIXP_DBL *RESTRICT mdctSpectrum, 178 fhelp1 = fPow2AddDiv2(fhelp1, mdctSpectrum[i]<<leadingBits); 179 fhelp2 = fPow2AddDiv2(fhelp2, mdctSpectrum[i+k]<<leadingBits); 180 fhelp3 = fPow2AddDiv2(fhelp3, mdctSpectrum[i+2*k]<<leadingBits); 181 fhelp4 = fPow2AddDiv2(fhelp4, mdctSpectrum[i+3*k]<<leadingBits);
|
quantize.h | 103 INT *sfbOffset, FIXP_DBL *mdctSpectrum, 107 FIXP_DBL FDKaacEnc_calcSfbDist(FIXP_DBL *mdctSpectrum, 112 void FDKaacEnc_calcSfbQuantEnergyAndDist(FIXP_DBL *mdctSpectrum,
|
grp_data.cpp | 102 FDKaacEnc_groupShortData(FIXP_DBL *mdctSpectrum, /* in-out */ 140 if ( mdctSpectrum[wnd*granuleLength_short+line] != FL2FXCONST_SPC(0.0) ) break; /* this band is not completely zero */ 254 FIXP_DBL *pMdctSpectrum = &mdctSpectrum[sfbOffset[sfb]] + wnd*granuleLength_short; 269 FDKmemcpy(mdctSpectrum, tmpSpectrum, granuleLength*sizeof(FIXP_DBL));
|
aacenc_pns.cpp | 111 FIXP_DBL *mdctSpectrum, 190 FIXP_DBL *mdctSpectrum, 238 mdctSpectrum, 345 FIXP_DBL *mdctSpectrum, 370 FDKaacEnc_noiseDetect( mdctSpectrum,
|
sf_estim.cpp | 133 formFactor += sqrtFixp(fixp_abs(psyOutChan->mdctSpectrum[j]))>>FORM_FAC_SHIFT; 570 sfbDistNew = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs, 724 sfbDistNew[sfb] = FDKaacEnc_calcSfbDist(qcOutChannel->mdctSpectrum+sfbOffs, [all...] |
psy_data.h | 137 FIXP_DBL *mdctSpectrum; 145 INT mdctScale; /* exponent of data in mdctSpectrum */
|
noisedet.h | 100 void FDKaacEnc_noiseDetect( FIXP_DBL *mdctSpectrum,
|
ms_stereo.cpp | 123 FIXP_DBL *mdctSpectrumLeft = psyData[0]->mdctSpectrum; /* modified where msMask==1 */ 124 FIXP_DBL *mdctSpectrumRight = psyData[1]->mdctSpectrum; /* modified where msMask==1 */
|
grp_data.h | 99 FDKaacEnc_groupShortData(FIXP_DBL *mdctSpectrum, /* in-out */
|
/external/aac/libAACdec/src/ |
block.cpp | 552 FIXP_DBL *mdctSpectrum = SPEC(pSpectralCoefficient, window, pAacDecoderChannelInfo->granuleLength); 570 mdctSpectrum[index+i] = tmp; 575 mdctSpectrum[index+0] = (FIXP_DBL)CBlock_GetEscape(bs, (LONG)mdctSpectrum[index+0]); 576 mdctSpectrum[index+1] = (FIXP_DBL)CBlock_GetEscape(bs, (LONG)mdctSpectrum[index+1]);
|