Lines Matching refs:FIXP_DBL
127 static FIXP_DBL FDKsbrEnc_GetTonality(
128 const FIXP_DBL *const *quotaMatrix,
131 const FIXP_DBL *const *Energies,
139 FIXP_DBL energyMax[SBR_MAX_ENERGY_VALUES] = { FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f) };
140 FIXP_DBL energyMaxMin = MAXVAL_DBL; /* min. energy in energyMax array */
142 FIXP_DBL tonalityBand[SBR_MAX_ENERGY_VALUES] = { FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f), FL2FXCONST_DBL(0.0f) };
143 FIXP_DBL globalTonality = FL2FXCONST_DBL(0.0f);
144 FIXP_DBL energyBand[QMF_CHANNELS];
225 FDKsbrEnc_getEnergyFromCplxQmfData(FIXP_DBL **RESTRICT energyValues,/*!< the result of the operation */
226 FIXP_DBL **RESTRICT realValues, /*!< the real part of the QMF subsamples */
227 FIXP_DBL **RESTRICT imagValues, /*!< the imaginary part of the QMF subsamples */
235 FIXP_DBL max_val = FL2FXCONST_DBL(0.0f);
238 C_ALLOC_SCRATCH_START(tmpNrg, FIXP_DBL, QMF_CHANNELS*QMF_MAX_TIME_SLOTS/2);
261 FIXP_DBL *nrgValues = tmpNrg;
265 FIXP_DBL *RESTRICT r0 = realValues[k];
266 FIXP_DBL *RESTRICT i0 = imagValues[k];
267 FIXP_DBL *RESTRICT r1 = realValues[k+1];
268 FIXP_DBL *RESTRICT i1 = imagValues[k+1];
271 FIXP_DBL energy;
272 FIXP_DBL tr0,tr1,ti0,ti1;
301 FIXP_DBL *nrgValues = tmpNrg;
310 C_ALLOC_SCRATCH_END(tmpNrg, FIXP_DBL, QMF_CHANNELS*QMF_MAX_TIME_SLOTS/2);
315 FDKsbrEnc_getEnergyFromCplxQmfDataFull(FIXP_DBL **RESTRICT energyValues,/*!< the result of the operation */
316 FIXP_DBL **RESTRICT realValues, /*!< the real part of the QMF subsamples */
317 FIXP_DBL **RESTRICT imagValues, /*!< the imaginary part of the QMF subsamples */
325 FIXP_DBL max_val = FL2FXCONST_DBL(0.0f);
328 C_ALLOC_SCRATCH_START(tmpNrg, FIXP_DBL, QMF_MAX_TIME_SLOTS*QMF_CHANNELS/2);
354 FIXP_DBL *nrgValues = tmpNrg;
358 FIXP_DBL *RESTRICT r0 = realValues[k];
359 FIXP_DBL *RESTRICT i0 = imagValues[k];
362 FIXP_DBL energy;
363 FIXP_DBL tr0,ti0;
387 FIXP_DBL *nrgValues = tmpNrg;
396 C_ALLOC_SCRATCH_END(tmpNrg, FIXP_DBL, QMF_MAX_TIME_SLOTS*QMF_CHANNELS/2);
449 FIXP_DBL *RESTRICT NoiseLevels, /*! the noise levels */
460 if ((FIXP_DBL)NoiseLevels[i] > FL2FXCONST_DBL(0.46875f)) {
464 /* tmp = (INT)((FIXP_DBL)NoiseLevels[i] + (FL2FXCONST_DBL(0.5f)>>(*/ /* FRACT_BITS+ */ /* 6-1)));*/
489 coupleNoiseFloor(FIXP_DBL *RESTRICT noise_level_left, /*! noise level left (modified)*/
490 FIXP_DBL *RESTRICT noise_level_right /*! noise level right (modified)*/
493 FIXP_DBL cmpValLeft,cmpValRight;
495 FIXP_DBL temp1,temp2;
555 static FIXP_DBL
561 FIXP_DBL **YBuffer, /*! sfb energy buffer */
570 FIXP_DBL nrgSum, nrg1, nrg2, accu1, accu2;
580 nrgSum = accu1 = accu2 = (FIXP_DBL)0;
583 nrg1 = nrg2 = (FIXP_DBL)0;
608 static FIXP_DBL
609 mhLoweringEnergy(FIXP_DBL nrg, INT M)
644 static FIXP_DBL nmhLoweringEnergy(
645 FIXP_DBL nrg,
646 const FIXP_DBL nrgSum,
654 FIXP_DBL gain = fMult(fDivNorm(nrgSum, nrg, &sc), GetInvInt(M+1));
658 if ( !((sc>=0) && ( gain > ((FIXP_DBL)MAXVAL_DBL>>sc) )) ) {
675 calculateSbrEnvelope (FIXP_DBL **RESTRICT YBufferLeft, /*! energy buffer left */
676 FIXP_DBL **RESTRICT YBufferRight, /*! energy buffer right */
727 FIXP_DBL pNrgLeft[QMF_MAX_TIME_SLOTS];
728 FIXP_DBL pNrgRight[QMF_MAX_TIME_SLOTS];
730 FIXP_DBL envNrgLeft = FL2FXCONST_DBL(0.0f);
731 FIXP_DBL envNrgRight = FL2FXCONST_DBL(0.0f);
739 envNrg_scale = DFRACT_BITS-fNormz((FIXP_DBL)no_of_bands);
746 FIXP_DBL nrgLeft = FL2FXCONST_DBL(0.0f);
747 FIXP_DBL nrgRight = FL2FXCONST_DBL(0.0f);
808 FIXP_DBL tmpNrg;
830 FIXP_DBL tmpNrg;
883 FIXP_DBL nrgLeft2 = FL2FXCONST_DBL(0.0f);
884 FIXP_DBL nrgLeft = pNrgLeft[j];
885 FIXP_DBL nrgRight = pNrgRight[j];
907 FIXP_DBL tmp0,tmp1,tmp2,tmp3;
914 tmp1 = ((FIXP_DBL) (commonScale+tmpScale)) << (DFRACT_BITS-1-LD_DATA_SHIFT-1); /* scaled by 1/64 */
915 tmp2 = ((FIXP_DBL)(count[j]*h_con->noQmfBands)) << (DFRACT_BITS-1-14-1);
926 nrgLeft = (FIXP_DBL)(LONG)nrgLeft >> (DFRACT_BITS-1-LD_DATA_SHIFT-1-oneBitLess-1);
930 FIXP_DBL scaleFract;
933 nrgLeft2 = fixMax((FIXP_DBL)0x1, nrgLeft2);
934 nrgRight = fixMax((FIXP_DBL)0x1, nrgRight);
939 scaleFract = ((FIXP_DBL)(sc0-sc1)) << (DFRACT_BITS-1-LD_DATA_SHIFT); /* scale value in ld64 representation */
943 nrgRight = (FIXP_DBL)(LONG)(nrgRight) >> (DFRACT_BITS-1-LD_DATA_SHIFT-1-oneBitLess);
944 nrgRight = (nrgRight+(FIXP_DBL)1)>>1; /* rounding */
1031 FIXP_DBL tonality = FDKsbrEnc_GetTonality (
1856 sizeof(FIXP_DBL)*QMF_CHANNELS);
1880 FIXP_DBL* YBuffer = GetRam_Sbr_envYBuffer(channel);
1889 FIXP_DBL *YBufferDyn = GetRam_Sbr_envYBuffer(chInEl, dynamic_RAM);
1895 FIXP_DBL* rBuffer = GetRam_Sbr_envRBuffer(0, dynamic_RAM);
1896 FIXP_DBL* iBuffer = GetRam_Sbr_envIBuffer(0, dynamic_RAM);
1973 FIXP_DBL *YBufferDyn = GetRam_Sbr_envYBuffer(chInEl, dynamic_RAM);
1981 FDKmemclear( hSbrCut->YBuffer[i],QMF_CHANNELS*sizeof(FIXP_DBL));
1986 FDKmemclear( hSbrCut->rBuffer[i],QMF_CHANNELS*sizeof(FIXP_DBL));
1987 FDKmemclear( hSbrCut->iBuffer[i],QMF_CHANNELS*sizeof(FIXP_DBL));