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