Lines Matching refs:pAacDecoderChannelInfo
159 CAacDecoderChannelInfo *pAacDecoderChannelInfo, HANDLE_FDK_BITSTREAM bs, in CBlock_ReadScaleFactorData() argument
165 int factor = pAacDecoderChannelInfo->pDynData->RawDataInfo in CBlock_ReadScaleFactorData()
167 UCHAR *pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook; in CBlock_ReadScaleFactorData()
168 SHORT *pScaleFactor = pAacDecoderChannelInfo->pDynData->aScaleFactor; in CBlock_ReadScaleFactorData()
174 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo); in CBlock_ReadScaleFactorData()
175 for (group = 0; group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); in CBlock_ReadScaleFactorData()
203 CPns_Read(&pAacDecoderChannelInfo->data.aac.PnsData, bs, hcb, in CBlock_ReadScaleFactorData()
204 pAacDecoderChannelInfo->pDynData->aScaleFactor, in CBlock_ReadScaleFactorData()
205 pAacDecoderChannelInfo->pDynData->RawDataInfo.GlobalGain, in CBlock_ReadScaleFactorData()
217 void CBlock_ScaleSpectralData(CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CBlock_ScaleSpectralData() argument
222 const SHORT *RESTRICT pSfbScale = pAacDecoderChannelInfo->pDynData->aSfbScale; in CBlock_ScaleSpectralData()
223 SHORT *RESTRICT pSpecScale = pAacDecoderChannelInfo->specScale; in CBlock_ScaleSpectralData()
226 &pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo); in CBlock_ScaleSpectralData()
228 pAacDecoderChannelInfo->pSpectralCoefficient; in CBlock_ScaleSpectralData()
233 group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); group++) { in CBlock_ScaleSpectralData()
235 &pAacDecoderChannelInfo->icsInfo, group); in CBlock_ScaleSpectralData()
239 pAacDecoderChannelInfo->granuleLength); in CBlock_ScaleSpectralData()
247 if (pAacDecoderChannelInfo->pDynData->TnsData.Active && in CBlock_ScaleSpectralData()
248 pAacDecoderChannelInfo->pDynData->TnsData.NumberOfFilters[window] > in CBlock_ScaleSpectralData()
255 tns_start = GetMaximumTnsBands(&pAacDecoderChannelInfo->icsInfo, in CBlock_ScaleSpectralData()
259 filter_index < (int)pAacDecoderChannelInfo->pDynData->TnsData in CBlock_ScaleSpectralData()
262 for (band = pAacDecoderChannelInfo->pDynData->TnsData in CBlock_ScaleSpectralData()
265 band < pAacDecoderChannelInfo->pDynData->TnsData in CBlock_ScaleSpectralData()
274 fMin(tns_start, (int)pAacDecoderChannelInfo->pDynData->TnsData in CBlock_ScaleSpectralData()
278 fMax(tns_stop, (int)pAacDecoderChannelInfo->pDynData->TnsData in CBlock_ScaleSpectralData()
283 pAacDecoderChannelInfo->pDynData->TnsData.GainLd; in CBlock_ScaleSpectralData()
327 HANDLE_FDK_BITSTREAM bs, CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CBlock_ReadSectionData() argument
333 UCHAR *pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook; in CBlock_ReadSectionData()
336 pAacDecoderChannelInfo->pDynData->specificTo.aac.aNumLineInSec4Hcr; in CBlock_ReadSectionData()
339 pAacDecoderChannelInfo->pDynData->specificTo.aac.aCodeBooks4Hcr; in CBlock_ReadSectionData()
341 &pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo); in CBlock_ReadSectionData()
342 pAacDecoderChannelInfo->pDynData->specificTo.aac.numberSection = 0; in CBlock_ReadSectionData()
348 (IsLongBlock(&pAacDecoderChannelInfo->icsInfo) == 1) ? 5 : 3; in CBlock_ReadSectionData()
353 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo); in CBlock_ReadSectionData()
354 for (group = 0; group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); in CBlock_ReadSectionData()
384 &pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo)) { in CBlock_ReadSectionData()
394 pAacDecoderChannelInfo->pDynData->specificTo.aac.numberSection++; in CBlock_ReadSectionData()
398 if (IsLongBlock(&(pAacDecoderChannelInfo->icsInfo))) { in CBlock_ReadSectionData()
411 pAacDecoderChannelInfo->pDynData->RawDataInfo.CommonWindow == 0)) { in CBlock_ReadSectionData()
488 CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CBlock_InverseQuantizeSpectralData() argument
493 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo); in CBlock_InverseQuantizeSpectralData()
494 UCHAR *RESTRICT pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook; in CBlock_InverseQuantizeSpectralData()
495 SHORT *RESTRICT pSfbScale = pAacDecoderChannelInfo->pDynData->aSfbScale; in CBlock_InverseQuantizeSpectralData()
496 SHORT *RESTRICT pScaleFactor = pAacDecoderChannelInfo->pDynData->aScaleFactor; in CBlock_InverseQuantizeSpectralData()
498 &pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo); in CBlock_InverseQuantizeSpectralData()
500 GetScaleFactorBandsTotal(&pAacDecoderChannelInfo->icsInfo); in CBlock_InverseQuantizeSpectralData()
502 FDKmemclear(pAacDecoderChannelInfo->pDynData->aSfbScale, in CBlock_InverseQuantizeSpectralData()
506 group < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); group++) { in CBlock_InverseQuantizeSpectralData()
508 &pAacDecoderChannelInfo->icsInfo, group); in CBlock_InverseQuantizeSpectralData()
513 SPEC(pAacDecoderChannelInfo->pSpectralCoefficient, window, in CBlock_InverseQuantizeSpectralData()
514 pAacDecoderChannelInfo->granuleLength) + in CBlock_InverseQuantizeSpectralData()
606 SPEC(pAacDecoderChannelInfo->pSpectralCoefficient, window, in CBlock_InverseQuantizeSpectralData()
607 pAacDecoderChannelInfo->granuleLength) + in CBlock_InverseQuantizeSpectralData()
621 HANDLE_FDK_BITSTREAM bs, CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CBlock_ReadSpectralData() argument
625 &pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo); in CBlock_ReadSpectralData()
628 pAacDecoderChannelInfo->pSpectralCoefficient; in CBlock_ReadSpectralData()
637 UCHAR *pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook; in CBlock_ReadSpectralData()
639 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo); in CBlock_ReadSpectralData()
640 int granuleLength = pAacDecoderChannelInfo->granuleLength; in CBlock_ReadSpectralData()
645 int max_group = GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); in CBlock_ReadSpectralData()
649 GetWindowGroupLength(&pAacDecoderChannelInfo->icsInfo, group); in CBlock_ReadSpectralData()
725 H_HCR_INFO hHcr = &pAacDecoderChannelInfo->pComData->overlay.aac.erHcrInfo; in CBlock_ReadSpectralData()
730 if (pAacDecoderChannelInfo->pDynData->specificTo.aac in CBlock_ReadSpectralData()
733 hcrStatus = HcrInit(hHcr, pAacDecoderChannelInfo, pSamplingRateInfo, bs); in CBlock_ReadSpectralData()
741 HcrDecoder(hHcr, pAacDecoderChannelInfo, pSamplingRateInfo, bs); in CBlock_ReadSpectralData()
751 FDKpushFor(bs, pAacDecoderChannelInfo->pDynData->specificTo.aac in CBlock_ReadSpectralData()
757 if (IsLongBlock(&pAacDecoderChannelInfo->icsInfo) && in CBlock_ReadSpectralData()
761 &pAacDecoderChannelInfo->pDynData->specificTo.aac.PulseData, in CBlock_ReadSpectralData()
762 GetScaleFactorBandOffsets(&pAacDecoderChannelInfo->icsInfo, in CBlock_ReadSpectralData()
783 void CBlock_ApplyNoise(CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CBlock_ApplyNoise() argument
787 &pAacDecoderChannelInfo->icsInfo, pSamplingRateInfo); in CBlock_ApplyNoise()
791 int noise_level = pAacDecoderChannelInfo->pDynData->specificTo.usac in CBlock_ApplyNoise()
798 const int noise_offset = (pAacDecoderChannelInfo->pDynData->specificTo.usac in CBlock_ApplyNoise()
804 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo); in CBlock_ApplyNoise()
807 (GetWindowSequence(&pAacDecoderChannelInfo->icsInfo) == BLOCK_SHORT) in CBlock_ApplyNoise()
810 if (pAacDecoderChannelInfo->granuleLength == 96) { in CBlock_ApplyNoise()
823 for (g = 0, win = 0; g < GetWindowGroups(&pAacDecoderChannelInfo->icsInfo); in CBlock_ApplyNoise()
826 GetWindowGroupLength(&pAacDecoderChannelInfo->icsInfo, g); in CBlock_ApplyNoise()
837 pAacDecoderChannelInfo->pDynData->aScaleFactor[g * 16 + sfb] += in CBlock_ApplyNoise()
841 pAacDecoderChannelInfo->pDynData in CBlock_ApplyNoise()
849 (pAacDecoderChannelInfo->pDynData->aScaleFactor[g * 16 + sfb] >> in CBlock_ApplyNoise()
853 pAacDecoderChannelInfo->pDynData->aScaleFactor[g * 16 + sfb] & 3; in CBlock_ApplyNoise()
858 SPEC(pAacDecoderChannelInfo->pSpectralCoefficient, win + gwin, in CBlock_ApplyNoise()
859 pAacDecoderChannelInfo->granuleLength); in CBlock_ApplyNoise()
861 int scale1 = scale - pAacDecoderChannelInfo->pDynData in CBlock_ApplyNoise()
900 HANDLE_FDK_BITSTREAM hBs, CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CBlock_ReadAcSpectralData() argument
910 BandOffsets = GetScaleFactorBandOffsets(&pAacDecoderChannelInfo->icsInfo, in CBlock_ReadAcSpectralData()
913 &pAacDecoderChannelInfo->icsInfo)]; in CBlock_ReadAcSpectralData()
915 numWin = GetWindowsPerFrame(&pAacDecoderChannelInfo->icsInfo); in CBlock_ReadAcSpectralData()
916 winLen = (IsLongBlock(&pAacDecoderChannelInfo->icsInfo)) in CBlock_ReadAcSpectralData()
929 SPEC(pAacDecoderChannelInfo->pSpectralCoefficient, in CBlock_ReadAcSpectralData()
930 win, pAacDecoderChannelInfo->granuleLength), in CBlock_ReadAcSpectralData()
945 void ApplyTools(CAacDecoderChannelInfo *pAacDecoderChannelInfo[], in ApplyTools() argument
950 CPns_Apply(&pAacDecoderChannelInfo[channel]->data.aac.PnsData, in ApplyTools()
951 &pAacDecoderChannelInfo[channel]->icsInfo, in ApplyTools()
952 pAacDecoderChannelInfo[channel]->pSpectralCoefficient, in ApplyTools()
953 pAacDecoderChannelInfo[channel]->specScale, in ApplyTools()
954 pAacDecoderChannelInfo[channel]->pDynData->aScaleFactor, in ApplyTools()
956 pAacDecoderChannelInfo[channel]->granuleLength, channel); in ApplyTools()
960 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo[channel]->icsInfo); in ApplyTools()
962 CTns_Apply(&pAacDecoderChannelInfo[channel]->pDynData->TnsData, in ApplyTools()
963 &pAacDecoderChannelInfo[channel]->icsInfo, in ApplyTools()
964 pAacDecoderChannelInfo[channel]->pSpectralCoefficient, in ApplyTools()
965 pSamplingRateInfo, pAacDecoderChannelInfo[channel]->granuleLength, in ApplyTools()
1018 CAacDecoderChannelInfo *pAacDecoderChannelInfo, FIXP_PCM outSamples[], in CBlock_FrequencyToTime() argument
1035 switch (pAacDecoderChannelInfo->icsInfo.WindowSequence) { in CBlock_FrequencyToTime()
1041 GetWindowShape(&pAacDecoderChannelInfo->icsInfo)); in CBlock_FrequencyToTime()
1085 (pAacDecoderChannelInfo->icsInfo.WindowSequence == BLOCK_SHORT) in CBlock_FrequencyToTime()
1109 FIXP_LPC *A = pAacDecoderChannelInfo->data.usac.lp_coeff[0]; in CBlock_FrequencyToTime()
1112 (pAacDecoderChannelInfo->data.usac.fac_data[0] == NULL)) { in CBlock_FrequencyToTime()
1114 pAacDecoderChannelInfo->granuleLength * sizeof(FIXP_DBL)); in CBlock_FrequencyToTime()
1115 pAacDecoderChannelInfo->data.usac.fac_data[0] = fac_buf; in CBlock_FrequencyToTime()
1116 pAacDecoderChannelInfo->data.usac.fac_data_e[0] = 0; in CBlock_FrequencyToTime()
1136 SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoefficient), in CBlock_FrequencyToTime()
1137 pAacDecoderChannelInfo->specScale, nSpec, in CBlock_FrequencyToTime()
1138 pAacDecoderChannelInfo->data.usac.fac_data[0], in CBlock_FrequencyToTime()
1139 pAacDecoderChannelInfo->data.usac.fac_data_e[0], fac_length, in CBlock_FrequencyToTime()
1142 fr, GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CBlock_FrequencyToTime()
1147 pAacDecoderChannelInfo->currAliasingSymmetry); in CBlock_FrequencyToTime()
1155 SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoefficient), in CBlock_FrequencyToTime()
1156 pAacDecoderChannelInfo->specScale, nSpec, frameLen, tl, in CBlock_FrequencyToTime()
1158 fl, GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CBlock_FrequencyToTime()
1161 fr, GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CBlock_FrequencyToTime()
1163 pAacDecoderChannelInfo->currAliasingSymmetry in CBlock_FrequencyToTime()
1185 if (IsLongBlock(&pAacDecoderChannelInfo->icsInfo)) { in CBlock_FrequencyToTime()
1222 pAacDecoderChannelInfo->pComStaticData->pWorkBufferCore1->mdctOutTemp; in CBlock_FrequencyToTime()
1227 SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoefficient), in CBlock_FrequencyToTime()
1228 pAacDecoderChannelInfo->specScale, nSpec, frameLen, tl, in CBlock_FrequencyToTime()
1230 fl, GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CBlock_FrequencyToTime()
1233 fr, GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CBlock_FrequencyToTime()
1235 pAacDecoderChannelInfo->currAliasingSymmetry in CBlock_FrequencyToTime()
1246 (pAacDecoderChannelInfo->icsInfo.WindowSequence == BLOCK_SHORT) ? FD_SHORT in CBlock_FrequencyToTime()
1254 CAacDecoderChannelInfo *pAacDecoderChannelInfo, FIXP_PCM outSamples[], in CBlock_FrequencyToTimeLowDelay() argument
1257 SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoefficient), in CBlock_FrequencyToTimeLowDelay()
1258 pAacDecoderChannelInfo->specScale[0], outSamples, in CBlock_FrequencyToTimeLowDelay()