Lines Matching refs:icc
287 FIXP_DBL icc[PS_MAX_ENVELOPES][PS_MAX_BANDS],
315 dIcc = (icc[2*e][b]>>1) - (icc[2*e+1][b]>>1);
578 FIXP_DBL icc[PS_MAX_ENVELOPES][PS_MAX_BANDS], /* const input values: unable to declare as const, since it does not poINT to const memory */
591 /* Quantize ICC coefficients */
593 errICC += quantizeCoef(icc[env], psBands, iccQuant, 0, 8, psData->iccIdx[env]);
596 /* Check if ICC coefficients should be used */
665 FIXP_DBL icc[PS_MAX_ENVELOPES][PS_MAX_BANDS],
687 /* icc[env][i] = min( pwrCr[env][i] / (float) sqrt(pwrL[env][i] * pwrR[env][i]) , 1.f);
689 FIXP_DBL ICC, invNrg = CalcInvLdData ( -((ldPwrL[env][i]>>1) + (ldPwrR[env][i]>>1) + (FIXP_DBL)1) );
693 ICC = fMult(pwrCr[env][i], invNrg<<invScale) ;
694 icc[env][i] = SATURATE_LEFT_SHIFT(ICC, scale, DFRACT_BITS);
699 FIXP_DBL cNrgR, cNrgI, ICC;
705 ICC = CalcInvLdData( (CalcLdData((cNrgR + cNrgI)>>1)>>1) - (FIXP_DBL)((sc1-1)<<(DFRACT_BITS-1-LD_DATA_SHIFT)) );
711 sc2 = CountLeadingBits(ICC);
712 ICC = fMult(ICC<<sc2,invNrg);
716 ICC >>= -sc1;
719 if (ICC >= ((FIXP_DBL)MAXVAL_DBL>>sc1) )
720 ICC = (FIXP_DBL)MAXVAL_DBL;
722 ICC <<= sc1;
725 icc[env][i] = ICC;
852 FIXP_DBL icc [PS_MAX_ENVELOPES][PS_MAX_BANDS];
925 /* calculate iid and icc */
927 calculateICC(pwrData->ldPwrL, pwrData->ldPwrR, pwrData->pwrCr, pwrData->pwrCi, icc, nEnvelopes, psBands);
930 while (envelopeReducible(iid,icc,psBands,nEnvelopes)) {
949 /* re-calculate iid and icc */
951 calculateICC(pwrData->ldPwrL, pwrData->ldPwrR, pwrData->pwrCr, pwrData->pwrCi, icc, nEnvelopes, psBands);
965 processIccData(hPsData, icc, psBands, nEnvelopes);
1019 hPsOut->icc[env][band] = hPsData->iccIdx[env][band];