Home | History | Annotate | Download | only in src

Lines Matching refs:psBands

288                              INT psBands,
303 iidErrThreshold = fMultDiv2 ( FL2FXCONST_DBL(6.5f*6.5f/(IID_SCALE_FT*IID_SCALE_FT)), (FIXP_DBL)(psBands<<((DFRACT_BITS)-THRESH_SCALE)) );
304 iccErrThreshold = fMultDiv2 ( FL2FXCONST_DBL(0.75f*0.75f), (FIXP_DBL)(psBands<<((DFRACT_BITS)-THRESH_SCALE)) );
313 for(b=0; b<psBands; b++) {
321 instead of division, multiply threshold with psBands
338 const INT psBands,
361 errIID += quantizeCoef(iid[env], psBands, iidQuant_fx, 7, 15, iidIdxCoarse[env]);
362 errIIDFine += quantizeCoef(iid[env], psBands, iidQuantFine_fx, 15, 31, iidIdxFine[env]);
366 errIID /= psBands*nEnvelopes;
367 errIIDFine /= psBands*nEnvelopes; */
373 for(band=0;band<psBands;band++) {
388 FDKmemclear(psData->iidIdx[env], sizeof(INT)*psBands);
394 bitsIidFreq = FDKsbrEnc_EncodeIid(NULL, iidIdxCoarse[0], NULL, psBands, PS_IID_RES_COARSE, PS_DELTA_FREQ, &error);
400 bitsIidTime = FDKsbrEnc_EncodeIid(NULL, iidIdxCoarse[0], psData->iidIdxLast, psBands, PS_IID_RES_COARSE, PS_DELTA_TIME, &error);
415 bitsIidFreq = FDKsbrEnc_EncodeIid(NULL, iidIdxCoarse[env], NULL, psBands, PS_IID_RES_COARSE, PS_DELTA_FREQ, &error);
416 bitsIidTime = FDKsbrEnc_EncodeIid(NULL, iidIdxCoarse[env], iidIdxCoarse[env-1], psBands, PS_IID_RES_COARSE, PS_DELTA_TIME, &error);
431 bitsIidFreq = FDKsbrEnc_EncodeIid(NULL, iidIdxFine[0], NULL, psBands, PS_IID_RES_FINE, PS_DELTA_FREQ, &error);
437 bitsIidTime = FDKsbrEnc_EncodeIid(NULL, iidIdxFine[0], psData->iidIdxLast, psBands, PS_IID_RES_FINE, PS_DELTA_TIME, &error);
452 bitsIidFreq = FDKsbrEnc_EncodeIid(NULL, iidIdxFine[env], NULL, psBands, PS_IID_RES_FINE, PS_DELTA_FREQ, &error);
453 bitsIidTime = FDKsbrEnc_EncodeIid(NULL, iidIdxFine[env], iidIdxFine[env-1], psBands, PS_IID_RES_FINE, PS_DELTA_TIME, &error);
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));
493 FDKmemcpy(psData->iidIdx[env], iidIdxFine[env], psBands*sizeof(INT));
500 FDKmemcpy(psData->iidIdx[env], iidIdxCoarse[env], psBands*sizeof(INT));
515 const INT psBands,
519 const INT sumDiffThr = diffThr * psBands/4;
538 } while ((b<psBands) && (similar>0));
547 const INT psBands,
551 const INT sumDiffThr = diffThr * psBands/4;
570 } while ((b<psBands) && (similar>0));
579 const INT psBands,
593 errICC += quantizeCoef(icc[env], psBands, iccQuant, 0, 8, psData->iccIdx[env]);
599 for(band=0;band<psBands;band++) {
612 FDKmemclear(psData->iccIdx[env], sizeof(INT)*psBands);
618 bitsIccFreq = FDKsbrEnc_EncodeIcc(NULL, psData->iccIdx[env], NULL, psBands, PS_DELTA_FREQ, &error);
621 bitsIccTime = FDKsbrEnc_EncodeIcc(NULL, psData->iccIdx[env], iccIdxLast, psBands, PS_DELTA_TIME, &error);
643 INT psBands)
648 for (i=0; i<psBands; i++) {
667 INT psBands)
671 INT border = psBands;
673 switch (psBands) {
697 for (; i<psBands; i++) {
859 int psBands = (int) hPsEncode->psEncMode;
872 for (band=0; band<psBands; band++) {
920 LdDataVector(pwrData->pwrL[env], pwrData->ldPwrL[env], psBands);
921 LdDataVector(pwrData->pwrR[env], pwrData->ldPwrR[env], psBands);
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)) {
935 FDKsbrEnc_addFIXP_DBL(pwrData->pwrL[2*e], pwrData->pwrL[2*e+1], pwrData->pwrL[e], psBands);
936 FDKsbrEnc_addFIXP_DBL(pwrData->pwrR[2*e], pwrData->pwrR[2*e+1], pwrData->pwrR[e], psBands);
937 FDKsbrEnc_addFIXP_DBL(pwrData->pwrCr[2*e],pwrData->pwrCr[2*e+1],pwrData->pwrCr[e],psBands);
938 FDKsbrEnc_addFIXP_DBL(pwrData->pwrCi[2*e],pwrData->pwrCi[2*e+1],pwrData->pwrCi[e],psBands);
941 LdDataVector(pwrData->pwrL[e], pwrData->ldPwrL[e], psBands);
942 LdDataVector(pwrData->pwrR[e], pwrData->ldPwrR[e], psBands);
950 calculateIID(pwrData->ldPwrL, pwrData->ldPwrR, iid, nEnvelopes, psBands);
951 calculateICC(pwrData->ldPwrL, pwrData->ldPwrR, pwrData->pwrCr, pwrData->pwrCi, icc, nEnvelopes, psBands);
964 psBands, nEnvelopes, hPsEncode->iidQuantErrorThreshold);
965 processIccData(hPsData, icc, psBands, nEnvelopes);
983 && (similarIid(hPsData, psBands, nEnvelopes))
984 && (similarIcc(hPsData, psBands, nEnvelopes)) ) {
995 hPsOut->iidMode = getIIDMode(psBands, hPsData->iidQuantMode);
998 hPsOut->iccMode = getICCMode(psBands, hPsData->iccQuantMode);
1011 for(band=0; band<psBands; band++) {
1018 for(band=0; band<psBands; band++) {
1044 for (i=0; i<psBands; i++) {