Lines Matching refs:pAacDecoderChannelInfo
119 CAacDecoderChannelInfo *pAacDecoderChannelInfo[2]) { in MapMidSideMaskToPnsCorrelation()
122 for (group = 0; group < pAacDecoderChannelInfo[L]->icsInfo.WindowGroups; in MapMidSideMaskToPnsCorrelation()
126 for (UCHAR band = 0; band < pAacDecoderChannelInfo[L]->icsInfo.MaxSfBands; in MapMidSideMaskToPnsCorrelation()
128 if (pAacDecoderChannelInfo[L]->pComData->jointStereoData.MsUsed[band] & in MapMidSideMaskToPnsCorrelation()
130 CPns_SetCorrelation(&pAacDecoderChannelInfo[L]->data.aac.PnsData, group, in MapMidSideMaskToPnsCorrelation()
133 if (CPns_IsPnsUsed(&pAacDecoderChannelInfo[L]->data.aac.PnsData, group, in MapMidSideMaskToPnsCorrelation()
135 CPns_IsPnsUsed(&pAacDecoderChannelInfo[R]->data.aac.PnsData, group, in MapMidSideMaskToPnsCorrelation()
137 pAacDecoderChannelInfo[L]->pComData->jointStereoData.MsUsed[band] ^= in MapMidSideMaskToPnsCorrelation()
164 *pAacDecoderChannelInfo[2], /*!< pointer to aac decoder channel info */ in CChannelElement_Decode()
174 if (pAacDecoderChannelInfo[L]->data.usac.core_mode || in CChannelElement_Decode()
175 pAacDecoderChannelInfo[R]->data.usac.core_mode) { in CChannelElement_Decode()
182 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo[L]->icsInfo); in CChannelElement_Decode()
184 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo[R]->icsInfo); in CChannelElement_Decode()
187 if (pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow) { in CChannelElement_Decode()
189 if (pAacDecoderChannelInfo[L]->data.aac.PnsData.PnsActive || in CChannelElement_Decode()
190 pAacDecoderChannelInfo[R]->data.aac.PnsData.PnsActive) { in CChannelElement_Decode()
191 MapMidSideMaskToPnsCorrelation(pAacDecoderChannelInfo); in CChannelElement_Decode()
198 (pAacDecoderChannelInfo[L]->pDynData->specificTo.usac.tns_on_lr == in CChannelElement_Decode()
201 int max_sfb_ste = (INT)(pAacDecoderChannelInfo[L]->icsInfo.max_sfb_ste); in CChannelElement_Decode()
204 pAacDecoderChannelInfo, pAacDecoderStaticChannelInfo, in CChannelElement_Decode()
205 pAacDecoderChannelInfo[L]->pSpectralCoefficient, in CChannelElement_Decode()
206 pAacDecoderChannelInfo[R]->pSpectralCoefficient, in CChannelElement_Decode()
207 pAacDecoderChannelInfo[L]->pDynData->aSfbScale, in CChannelElement_Decode()
208 pAacDecoderChannelInfo[R]->pDynData->aSfbScale, in CChannelElement_Decode()
209 pAacDecoderChannelInfo[L]->specScale, in CChannelElement_Decode()
210 pAacDecoderChannelInfo[R]->specScale, in CChannelElement_Decode()
211 GetScaleFactorBandOffsets(&pAacDecoderChannelInfo[L]->icsInfo, in CChannelElement_Decode()
213 GetWindowGroupLengthTable(&pAacDecoderChannelInfo[L]->icsInfo), in CChannelElement_Decode()
214 GetWindowGroups(&pAacDecoderChannelInfo[L]->icsInfo), max_sfb_ste, in CChannelElement_Decode()
216 pAacDecoderChannelInfo[L] in CChannelElement_Decode()
218 &(pAacDecoderChannelInfo[L] in CChannelElement_Decode()
228 if ((pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow == in CChannelElement_Decode()
232 pAacDecoderChannelInfo, in CChannelElement_Decode()
233 GetScaleFactorBandOffsets(&pAacDecoderChannelInfo[L]->icsInfo, in CChannelElement_Decode()
235 GetWindowGroupLengthTable(&pAacDecoderChannelInfo[L]->icsInfo), in CChannelElement_Decode()
236 GetWindowGroups(&pAacDecoderChannelInfo[L]->icsInfo), in CChannelElement_Decode()
238 &pAacDecoderChannelInfo[L]->icsInfo)); in CChannelElement_Decode()
244 if (pAacDecoderChannelInfo[ch]->renderMode == AACDEC_RENDER_LPD) { in CChannelElement_Decode()
246 CLpdChannelStream_Decode(pAacDecoderChannelInfo[ch], in CChannelElement_Decode()
250 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo[ch]->icsInfo); in CChannelElement_Decode()
254 (pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow == in CChannelElement_Decode()
260 CP_active = pAacDecoderChannelInfo[ch] in CChannelElement_Decode()
266 int max_sfb_ste = (INT)(pAacDecoderChannelInfo[L]->icsInfo.max_sfb_ste); in CChannelElement_Decode()
270 (pAacDecoderChannelInfo[L]->pDynData->specificTo.usac.tns_on_lr == in CChannelElement_Decode()
272 CBlock_ScaleSpectralData(pAacDecoderChannelInfo[ch], noSfbs, in CChannelElement_Decode()
277 (pAacDecoderChannelInfo[L]->pDynData->specificTo.usac.tns_on_lr == in CChannelElement_Decode()
279 if (IsLongBlock(&pAacDecoderChannelInfo[ch]->icsInfo)) { in CChannelElement_Decode()
281 pAacDecoderChannelInfo[ch]->pDynData->aSfbScale[i] = in CChannelElement_Decode()
282 pAacDecoderChannelInfo[ch]->specScale[0]; in CChannelElement_Decode()
287 pAacDecoderChannelInfo[ch]->pDynData->aSfbScale[i * 16 + j] = in CChannelElement_Decode()
288 pAacDecoderChannelInfo[ch]->specScale[i]; in CChannelElement_Decode()
299 if (pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow) { in CChannelElement_Decode()
317 if (pAacDecoderChannelInfo[ch]->renderMode == AACDEC_RENDER_LPD) { in CChannelElement_Decode()
323 &pAacDecoderChannelInfo[ch]->data.aac.PnsData, in CChannelElement_Decode()
324 pAacDecoderChannelInfo[pnsCh]->data.aac.PnsData.currentSeed, in CChannelElement_Decode()
325 pAacDecoderChannelInfo[ch]->pComData->pnsRandomSeed); in CChannelElement_Decode()
330 (pAacDecoderChannelInfo[L]->pDynData->specificTo.usac.tns_active == in CChannelElement_Decode()
334 pAacDecoderChannelInfo, pSamplingRateInfo, flags, elFlags, ch, in CChannelElement_Decode()
335 pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow); in CChannelElement_Decode()
342 if (pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow) { in CChannelElement_Decode()
345 (pAacDecoderChannelInfo[L]->pDynData->specificTo.usac.tns_on_lr == in CChannelElement_Decode()
347 int max_sfb_ste = (INT)(pAacDecoderChannelInfo[L]->icsInfo.max_sfb_ste); in CChannelElement_Decode()
350 pAacDecoderChannelInfo, pAacDecoderStaticChannelInfo, in CChannelElement_Decode()
351 pAacDecoderChannelInfo[L]->pSpectralCoefficient, in CChannelElement_Decode()
352 pAacDecoderChannelInfo[R]->pSpectralCoefficient, in CChannelElement_Decode()
353 pAacDecoderChannelInfo[L]->pDynData->aSfbScale, in CChannelElement_Decode()
354 pAacDecoderChannelInfo[R]->pDynData->aSfbScale, in CChannelElement_Decode()
355 pAacDecoderChannelInfo[L]->specScale, in CChannelElement_Decode()
356 pAacDecoderChannelInfo[R]->specScale, in CChannelElement_Decode()
357 GetScaleFactorBandOffsets(&pAacDecoderChannelInfo[L]->icsInfo, in CChannelElement_Decode()
359 GetWindowGroupLengthTable(&pAacDecoderChannelInfo[L]->icsInfo), in CChannelElement_Decode()
360 GetWindowGroups(&pAacDecoderChannelInfo[L]->icsInfo), max_sfb_ste, in CChannelElement_Decode()
362 pAacDecoderChannelInfo[L] in CChannelElement_Decode()
364 &(pAacDecoderChannelInfo[L] in CChannelElement_Decode()
380 CRvlc_ElementCheck(pAacDecoderChannelInfo, pAacDecoderStaticChannelInfo, in CChannelElement_Decode()
385 CAacDecoderChannelInfo *pAacDecoderChannelInfo) { in CChannel_CodebookTableInit() argument
387 int maxSfb = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo); in CChannel_CodebookTableInit()
388 UCHAR *pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook; in CChannel_CodebookTableInit()
390 if (IsLongBlock(&pAacDecoderChannelInfo->icsInfo)) { in CChannel_CodebookTableInit()
413 HANDLE_FDK_BITSTREAM hBs, CAacDecoderChannelInfo *pAacDecoderChannelInfo[], in CChannelElement_Read() argument
435 CTns_Reset(&pAacDecoderChannelInfo[0]->pDynData->TnsData); in CChannelElement_Read()
438 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow = 0; in CChannelElement_Read()
440 pAacDecoderChannelInfo[0]->pDynData->specificTo.usac.tns_active = 0; in CChannelElement_Read()
441 pAacDecoderChannelInfo[0]->pDynData->specificTo.usac.tns_on_lr = 0; in CChannelElement_Read()
444 CTns_Reset(&pAacDecoderChannelInfo[1]->pDynData->TnsData); in CChannelElement_Read()
445 pAacDecoderChannelInfo[1]->pDynData->RawDataInfo.CommonWindow = 0; in CChannelElement_Read()
451 pAacDecoderChannelInfo[0]->pComData->jointStereoData.cplx_pred_flag = 0; in CChannelElement_Read()
457 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow = 1; in CChannelElement_Read()
459 pAacDecoderChannelInfo[1]->pDynData->RawDataInfo.CommonWindow = in CChannelElement_Read()
460 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow; in CChannelElement_Read()
471 pAacDecoderChannelInfo[0]->ElementInstanceTag = FDKreadBits(hBs, 4); in CChannelElement_Read()
473 pAacDecoderChannelInfo[1]->ElementInstanceTag = in CChannelElement_Read()
474 pAacDecoderChannelInfo[0]->ElementInstanceTag; in CChannelElement_Read()
479 pAacDecoderChannelInfo[ch]->pDynData->RawDataInfo.CommonWindow = in CChannelElement_Read()
482 pAacDecoderChannelInfo[1]->pDynData->RawDataInfo.CommonWindow = in CChannelElement_Read()
483 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow; in CChannelElement_Read()
490 if (pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow) { in CChannelElement_Read()
493 pAacDecoderChannelInfo[0]->icsInfo.WindowSequence; in CChannelElement_Read()
496 pAacDecoderChannelInfo[0]->icsInfo.WindowShape; in CChannelElement_Read()
500 error = IcsRead(hBs, &pAacDecoderChannelInfo[ch]->icsInfo, in CChannelElement_Read()
504 GetWindowSequence(&pAacDecoderChannelInfo[ch]->icsInfo) != in CChannelElement_Read()
511 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow) { in CChannelElement_Read()
512 pAacDecoderChannelInfo[1]->icsInfo = in CChannelElement_Read()
513 pAacDecoderChannelInfo[0]->icsInfo; in CChannelElement_Read()
519 error = IcsReadMaxSfb(hBs, &pAacDecoderChannelInfo[1]->icsInfo, in CChannelElement_Read()
536 &pAacDecoderChannelInfo[0]->icsInfo, in CChannelElement_Read()
537 &pAacDecoderChannelInfo[1]->icsInfo); in CChannelElement_Read()
541 pAacDecoderChannelInfo[0]->icsInfo.max_sfb_ste = (UCHAR)max_sfb_ste; in CChannelElement_Read()
542 pAacDecoderChannelInfo[1]->icsInfo.max_sfb_ste = (UCHAR)max_sfb_ste; in CChannelElement_Read()
545 pAacDecoderChannelInfo[ch]->pDynData->RawDataInfo.CommonWindow == in CChannelElement_Read()
550 GetWindowGroups(&pAacDecoderChannelInfo[0]->icsInfo), 0, 64); in CChannelElement_Read()
554 hBs, &pAacDecoderChannelInfo[0]->pComData->jointStereoData, in CChannelElement_Read()
555 GetWindowGroups(&pAacDecoderChannelInfo[0]->icsInfo), in CChannelElement_Read()
563 ((cplxPred == 0) || (pAacDecoderChannelInfo[0] == NULL)) in CChannelElement_Read()
565 : pAacDecoderChannelInfo[0] in CChannelElement_Read()
568 GetScaleFactorBandsTotal(&pAacDecoderChannelInfo[0]->icsInfo), in CChannelElement_Read()
569 GetWindowSequence(&pAacDecoderChannelInfo[0]->icsInfo), in CChannelElement_Read()
577 pAacDecoderChannelInfo[ch]->pDynData->RawDataInfo.GlobalGain = in CChannelElement_Read()
582 error = CBlock_ReadSectionData(hBs, pAacDecoderChannelInfo[ch], in CChannelElement_Read()
587 pAacDecoderChannelInfo[ch]->currAliasingSymmetry = 0; in CChannelElement_Read()
590 pAacDecoderChannelInfo[ch]); /* equals ReadSectionData(self, in CChannelElement_Read()
600 CRvlc_Read(pAacDecoderChannelInfo[ch], hBs); in CChannelElement_Read()
602 error = CBlock_ReadScaleFactorData(pAacDecoderChannelInfo[ch], hBs, in CChannelElement_Read()
610 &pAacDecoderChannelInfo[ch]->pDynData->specificTo.aac.PulseData, in CChannelElement_Read()
615 (void *)&pAacDecoderChannelInfo[ch]->icsInfo, in CChannelElement_Read()
622 hBs, &pAacDecoderChannelInfo[ch]->pDynData->TnsData); in CChannelElement_Read()
624 pAacDecoderChannelInfo[ch]->pDynData->TnsData.DataPresent) { in CChannelElement_Read()
630 error = CTns_Read(hBs, &pAacDecoderChannelInfo[ch]->pDynData->TnsData, in CChannelElement_Read()
631 &pAacDecoderChannelInfo[ch]->icsInfo, flags); in CChannelElement_Read()
649 if (pAacDecoderChannelInfo[0]->pDynData->specificTo.usac.tns_active) { in CChannelElement_Read()
651 hBs, &pAacDecoderChannelInfo[0]->pDynData->TnsData, in CChannelElement_Read()
652 &pAacDecoderChannelInfo[1]->pDynData->TnsData, in CChannelElement_Read()
653 &pAacDecoderChannelInfo[0]->pDynData->specificTo.usac.tns_on_lr, in CChannelElement_Read()
654 &pAacDecoderChannelInfo[0]->icsInfo, flags, elFlags, in CChannelElement_Read()
655 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow); in CChannelElement_Read()
657 pAacDecoderChannelInfo[0]->pDynData->specificTo.usac.tns_on_lr = in CChannelElement_Read()
663 pAacDecoderChannelInfo[ch]->data.usac.core_mode = decision_bit; in CChannelElement_Read()
664 if ((ch == 1) && (pAacDecoderChannelInfo[0]->data.usac.core_mode != in CChannelElement_Read()
665 pAacDecoderChannelInfo[1]->data.usac.core_mode)) { in CChannelElement_Read()
667 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow = 0; in CChannelElement_Read()
668 pAacDecoderChannelInfo[1]->pDynData->RawDataInfo.CommonWindow = 0; in CChannelElement_Read()
672 pAacDecoderChannelInfo[0]->pDynData->specificTo.usac.tns_active = in CChannelElement_Read()
677 pAacDecoderChannelInfo[ch] in CChannelElement_Read()
686 hBs, pAacDecoderChannelInfo[ch], in CChannelElement_Read()
691 pAacDecoderChannelInfo[ch]->renderMode = AACDEC_RENDER_LPD; in CChannelElement_Read()
698 pAacDecoderChannelInfo[ch]->data.usac.fac_data[0] = in CChannelElement_Read()
699 pAacDecoderChannelInfo[ch]->data.usac.fac_data0; in CChannelElement_Read()
710 pAacDecoderChannelInfo[ch]->data.usac.core_mode_last = LPD; in CChannelElement_Read()
711 pAacDecoderChannelInfo[ch]->data.usac.lpd_mode_last = 0; in CChannelElement_Read()
714 CLpd_FAC_Read(hBs, pAacDecoderChannelInfo[ch]->data.usac.fac_data[0], in CChannelElement_Read()
715 pAacDecoderChannelInfo[ch]->data.usac.fac_data_e, in CChannelElement_Read()
717 IsLongBlock(&pAacDecoderChannelInfo[ch]->icsInfo), in CChannelElement_Read()
718 pAacDecoderChannelInfo[ch]->granuleLength), in CChannelElement_Read()
726 FDKmemclear(pAacDecoderChannelInfo[ch]->data.usac.fac_data0, in CChannelElement_Read()
733 CRvlc_Decode(pAacDecoderChannelInfo[ch], in CChannelElement_Read()
740 CHcr_Read(hBs, pAacDecoderChannelInfo[ch], in CChannelElement_Read()
746 error = CBlock_ReadSpectralData(hBs, pAacDecoderChannelInfo[ch], in CChannelElement_Read()
749 pAacDecoderChannelInfo[ch]->renderMode = AACDEC_RENDER_ELDFB; in CChannelElement_Read()
752 pAacDecoderChannelInfo[ch]->renderMode = AACDEC_RENDER_INTIMDCT; in CChannelElement_Read()
754 pAacDecoderChannelInfo[ch]->renderMode = AACDEC_RENDER_IMDCT; in CChannelElement_Read()
761 hBs, pAacDecoderChannelInfo[ch], pAacDecoderStaticChannelInfo[ch], in CChannelElement_Read()
763 pAacDecoderChannelInfo[ch]->renderMode = AACDEC_RENDER_IMDCT; in CChannelElement_Read()
801 pCodeBook = pAacDecoderChannelInfo[ch]->pDynData->aCodeBook; in CChannelElement_Read()
817 g < GetWindowGroups(&pAacDecoderChannelInfo[ch]->icsInfo); in CChannelElement_Read()
820 &pAacDecoderChannelInfo[ch]->icsInfo); in CChannelElement_Read()
889 if (pAacDecoderChannelInfo[ch]->renderMode == AACDEC_RENDER_IMDCT || in CChannelElement_Read()
890 pAacDecoderChannelInfo[ch]->renderMode == AACDEC_RENDER_ELDFB) { in CChannelElement_Read()
893 pAacDecoderChannelInfo[ch]->pDynData->band_is_noise; in CChannelElement_Read()
897 pAacDecoderChannelInfo[ch], pSamplingRateInfo, band_is_noise, 1); in CChannelElement_Read()
903 CBlock_ApplyNoise(pAacDecoderChannelInfo[ch], pSamplingRateInfo, in CChannelElement_Read()