Lines Matching refs:elementId
1162 INT elementId; in FDKaacEnc_correctThresh() local
1165 for(elementId=elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_correctThresh()
1166 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_correctThresh()
1167 SHORT* ptr = qcElement[elementId]->qcOutChannel[ch]->quantSpec; in FDKaacEnc_correctThresh()
1168 sfbPeFactorsLdData[elementId][ch] = (FIXP_DBL*)ptr; in FDKaacEnc_correctThresh()
1175 for(elementId=elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_correctThresh()
1176 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_correctThresh()
1178 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_correctThresh()
1180 qcOutChan = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_correctThresh()
1181 psyOutChan = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_correctThresh()
1182 peChanData = &qcElement[elementId]->peData.peChannelData[ch]; in FDKaacEnc_correctThresh()
1188 sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_correctThresh()
1194 …sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] = CalcLdInt(peChanData->sfbNActiveLines[sfbGrp+sf… in FDKaacEnc_correctThresh()
1196 if ( ((ahFlag[elementId][ch][sfbGrp+sfb] < AH_ACTIVE) || (deltaPe > 0)) && in FDKaacEnc_correctThresh()
1199 if (thrExp[elementId][ch][sfbGrp+sfb] > -redVal[elementId]) { in FDKaacEnc_correctThresh()
1204 …CountLeadingBits(thrExp[elementId][ch][sfbGrp+sfb]), CountLeadingBits(redVal[elementId]) - (DFRACT… in FDKaacEnc_correctThresh()
1207 …ata(scaleValue(thrExp[elementId][ch][sfbGrp+sfb], minScale) + scaleValue(redVal[elementId], (DFRAC… in FDKaacEnc_correctThresh()
1211 …sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] -… in FDKaacEnc_correctThresh()
1214 … if ( sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] > (FL2FXCONST_DBL(-1.f) + sumLd) ) { in FDKaacEnc_correctThresh()
1215 …sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb] -… in FDKaacEnc_correctThresh()
1218 … sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = sfbNActiveLinesLdData[elementId][ch][sfbGrp+sfb]; in FDKaacEnc_correctThresh()
1222 … normFactorInt += (INT)CalcInvLdData(sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb]); in FDKaacEnc_correctThresh()
1224 else sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(1.0f); in FDKaacEnc_correctThresh()
1226 else sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] = FL2FXCONST_DBL(-1.0f); in FDKaacEnc_correctThresh()
1238 for(elementId=elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_correctThresh()
1239 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_correctThresh()
1241 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_correctThresh()
1242 qcOutChan = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_correctThresh()
1243 psyOutChan = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_correctThresh()
1244 peChanData = &qcElement[elementId]->peData.peChannelData[ch]; in FDKaacEnc_correctThresh()
1252 if ( (sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb]==FL2FXCONST_DBL(-1.0f)) || in FDKaacEnc_correctThresh()
1259 …p = CalcInvLdData(sfbPeFactorsLdData[elementId][ch][sfbGrp+sfb] + normFactorLdData - sfbNActiveLin… in FDKaacEnc_correctThresh()
1284 (ahFlag[elementId][ch][sfbGrp+sfb] == AH_INACTIVE) ) in FDKaacEnc_correctThresh()
1293 ahFlag[elementId][ch][sfbGrp+sfb] = AH_ACTIVE; in FDKaacEnc_correctThresh()
1320 INT elementId; in FDKaacEnc_reduceMinSnr() local
1325 for(elementId=elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_reduceMinSnr()
1326 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_reduceMinSnr()
1332 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_reduceMinSnr()
1333 maxSfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->maxSfbPerGroup-1; in FDKaacEnc_reduceMinSnr()
1334 sfbCnt[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbCnt; in FDKaacEnc_reduceMinSnr()
1335 sfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_reduceMinSnr()
1338 PE_DATA *peData = &qcElement[elementId]->peData; in FDKaacEnc_reduceMinSnr()
1342 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_reduceMinSnr()
1345 QC_OUT_CHANNEL *qcOutChan = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_reduceMinSnr()
1355 if (ahFlag[elementId][ch][sfbGrp+sfb] != NO_AH && in FDKaacEnc_reduceMinSnr()
1389 if ( (ch==(cm->elInfo[elementId].nChannelsInEl-1)) && noReduction ) { in FDKaacEnc_reduceMinSnr()
1422 INT elementId; in FDKaacEnc_allowMoreHoles() local
1430 for (elementId = elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_allowMoreHoles()
1431 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_allowMoreHoles()
1435 PE_DATA *peData = &qcElement[elementId]->peData; in FDKaacEnc_allowMoreHoles()
1436 const INT nChannels = cm->elInfo[elementId].nChannelsInEl; in FDKaacEnc_allowMoreHoles()
1444 qcOutChannel[ch] = qcElement[elementId]->qcOutChannel[ch]; in FDKaacEnc_allowMoreHoles()
1445 psyOutChannel[ch] = psyOutElement[elementId]->psyOutChannel[ch]; in FDKaacEnc_allowMoreHoles()
1459 if (psyOutElement[elementId]->toolsInfo.msMask[sfbGrp+sfb]) { in FDKaacEnc_allowMoreHoles()
1464 if ( (ahFlag[elementId][1][sfbGrp+sfb] != NO_AH) && in FDKaacEnc_allowMoreHoles()
1468 ahFlag[elementId][1][sfbGrp+sfb] = NO_AH; in FDKaacEnc_allowMoreHoles()
1473 else if ( (ahFlag[elementId][0][sfbGrp+sfb] != NO_AH) && in FDKaacEnc_allowMoreHoles()
1477 ahFlag[elementId][0][sfbGrp+sfb] = NO_AH; in FDKaacEnc_allowMoreHoles()
1502 startSfb[ch] = AdjThrStateElement[elementId]->ahParam.startSfbL; in FDKaacEnc_allowMoreHoles()
1504 startSfb[ch] = AdjThrStateElement[elementId]->ahParam.startSfbS; in FDKaacEnc_allowMoreHoles()
1519 if ((ahFlag[elementId][ch][sfbGrp+sfb]!=NO_AH) && in FDKaacEnc_allowMoreHoles()
1557 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_allowMoreHoles()
1558 maxSfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->maxSfbPerGroup-1; in FDKaacEnc_allowMoreHoles()
1559 sfbCnt[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbCnt; in FDKaacEnc_allowMoreHoles()
1560 sfbPerGroup[ch] = psyOutElement[elementId]->psyOutChannel[ch]->sfbPerGroup; in FDKaacEnc_allowMoreHoles()
1567 for(ch=0; ch<cm->elInfo[elementId].nChannelsInEl; ch++) { in FDKaacEnc_allowMoreHoles()
1578 …if (ahFlag[elementId][ch][sfbGrp+sfb] != NO_AH && qcOutChannel[ch]->sfbEnergyLdData[sfbGrp+sfb] < … in FDKaacEnc_allowMoreHoles()
1580 ahFlag[elementId][ch][sfbGrp+sfb] = NO_AH; in FDKaacEnc_allowMoreHoles()
1664 int elementId; in FDKaacEnc_adaptThresholdsToPe() local
1674 for (elementId = elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_adaptThresholdsToPe()
1675 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_adaptThresholdsToPe()
1677 INT nChannels = cm->elInfo[elementId].nChannelsInEl; in FDKaacEnc_adaptThresholdsToPe()
1678 PE_DATA *peData = &qcElement[elementId]->peData; in FDKaacEnc_adaptThresholdsToPe()
1681 …FDKaacEnc_calcThreshExp(pThrExp[elementId], qcElement[elementId]->qcOutChannel, psyOutElement[elem… in FDKaacEnc_adaptThresholdsToPe()
1685 …acEnc_adaptMinSnr(qcElement[elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, &Ad… in FDKaacEnc_adaptThresholdsToPe()
1688 …elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, pAhFlag[elementId], &psyOutElem… in FDKaacEnc_adaptThresholdsToPe()
1701 for (elementId = elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_adaptThresholdsToPe()
1702 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_adaptThresholdsToPe()
1709 INT nChannels = cm->elInfo[elementId].nChannelsInEl; in FDKaacEnc_adaptThresholdsToPe()
1710 PE_DATA *peData = &qcElement[elementId]->peData; in FDKaacEnc_adaptThresholdsToPe()
1719 redValue[elementId] = scaleValue(tmp0,(scalMin-scale0)) - scaleValue(tmp1,(scalMin-scale1)); in FDKaacEnc_adaptThresholdsToPe()
1720 redValScaling[elementId] = scalMin; in FDKaacEnc_adaptThresholdsToPe()
1723 …elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, pAhFlag[elementId], pThrExp[ele… in FDKaacEnc_adaptThresholdsToPe()
1726 …FDKaacEnc_calcPe(psyOutElement[elementId]->psyOutChannel, qcElement[elementId]->qcOutChannel, peDa… in FDKaacEnc_adaptThresholdsToPe()
1743 for (elementId = elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_adaptThresholdsToPe()
1744 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_adaptThresholdsToPe()
1747 INT nChannels = cm->elInfo[elementId].nChannelsInEl; in FDKaacEnc_adaptThresholdsToPe()
1748 PE_DATA *peData = &qcElement[elementId]->peData; in FDKaacEnc_adaptThresholdsToPe()
1752 peData, pAhFlag[elementId], psyOutElement[elementId]->psyOutChannel, nChannels); in FDKaacEnc_adaptThresholdsToPe()
1771 for (elementId = elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_adaptThresholdsToPe()
1772 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_adaptThresholdsToPe()
1789 tmp1 = redValue[elementId]; in FDKaacEnc_adaptThresholdsToPe()
1790 scale1 = redValScaling[elementId]; in FDKaacEnc_adaptThresholdsToPe()
1795 … redValue[elementId] = scaleValue(tmp0,(scalMin-scale0)) + scaleValue(tmp1,(scalMin-scale1)); in FDKaacEnc_adaptThresholdsToPe()
1796 redValScaling[elementId] = scalMin; in FDKaacEnc_adaptThresholdsToPe()
1804 for (elementId = elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_adaptThresholdsToPe()
1805 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_adaptThresholdsToPe()
1811 redValue[elementId] = fMult(redValue[elementId], tmp); in FDKaacEnc_adaptThresholdsToPe()
1812 redValScaling[elementId] -= redVal_scale; in FDKaacEnc_adaptThresholdsToPe()
1814 …FDKaacEnc_resetAHFlags(pAhFlag[elementId], cm->elInfo[elementId].nChannelsInEl, psyOutElement[elem… in FDKaacEnc_adaptThresholdsToPe()
1821 for (elementId = elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_adaptThresholdsToPe()
1822 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_adaptThresholdsToPe()
1824 INT nChannels = cm->elInfo[elementId].nChannelsInEl; in FDKaacEnc_adaptThresholdsToPe()
1825 PE_DATA *peData = &qcElement[elementId]->peData; in FDKaacEnc_adaptThresholdsToPe()
1828 …elementId]->qcOutChannel, psyOutElement[elementId]->psyOutChannel, pAhFlag[elementId], pThrExp[ele… in FDKaacEnc_adaptThresholdsToPe()
1831 …FDKaacEnc_calcPe(psyOutElement[elementId]->psyOutChannel, qcElement[elementId]->qcOutChannel, peDa… in FDKaacEnc_adaptThresholdsToPe()
1865 for(elementId=elementOffset;elementId<nElements;elementId++) { in FDKaacEnc_adaptThresholdsToPe()
1866 if (cm->elInfo[elementId].elType != ID_DSE) { in FDKaacEnc_adaptThresholdsToPe()
1868 INT nChannels = cm->elInfo[elementId].nChannelsInEl; in FDKaacEnc_adaptThresholdsToPe()
1869 PE_DATA *peData = &qcElement[elementId]->peData; in FDKaacEnc_adaptThresholdsToPe()
1872 …FDKaacEnc_calcPe(psyOutElement[elementId]->psyOutChannel, qcElement[elementId]->qcOutChannel, peDa… in FDKaacEnc_adaptThresholdsToPe()