Lines Matching refs:pAacDecoderChannelInfo
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, SamplingRateInfo *pSamplingRateInfo)
218 const SHORT * RESTRICT pSfbScale = pAacDecoderChannelInfo->pDynData->aSfbScale;
219 SHORT * RESTRICT pSpecScale = pAacDecoderChannelInfo->specScale;
221 const SHORT * RESTRICT BandOffsets = GetScaleFactorBandOffsets(&pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo);
222 SPECTRAL_PTR RESTRICT pSpectralCoefficient = pAacDecoderChannelInfo->pSpectralCoefficient;
227 int max_band = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo);
228 for (window=0, group=0; group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); group++)
230 for (groupwin=0; groupwin < GetWindowGroupLength(&pAacDecoderChannelInfo->icsInfo,group); groupwin++, window++)
233 FIXP_DBL *pSpectrum = SPEC(pSpectralCoefficient, window, pAacDecoderChannelInfo->granuleLength);
241 if (pAacDecoderChannelInfo->pDynData->TnsData.Active) {
273 CAacDecoderChannelInfo *pAacDecoderChannelInfo,
281 UCHAR *pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook;
283 SHORT *pNumLinesInSec = pAacDecoderChannelInfo->pDynData->specificTo.aac.aNumLineInSec4Hcr;
285 UCHAR *pHcrCodeBook = pAacDecoderChannelInfo->pDynData->specificTo.aac.aCodeBooks4Hcr;
286 const SHORT *BandOffsets = GetScaleFactorBandOffsets(&pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo);
287 pAacDecoderChannelInfo->pDynData->specificTo.aac.numberSection = 0;
292 const int nbits = (IsLongBlock(&pAacDecoderChannelInfo->icsInfo) == 1) ? 5 : 3;
296 UCHAR ScaleFactorBandsTransmitted = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo);
297 for (group=0; group<GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); group++)
339 pAacDecoderChannelInfo->pDynData->specificTo.aac.numberSection++;
343 if (IsLongBlock( &(pAacDecoderChannelInfo->icsInfo) ))
356 || ( (sect_cb == INTENSITY_HCB || sect_cb == INTENSITY_HCB2) && pAacDecoderChannelInfo->pDynData->RawDataInfo.CommonWindow == 0)
426 AAC_DECODER_ERROR CBlock_InverseQuantizeSpectralData(CAacDecoderChannelInfo *pAacDecoderChannelInfo, SamplingRateInfo *pSamplingRateInfo)
429 int ScaleFactorBandsTransmitted = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo);
430 UCHAR *RESTRICT pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook;
431 SHORT *RESTRICT pSfbScale = pAacDecoderChannelInfo->pDynData->aSfbScale;
432 SHORT *RESTRICT pScaleFactor = pAacDecoderChannelInfo->pDynData->aScaleFactor;
433 const SHORT *RESTRICT BandOffsets = GetScaleFactorBandOffsets(&pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo);
435 FDKmemclear(pAacDecoderChannelInfo->pDynData->aSfbScale, (8*16)*sizeof(SHORT));
437 for (window=0, group=0; group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); group++)
439 for (groupwin=0; groupwin < GetWindowGroupLength(&pAacDecoderChannelInfo->icsInfo,group); groupwin++, window++)
444 pAacDecoderChannelInfo->pSpectralCoefficient, window, pAacDecoderChannelInfo->granuleLength) + BandOffsets[band];
503 CAacDecoderChannelInfo *pAacDecoderChannelInfo,
509 UCHAR *RESTRICT pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook;
510 const SHORT *RESTRICT BandOffsets = GetScaleFactorBandOffsets(&pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo);
512 SPECTRAL_PTR pSpectralCoefficient = pAacDecoderChannelInfo->pSpectralCoefficient;
515 int ScaleFactorBandsTransmitted = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo);
526 for (group=0; group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); group++)
548 for (groupwin=0; groupwin < GetWindowGroupLength(&pAacDecoderChannelInfo->icsInfo,group); groupwin++)
552 FIXP_DBL *mdctSpectrum = SPEC(pSpectralCoefficient, window, pAacDecoderChannelInfo->granuleLength);
583 groupoffset += GetWindowGroupLength(&pAacDecoderChannelInfo->icsInfo,group);
590 H_HCR_INFO hHcr = &pAacDecoderChannelInfo->pComData->overlay.aac.erHcrInfo;
594 if ( pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfReorderedSpectralData != 0 ) {
597 hcrStatus = HcrInit(hHcr, pAacDecoderChannelInfo, pSamplingRateInfo, bs);
604 hcrStatus = HcrDecoder(hHcr, pAacDecoderChannelInfo, pSamplingRateInfo, bs);
614 FDKpushFor (bs, pAacDecoderChannelInfo->pDynData->specificTo.aac.lenOfReorderedSpectralData);
621 if ( IsLongBlock(&pAacDecoderChannelInfo->icsInfo) && !(flags & (AC_ELD|AC_SCALABLE)) )
624 CPulseData_Apply(&pAacDecoderChannelInfo->pDynData->specificTo.aac.PulseData,
625 GetScaleFactorBandOffsets(&pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo),
635 void ApplyTools ( CAacDecoderChannelInfo *pAacDecoderChannelInfo[],
643 &pAacDecoderChannelInfo[channel]->data.aac.PnsData,
644 &pAacDecoderChannelInfo[channel]->icsInfo,
645 pAacDecoderChannelInfo[channel]->pSpectralCoefficient,
646 pAacDecoderChannelInfo[channel]->specScale,
647 pAacDecoderChannelInfo[channel]->pDynData->aScaleFactor,
649 pAacDecoderChannelInfo[channel]->granuleLength,
655 &pAacDecoderChannelInfo[channel]->pDynData->TnsData,
656 &pAacDecoderChannelInfo[channel]->icsInfo,
657 pAacDecoderChannelInfo[channel]->pSpectralCoefficient,
659 pAacDecoderChannelInfo[channel]->granuleLength
677 CAacDecoderChannelInfo *pAacDecoderChannelInfo,
693 switch( pAacDecoderChannelInfo->icsInfo.WindowSequence ) {
697 fr = frameLen - getWindow2Nr(frameLen, GetWindowShape(&pAacDecoderChannelInfo->icsInfo));
718 FIXP_DBL *tmp = pAacDecoderChannelInfo->pComData->workBufferCore1->mdctOutTemp;
723 SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoefficient),
724 pAacDecoderChannelInfo->specScale,
728 FDKgetWindowSlope(fl, GetWindowShape(&pAacDecoderChannelInfo->icsInfo)),
730 FDKgetWindowSlope(fr, GetWindowShape(&pAacDecoderChannelInfo->icsInfo)),
746 CAacDecoderChannelInfo *pAacDecoderChannelInfo,
752 SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoefficient),
753 pAacDecoderChannelInfo->specScale[0],