Lines Matching refs:h_ps_d
128 SBR_ERROR ResetPsDec(HANDLE_PS_DEC h_ps_d);
142 HANDLE_PS_DEC h_ps_d; in CreatePsDec() local
147 h_ps_d = GetRam_ps_dec(); in CreatePsDec()
148 if (h_ps_d == NULL) { in CreatePsDec()
153 h_ps_d = *h_PS_DEC; in CreatePsDec()
159 FDKhybridAnalysisOpen(&h_ps_d->specificTo.mpeg.hybridAnalysis, in CreatePsDec()
160 h_ps_d->specificTo.mpeg.pHybridAnaStatesLFdmx, in CreatePsDec()
161 sizeof(h_ps_d->specificTo.mpeg.pHybridAnaStatesLFdmx), in CreatePsDec()
167 h_ps_d->noSubSamples = 30; /* col */ in CreatePsDec()
170 h_ps_d->noSubSamples = 32; /* col */ in CreatePsDec()
173 h_ps_d->noSubSamples = -1; in CreatePsDec()
177 if (h_ps_d->noSubSamples > MAX_NUM_COL || h_ps_d->noSubSamples <= 0) { in CreatePsDec()
180 h_ps_d->noChannels = NO_QMF_CHANNELS; /* row */ in CreatePsDec()
182 h_ps_d->psDecodedPrv = 0; in CreatePsDec()
183 h_ps_d->procFrameBased = -1; in CreatePsDec()
185 h_ps_d->bPsDataAvail[i] = ppt_none; in CreatePsDec()
189 error = FDKdecorrelateOpen(&(h_ps_d->specificTo.mpeg.apDecor), in CreatePsDec()
190 h_ps_d->specificTo.mpeg.decorrBufferCplx, in CreatePsDec()
196 FDKmemclear(&h_ps_d->bsData[i].mpeg, sizeof(MPEG_PS_BS_DATA)); in CreatePsDec()
199 errorInfo = ResetPsDec(h_ps_d); in CreatePsDec()
203 *h_PS_DEC = h_ps_d; in CreatePsDec()
208 if (h_ps_d != NULL) { in CreatePsDec()
209 DeletePsDec(&h_ps_d); in CreatePsDec()
229 HANDLE_PS_DEC h_ps_d = *h_PS_DEC; in DeletePsDec() local
230 FDKdecorrelateClose(&(h_ps_d->specificTo.mpeg.apDecor)); in DeletePsDec()
245 SBR_ERROR ResetPsDec(HANDLE_PS_DEC h_ps_d) /*!< pointer to the module state */ in ResetPsDec() argument
253 h_ps_d->specificTo.mpeg.lastUsb = 0; in ResetPsDec()
258 FDKhybridAnalysisInit(&h_ps_d->specificTo.mpeg.hybridAnalysis, THREE_TO_TEN, in ResetPsDec()
265 FDKhybridSynthesisInit(&h_ps_d->specificTo.mpeg.hybridSynthesis[i], in ResetPsDec()
270 error = FDKdecorrelateInit(&h_ps_d->specificTo.mpeg.apDecor, 71, DECORR_PS, in ResetPsDec()
277 h_ps_d->specificTo.mpeg.h11rPrev[i] = FL2FXCONST_DBL(0.5f); in ResetPsDec()
278 h_ps_d->specificTo.mpeg.h12rPrev[i] = FL2FXCONST_DBL(0.5f); in ResetPsDec()
281 FDKmemclear(h_ps_d->specificTo.mpeg.h21rPrev, in ResetPsDec()
282 sizeof(h_ps_d->specificTo.mpeg.h21rPrev)); in ResetPsDec()
283 FDKmemclear(h_ps_d->specificTo.mpeg.h22rPrev, in ResetPsDec()
284 sizeof(h_ps_d->specificTo.mpeg.h22rPrev)); in ResetPsDec()
294 void PreparePsProcessing(HANDLE_PS_DEC h_ps_d, in PreparePsProcessing() argument
298 if (h_ps_d->procFrameBased == in PreparePsProcessing()
314 FDKhybridAnalysisApply(&h_ps_d->specificTo.mpeg.hybridAnalysis, in PreparePsProcessing()
318 h_ps_d->procFrameBased = 0; /* switch to slot based processing. */ in PreparePsProcessing()
324 HANDLE_PS_DEC h_ps_d, /*!< pointer to the module state */ in initSlotBasedRotation() argument
337 if (h_ps_d->bsData[h_ps_d->processSlot].mpeg.bFineIidQ) { in initSlotBasedRotation()
361 ScaleR = PScaleFactors[noIidSteps + h_ps_d->specificTo.mpeg.pCoef in initSlotBasedRotation()
363 ScaleL = PScaleFactors[noIidSteps - h_ps_d->specificTo.mpeg.pCoef in initSlotBasedRotation()
367 fMult(Alphas[h_ps_d->specificTo.mpeg.pCoef->aaIccIndexMapped[env][bin]], in initSlotBasedRotation()
371 Alphas[h_ps_d->specificTo.mpeg.pCoef->aaIccIndexMapped[env][bin]] >> 1; in initSlotBasedRotation()
398 h_ps_d->bsData[h_ps_d->processSlot].mpeg.aEnvStartStop[env + 1] - in initSlotBasedRotation()
399 h_ps_d->bsData[h_ps_d->processSlot].mpeg.aEnvStartStop[env])); in initSlotBasedRotation()
401 h_ps_d->specificTo.mpeg.pCoef->H11r[group] = in initSlotBasedRotation()
402 h_ps_d->specificTo.mpeg.h11rPrev[group]; in initSlotBasedRotation()
403 h_ps_d->specificTo.mpeg.pCoef->H12r[group] = in initSlotBasedRotation()
404 h_ps_d->specificTo.mpeg.h12rPrev[group]; in initSlotBasedRotation()
405 h_ps_d->specificTo.mpeg.pCoef->H21r[group] = in initSlotBasedRotation()
406 h_ps_d->specificTo.mpeg.h21rPrev[group]; in initSlotBasedRotation()
407 h_ps_d->specificTo.mpeg.pCoef->H22r[group] = in initSlotBasedRotation()
408 h_ps_d->specificTo.mpeg.h22rPrev[group]; in initSlotBasedRotation()
410 h_ps_d->specificTo.mpeg.pCoef->DeltaH11r[group] = in initSlotBasedRotation()
411 fMult(h11r - h_ps_d->specificTo.mpeg.pCoef->H11r[group], invL); in initSlotBasedRotation()
412 h_ps_d->specificTo.mpeg.pCoef->DeltaH12r[group] = in initSlotBasedRotation()
413 fMult(h12r - h_ps_d->specificTo.mpeg.pCoef->H12r[group], invL); in initSlotBasedRotation()
414 h_ps_d->specificTo.mpeg.pCoef->DeltaH21r[group] = in initSlotBasedRotation()
415 fMult(h21r - h_ps_d->specificTo.mpeg.pCoef->H21r[group], invL); in initSlotBasedRotation()
416 h_ps_d->specificTo.mpeg.pCoef->DeltaH22r[group] = in initSlotBasedRotation()
417 fMult(h22r - h_ps_d->specificTo.mpeg.pCoef->H22r[group], invL); in initSlotBasedRotation()
421 h_ps_d->specificTo.mpeg.h11rPrev[group] = h11r; in initSlotBasedRotation()
422 h_ps_d->specificTo.mpeg.h12rPrev[group] = h12r; in initSlotBasedRotation()
423 h_ps_d->specificTo.mpeg.h21rPrev[group] = h21r; in initSlotBasedRotation()
424 h_ps_d->specificTo.mpeg.h22rPrev[group] = h22r; in initSlotBasedRotation()
434 HANDLE_PS_DEC h_ps_d, /*!< pointer to the module state */ in applySlotBasedRotation() argument
507 PS_DEC_COEFFICIENTS *pCoef = h_ps_d->specificTo.mpeg.pCoef; in applySlotBasedRotation()
547 HANDLE_PS_DEC h_ps_d, /*!< handle PS_DEC*/ in ApplyPsSlot() argument
625 FDKhybridAnalysisApply(&h_ps_d->specificTo.mpeg.hybridAnalysis, in ApplyPsSlot()
665 FDKdecorrelateApply(&h_ps_d->specificTo.mpeg.apDecor, in ApplyPsSlot()
679 applySlotBasedRotation(h_ps_d, in ApplyPsSlot()
701 &h_ps_d->specificTo.mpeg.hybridSynthesis[i], in ApplyPsSlot()