/external/aac/libAACdec/src/ |
H A D | channel.cpp | 106 void MapMidSideMaskToPnsCorrelation (CAacDecoderChannelInfo *pAacDecoderChannelInfo[2]) argument 110 for (group = 0 ; group < pAacDecoderChannelInfo[L]->icsInfo.WindowGroups; group++) { 113 for (UCHAR band = 0 ; band < pAacDecoderChannelInfo[L]->icsInfo.MaxSfBands; band++) { 114 if (pAacDecoderChannelInfo[L]->pComData->jointStereoData.MsUsed[band] & groupMask) { /* channels are correlated */ 115 CPns_SetCorrelation(&pAacDecoderChannelInfo[L]->data.aac.PnsData, group, band, 0); 117 if (CPns_IsPnsUsed(&pAacDecoderChannelInfo[L]->data.aac.PnsData, group, band) && 118 CPns_IsPnsUsed(&pAacDecoderChannelInfo[R]->data.aac.PnsData, group, band)) 119 pAacDecoderChannelInfo[L]->pComData->jointStereoData.MsUsed[band] ^= groupMask; /* clear the groupMask-bit */ 132 void CChannelElement_Decode( CAacDecoderChannelInfo *pAacDecoderChannelInfo[2], /*!< pointer to aac decoder channel info */ argument 143 if ( pAacDecoderChannelInfo[c 198 CChannel_CodebookTableInit(CAacDecoderChannelInfo *pAacDecoderChannelInfo) argument 228 CChannelElement_Read(HANDLE_FDK_BITSTREAM hBs, CAacDecoderChannelInfo *pAacDecoderChannelInfo[], CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[], const AUDIO_OBJECT_TYPE aot, const SamplingRateInfo *pSamplingRateInfo, const UINT flags, const UINT frame_length, const UCHAR numberOfChannels, const SCHAR epConfig, HANDLE_TRANSPORTDEC pTpDec ) argument [all...] |
H A D | rvlcconceal.cpp | 111 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 122 if (GetWindowSequence(&pAacDecoderChannelInfo->icsInfo) == EightShortSequence) 135 *refNrgFwd = pAacDecoderChannelInfo->pDynData->RawDataInfo.GlobalGain - SF_OFFSET - 90 - 256; 136 *refScfFwd = pAacDecoderChannelInfo->pDynData->RawDataInfo.GlobalGain - SF_OFFSET; 142 switch (pAacDecoderChannelInfo->pDynData->aCodeBook[bnds]) { 148 *refIsFwd = pAacDecoderChannelInfo->pComData->overlay.aac.aRvlcScfFwd[bnds]; 154 *refNrgFwd = pAacDecoderChannelInfo->pComData->overlay.aac.aRvlcScfFwd[bnds]; 160 *refScfFwd = pAacDecoderChannelInfo->pComData->overlay.aac.aRvlcScfFwd[bnds]; 186 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 196 if (GetWindowSequence(&pAacDecoderChannelInfo 110 calcRefValFwd(CErRvlcInfo *pRvlc, CAacDecoderChannelInfo *pAacDecoderChannelInfo, int *refIsFwd, int *refNrgFwd, int *refScfFwd) argument 185 calcRefValBwd(CErRvlcInfo *pRvlc, CAacDecoderChannelInfo *pAacDecoderChannelInfo, int *refIsBwd, int *refNrgBwd, int *refScfBwd) argument 266 BidirectionalEstimation_UseLowerScfOfCurrentFrame(CAacDecoderChannelInfo *pAacDecoderChannelInfo) argument 399 BidirectionalEstimation_UseScfOfPrevFrameAsReference( CAacDecoderChannelInfo *pAacDecoderChannelInfo, CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo ) argument 532 StatisticalEstimation(CAacDecoderChannelInfo *pAacDecoderChannelInfo) argument 637 PredictiveInterpolation( CAacDecoderChannelInfo *pAacDecoderChannelInfo, CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo ) argument [all...] |
H A D | stereo.cpp | 149 CAacDecoderChannelInfo *pAacDecoderChannelInfo[2], 157 CJointStereoData *pJointStereoData = &pAacDecoderChannelInfo[L]->pComData->jointStereoData; 170 SHORT *leftScale = &pAacDecoderChannelInfo[L]->pDynData->aSfbScale[window*16]; 171 SHORT *rightScale = &pAacDecoderChannelInfo[R]->pDynData->aSfbScale[window*16]; 173 leftSpectrum = SPEC(pAacDecoderChannelInfo[L]->pSpectralCoefficient, window, pAacDecoderChannelInfo[L]->granuleLength); 174 rightSpectrum = SPEC(pAacDecoderChannelInfo[R]->pSpectralCoefficient, window, pAacDecoderChannelInfo[R]->granuleLength); 186 FDK_ASSERT(GetWindowSequence(&pAacDecoderChannelInfo[L]->icsInfo) == GetWindowSequence(&pAacDecoderChannelInfo[ 148 CJointStereo_ApplyMS( CAacDecoderChannelInfo *pAacDecoderChannelInfo[2], const SHORT *pScaleFactorBandOffsets, const UCHAR *pWindowGroupLength, const int windowGroups, const int scaleFactorBandsTransmittedL, const int scaleFactorBandsTransmittedR ) argument 221 CJointStereo_ApplyIS( CAacDecoderChannelInfo *pAacDecoderChannelInfo[2], const SHORT *pScaleFactorBandOffsets, const UCHAR *pWindowGroupLength, const int windowGroups, const int scaleFactorBandsTransmitted, const UINT CommonWindow ) argument [all...] |
H A D | aacdecoder.h | 193 CAacDecoderChannelInfo *pAacDecoderChannelInfo[(6)]; /*!< Temporal channel memory */ member in struct:AAC_DECODER_INSTANCE 196 CAacDecoderCommonData aacCommonData; /*!< Temporal shared data for all channels hooked into pAacDecoderChannelInfo */
|
H A D | rvlc.cpp | 115 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 119 SHORT *pScfEsc = pAacDecoderChannelInfo->pComData->overlay.aac.aRvlcScfEsc; 120 SHORT *pScfFwd = pAacDecoderChannelInfo->pComData->overlay.aac.aRvlcScfFwd; 121 SHORT *pScfBwd = pAacDecoderChannelInfo->pComData->overlay.aac.aRvlcScfBwd; 122 SHORT *pScaleFactor = pAacDecoderChannelInfo->pDynData->aScaleFactor; 125 pAacDecoderChannelInfo->pDynData->specificTo.aac.rvlcIntensityUsed = 0; 173 DebugOutputInit(pRvlc,pAacDecoderChannelInfo); 194 CAacDecoderChannelInfo *pAacDecoderChannelInfo) 203 if ( (pAacDecoderChannelInfo->pDynData->aCodeBook[bnds] == INTENSITY_HCB) || (pAacDecoderChannelInfo 114 rvlcInit(CErRvlcInfo *pRvlc, CAacDecoderChannelInfo *pAacDecoderChannelInfo, HANDLE_FDK_BITSTREAM bs) argument 193 rvlcCheckIntensityCb(CErRvlcInfo *pRvlc, CAacDecoderChannelInfo *pAacDecoderChannelInfo) argument 415 rvlcDecodeForward(CErRvlcInfo *pRvlc, CAacDecoderChannelInfo *pAacDecoderChannelInfo, HANDLE_FDK_BITSTREAM bs) argument 606 rvlcDecodeBackward(CErRvlcInfo *pRvlc, CAacDecoderChannelInfo *pAacDecoderChannelInfo, HANDLE_FDK_BITSTREAM bs) argument 798 rvlcFinalErrorDetection(CAacDecoderChannelInfo *pAacDecoderChannelInfo, CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo) argument 1052 CRvlc_Read( CAacDecoderChannelInfo *pAacDecoderChannelInfo, HANDLE_FDK_BITSTREAM bs) argument 1126 CRvlc_Decode( CAacDecoderChannelInfo *pAacDecoderChannelInfo, CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo, HANDLE_FDK_BITSTREAM bs ) argument 1173 CRvlc_ElementCheck( CAacDecoderChannelInfo *pAacDecoderChannelInfo[], CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo[], const UINT flags, const INT elChannels ) argument [all...] |
H A D | aacdecoder.cpp | 760 if (self->pAacDecoderChannelInfo[ch] != NULL) { 761 FreeAacDecoderChannelInfo (&self->pAacDecoderChannelInfo[ch]); 958 if (self->pAacDecoderChannelInfo[ch] == NULL) { 959 self->pAacDecoderChannelInfo[ch] = GetAacDecoderChannelInfo(ch); 962 if (self->pAacDecoderChannelInfo[ch] == NULL) { 966 self->pAacDecoderChannelInfo[ch]->pDynData = aacDecoderDynamicData; 967 self->pAacDecoderChannelInfo[ch]->pComData = &self->aacCommonData; 980 self->pAacDecoderChannelInfo[ch]->pSpectralCoefficient = (SPECTRAL_PTR) &self->aacCommonData.workBufferCore2[ch*1024]; 983 CPns_InitPns(&self->pAacDecoderChannelInfo[ch]->data.aac.PnsData, &self->aacCommonData.pnsInterChannelData, &self->aacCommonData.pnsCurrentSeed, self->aacCommonData.pnsRandomSeed); 1006 self->pAacDecoderChannelInfo[c 1601 CAacDecoderChannelInfo *pAacDecoderChannelInfo; local [all...] |
H A D | block.cpp | 161 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 170 int factor = pAacDecoderChannelInfo->pDynData->RawDataInfo.GlobalGain; /* accu for scale factor delta coding */ 171 UCHAR *pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook; 172 SHORT *pScaleFactor = pAacDecoderChannelInfo->pDynData->aScaleFactor; 175 int ScaleFactorBandsTransmitted = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo); 176 for (group=0; group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); group++) 205 CPns_Read( &pAacDecoderChannelInfo->data.aac.PnsData, bs, hcb, pAacDecoderChannelInfo->pDynData->aScaleFactor, pAacDecoderChannelInfo->pDynData->RawDataInfo.GlobalGain, band, group); 214 void CBlock_ScaleSpectralData(CAacDecoderChannelInfo *pAacDecoderChannelInfo, SamplingRateInf argument 160 CBlock_ReadScaleFactorData( CAacDecoderChannelInfo *pAacDecoderChannelInfo, HANDLE_FDK_BITSTREAM bs, UINT flags ) argument 272 CBlock_ReadSectionData(HANDLE_FDK_BITSTREAM bs, CAacDecoderChannelInfo *pAacDecoderChannelInfo, const SamplingRateInfo *pSamplingRateInfo, const UINT flags) argument 426 CBlock_InverseQuantizeSpectralData(CAacDecoderChannelInfo *pAacDecoderChannelInfo, SamplingRateInfo *pSamplingRateInfo) argument 502 CBlock_ReadSpectralData(HANDLE_FDK_BITSTREAM bs, CAacDecoderChannelInfo *pAacDecoderChannelInfo, const SamplingRateInfo *pSamplingRateInfo, const UINT flags) argument 641 ApplyTools( CAacDecoderChannelInfo *pAacDecoderChannelInfo[], const SamplingRateInfo *pSamplingRateInfo, const UINT flags, const int channel ) argument 682 CBlock_FrequencyToTime(CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo, CAacDecoderChannelInfo *pAacDecoderChannelInfo, INT_PCM outSamples[], const SHORT frameLen, const int stride, const int frameOk, FIXP_DBL *pWorkBuffer1 ) argument 751 CBlock_FrequencyToTimeLowDelay( CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo, CAacDecoderChannelInfo *pAacDecoderChannelInfo, INT_PCM outSamples[], const short frameLen, const char stride ) argument [all...] |
H A D | conceal.cpp | 207 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 219 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 653 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 656 if ( !(pAacDecoderChannelInfo->renderMode == AACDEC_RENDER_LPD 659 FIXP_DBL *pSpectralCoefficient = SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoefficient); 660 SHORT *pSpecScale = pAacDecoderChannelInfo->specScale; 661 CIcsInfo *pIcsInfo = &pAacDecoderChannelInfo->icsInfo; 731 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 742 && (pAacDecoderChannelInfo->renderMode != (AACDEC_RENDER_MODE)hConcealmentInfo->lastRenderMode) ) { 744 pAacDecoderChannelInfo 651 CConcealment_Store( CConcealmentInfo *hConcealmentInfo, CAacDecoderChannelInfo *pAacDecoderChannelInfo, CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo ) argument 729 CConcealment_Apply( CConcealmentInfo *hConcealmentInfo, CAacDecoderChannelInfo *pAacDecoderChannelInfo, CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo, const SamplingRateInfo *pSamplingRateInfo, const int samplesPerFrame, const UCHAR lastLpdMode, const int frameOk, const UINT flags) argument 826 CConcealment_ApplyNoise(CConcealmentInfo *pConcealmentInfo, CAacDecoderChannelInfo *pAacDecoderChannelInfo, CAacDecoderStaticChannelInfo *pAacDecoderStaticChannelInfo, const SamplingRateInfo *pSamplingRateInfo, const int samplesPerFrame, const UINT flags) argument 1005 CConcealment_ApplyInter( CConcealmentInfo *pConcealmentInfo, CAacDecoderChannelInfo *pAacDecoderChannelInfo, const SamplingRateInfo *pSamplingRateInfo, const int samplesPerFrame, const int improveTonal, const int frameOk ) argument [all...] |
H A D | aacdec_hcr.cpp | 157 CAacDecoderChannelInfo *pAacDecoderChannelInfo, 208 CAacDecoderChannelInfo *pAacDecoderChannelInfo) 210 INT globalHcrType = getHcrType(&pAacDecoderChannelInfo->pComData->overlay.aac.erHcrInfo); 214 pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfReorderedSpectralData = 0; 215 pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfLongestCodeword = 0; 223 pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfReorderedSpectralData = lengOfReorderedSpectralData; /* the decoded value is within range */ 227 pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfReorderedSpectralData = CPE_TOP_LENGTH; /* use valid maximum */ 233 pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfReorderedSpectralData = lengOfReorderedSpectralData; /* the decoded value is within range */ 237 pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfReorderedSpectralData = SCE_TOP_LENGTH; /* use valid maximum */ 245 pAacDecoderChannelInfo 207 CHcr_Read(HANDLE_FDK_BITSTREAM bs, CAacDecoderChannelInfo *pAacDecoderChannelInfo) argument 280 HcrInit(H_HCR_INFO pHcr, CAacDecoderChannelInfo *pAacDecoderChannelInfo, const SamplingRateInfo *pSamplingRateInfo, HANDLE_FDK_BITSTREAM bs) argument 451 HcrDecoder(H_HCR_INFO pHcr, const CAacDecoderChannelInfo *pAacDecoderChannelInfo, HANDLE_FDK_BITSTREAM bs) argument 472 HcrDecoder(H_HCR_INFO pHcr, CAacDecoderChannelInfo *pAacDecoderChannelInfo, const SamplingRateInfo *pSamplingRateInfo, HANDLE_FDK_BITSTREAM bs) argument 561 HcrReorderQuantizedSpectralCoefficients( H_HCR_INFO pHcr, CAacDecoderChannelInfo *pAacDecoderChannelInfo, const SamplingRateInfo *pSamplingRateInfo ) argument [all...] |