Lines Matching defs:pAacDecoderChannelInfo

106 void MapMidSideMaskToPnsCorrelation (CAacDecoderChannelInfo *pAacDecoderChannelInfo[2])
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 */
143 if ( pAacDecoderChannelInfo[ch]->renderMode == AACDEC_RENDER_IMDCT
144 || pAacDecoderChannelInfo[ch]->renderMode == AACDEC_RENDER_ELDFB )
146 CBlock_InverseQuantizeSpectralData(pAacDecoderChannelInfo[ch], pSamplingRateInfo);
154 if (pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow) {
155 int maxSfBandsL = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo[L]->icsInfo);
156 int maxSfBandsR = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo[R]->icsInfo);
157 if (pAacDecoderChannelInfo[L]->data.aac.PnsData.PnsActive || pAacDecoderChannelInfo[R]->data.aac.PnsData.PnsActive) {
158 MapMidSideMaskToPnsCorrelation(pAacDecoderChannelInfo);
161 CJointStereo_ApplyMS(pAacDecoderChannelInfo,
162 GetScaleFactorBandOffsets(&pAacDecoderChannelInfo[L]->icsInfo, pSamplingRateInfo),
163 GetWindowGroupLengthTable(&pAacDecoderChannelInfo[L]->icsInfo),
164 GetWindowGroups(&pAacDecoderChannelInfo[L]->icsInfo),
169 /* apply intensity stereo */ /* modifies pAacDecoderChannelInfo[]->aSpecSfb */
170 CJointStereo_ApplyIS(pAacDecoderChannelInfo,
171 GetScaleFactorBandOffsets(&pAacDecoderChannelInfo[L]->icsInfo, pSamplingRateInfo),
172 GetWindowGroupLengthTable(&pAacDecoderChannelInfo[L]->icsInfo),
173 GetWindowGroups(&pAacDecoderChannelInfo[L]->icsInfo),
174 GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo[L]->icsInfo),
175 pAacDecoderChannelInfo[L]->pDynData->RawDataInfo.CommonWindow ? 1 : 0);
182 /* write pAacDecoderChannelInfo[ch]->specScale */
183 CBlock_ScaleSpectralData(pAacDecoderChannelInfo[ch], pSamplingRateInfo);
185 ApplyTools (pAacDecoderChannelInfo, pSamplingRateInfo, flags, ch);
191 pAacDecoderChannelInfo,
198 void CChannel_CodebookTableInit(CAacDecoderChannelInfo *pAacDecoderChannelInfo)
201 int maxSfb = GetScaleFactorBandsTransmitted(&pAacDecoderChannelInfo->icsInfo);
202 UCHAR *pCodeBook = pAacDecoderChannelInfo->pDynData->aCodeBook;
204 if ( IsLongBlock(&pAacDecoderChannelInfo->icsInfo) ) {
229 CAacDecoderChannelInfo *pAacDecoderChannelInfo[],
254 CTns_Reset(&pAacDecoderChannelInfo[0]->pDynData->TnsData);
256 CTns_Reset(&pAacDecoderChannelInfo[1]->pDynData->TnsData);
260 pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow = 1;
262 pAacDecoderChannelInfo[1]->pDynData->RawDataInfo.CommonWindow = pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow;
265 pAacDecoderChannelInfo[1]->pDynData->RawDataInfo.CommonWindow = pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow;
276 pAacDecoderChannelInfo[0]->ElementInstanceTag = FDKreadBits(hBs, 4);
278 pAacDecoderChannelInfo[1]->ElementInstanceTag = pAacDecoderChannelInfo[0]->ElementInstanceTag;
282 decision_bit = pAacDecoderChannelInfo[ch]->pDynData->RawDataInfo.CommonWindow = FDKreadBits(hBs, 1);
284 pAacDecoderChannelInfo[1]->pDynData->RawDataInfo.CommonWindow = pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow;
290 &pAacDecoderChannelInfo[ch]->icsInfo,
294 if (numberOfChannels == 2 && pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow) {
295 pAacDecoderChannelInfo[1]->icsInfo = pAacDecoderChannelInfo[0]->icsInfo;
309 &pAacDecoderChannelInfo[0]->pComData->jointStereoData,
310 GetWindowGroups(&pAacDecoderChannelInfo[0]->icsInfo),
311 GetScaleMaxFactorBandsTransmitted(&pAacDecoderChannelInfo[0]->icsInfo,
312 &pAacDecoderChannelInfo[1]->icsInfo),
320 pAacDecoderChannelInfo[ch]->pDynData->RawDataInfo.GlobalGain = (UCHAR) FDKreadBits(hBs,8);
325 pAacDecoderChannelInfo[ch],
334 CRvlc_Read(pAacDecoderChannelInfo[ch], hBs);
338 error = CBlock_ReadScaleFactorData(pAacDecoderChannelInfo[ch], hBs, flags);
344 &pAacDecoderChannelInfo[ch]->pDynData->specificTo.aac.PulseData,
346 (void*)&pAacDecoderChannelInfo[ch]->icsInfo,
354 CTns_ReadDataPresentFlag(hBs, &pAacDecoderChannelInfo[ch]->pDynData->TnsData);
358 error = CTns_Read(hBs, &pAacDecoderChannelInfo[ch]->pDynData->TnsData, &pAacDecoderChannelInfo[ch]->icsInfo, flags);
373 pAacDecoderChannelInfo[ch],
382 CHcr_Read(hBs, pAacDecoderChannelInfo[ch] );
388 pAacDecoderChannelInfo[ch],
392 pAacDecoderChannelInfo[ch]->renderMode = AACDEC_RENDER_ELDFB;
394 pAacDecoderChannelInfo[ch]->renderMode = AACDEC_RENDER_IMDCT;