Lines Matching defs:nEnvelopes
289 INT nEnvelopes)
306 if (nEnvelopes <= 1) {
311 for (e=0; (e < nEnvelopes/2) && (reducible!=0 ) ; e++) {
330 } /* nEnvelopes != 1 */
339 const INT nEnvelopes,
360 for(env=0;env<nEnvelopes; env++) {
366 errIID /= psBands*nEnvelopes;
367 errIIDFine /= psBands*nEnvelopes; */
372 for(env=0;env<nEnvelopes; env++) {
386 for(env=0;env<nEnvelopes; env++) {
414 for(env=1;env<nEnvelopes; env++) {
451 for(env=1;env<nEnvelopes; env++) {
474 /* const FIXP_DBL minThreshold = FL2FXCONST_DBL(0.2f/(IID_SCALE_FT*PS_QUANT_SCALE_FT)*(psBands*nEnvelopes)); */
475 const FIXP_DBL minThreshold = (FIXP_DBL)((LONG)0x00019999 * (psBands*nEnvelopes));
491 for(env=0;env<nEnvelopes; env++) {
498 for(env=0;env<nEnvelopes; env++) {
505 for(env=0;env<nEnvelopes; env++) {
516 const INT nEnvelopes)
525 if ((nEnvelopes == psData->nEnvelopesLast) && (nEnvelopes==1)) {
527 for (env=0; env<nEnvelopes; env++) {
540 } /* nEnvelopes==1 */
548 const INT nEnvelopes)
557 if ((nEnvelopes == psData->nEnvelopesLast) && (nEnvelopes==1)) {
559 for (env=0; env<nEnvelopes; env++) {
572 } /* nEnvelopes==1 */
580 const INT nEnvelopes)
592 for(env=0;env<nEnvelopes; env++) {
598 for(env=0;env<nEnvelopes; env++) {
610 for(env=0;env<nEnvelopes; env++) {
617 for(env=0;env<nEnvelopes; env++) {
642 INT nEnvelopes,
647 for(env=0; env<nEnvelopes;env++) {
666 INT nEnvelopes,
684 for(env=0; env<nEnvelopes;env++) {
861 int nEnvelopes = fixMin(maxEnvelopes, (UINT)PS_MAX_ENVELOPES);
865 for(env=0; env<nEnvelopes+1;env++) {
866 envBorder[env] = fMultI(GetInvInt(nEnvelopes),frameSize*env);
869 for(env=0; env<nEnvelopes;env++) {
923 } /* nEnvelopes */
926 calculateIID(pwrData->ldPwrL, pwrData->ldPwrR, iid, nEnvelopes, psBands);
927 calculateICC(pwrData->ldPwrL, pwrData->ldPwrR, pwrData->pwrCr, pwrData->pwrCi, icc, nEnvelopes, psBands);
930 while (envelopeReducible(iid,icc,psBands,nEnvelopes)) {
933 nEnvelopes >>= 1;
934 for (e=0; e<nEnvelopes; e++) {
947 envBorder[nEnvelopes] = envBorder[2*nEnvelopes];
950 calculateIID(pwrData->ldPwrL, pwrData->ldPwrR, iid, nEnvelopes, psBands);
951 calculateICC(pwrData->ldPwrL, pwrData->ldPwrR, pwrData->pwrCr, pwrData->pwrCi, icc, nEnvelopes, psBands);
964 nEnvelopes, hPsEncode->iidQuantErrorThreshold);
965 processIccData(hPsData, icc, psBands, nEnvelopes);
981 /* nEnvelopes = 0 ? */
983 && (similarIid(hPsData, psBands, nEnvelopes))
984 && (similarIcc(hPsData, psBands, nEnvelopes)) ) {
985 hPsOut->nEnvelopes = nEnvelopes = 0;
992 if (nEnvelopes>0) {
1002 hPsOut->nEnvelopes = nEnvelopes;
1004 for(env=0; env<nEnvelopes; env++) {
1008 for(env=0; env<hPsOut->nEnvelopes; env++) {
1016 for(env=0; env<hPsOut->nEnvelopes; env++) {
1039 hPsData->nEnvelopesLast = nEnvelopes;
1045 hPsData->iidIdxLast[i] = hPsData->iidIdx[nEnvelopes-1][i];
1046 hPsData->iccIdxLast[i] = hPsData->iccIdx[nEnvelopes-1][i];