Lines Matching refs:psyData
467 PSY_DATA *RESTRICT psyData[(2)]; in FDKaacEnc_psyMain() local
499 psyData[ch] = &psyDynamic->psyData[ch]; in FDKaacEnc_psyMain()
503 psyData[ch]->mdctSpectrum = psyOutChannel[ch]->mdctSpectrum; in FDKaacEnc_psyMain()
571 pSfbMaxScaleSpec[ch] = psyData[ch]->sfbMaxScaleSpec.Short[0]; in FDKaacEnc_psyMain()
572 pSfbEnergy[ch] = psyData[ch]->sfbEnergy.Short[0]; in FDKaacEnc_psyMain()
573 pSfbSpreadEnergy[ch] = psyData[ch]->sfbSpreadEnergy.Short[0]; in FDKaacEnc_psyMain()
574 pSfbEnergyLdData[ch] = psyData[ch]->sfbEnergyLdData.Short[0]; in FDKaacEnc_psyMain()
575 pSfbEnergyMS[ch] = psyData[ch]->sfbEnergyMS.Short[0]; in FDKaacEnc_psyMain()
576 pSfbThreshold[ch] = psyData[ch]->sfbThreshold.Short[0]; in FDKaacEnc_psyMain()
585 pSfbMaxScaleSpec[ch] = psyData[ch]->sfbMaxScaleSpec.Long; in FDKaacEnc_psyMain()
586 pSfbEnergy[ch] = psyData[ch]->sfbEnergy.Long; in FDKaacEnc_psyMain()
587 pSfbSpreadEnergy[ch] = psyData[ch]->sfbSpreadEnergy.Long; in FDKaacEnc_psyMain()
588 pSfbEnergyLdData[ch] = psyData[ch]->sfbEnergyLdData.Long; in FDKaacEnc_psyMain()
589 pSfbEnergyMS[ch] = psyData[ch]->sfbEnergyMS.Long; in FDKaacEnc_psyMain()
590 pSfbThreshold[ch] = psyData[ch]->sfbThreshold.Long; in FDKaacEnc_psyMain()
599 psyData[ch]->sfbActive = hThisPsyConf[ch]->sfbActiveLFE; in FDKaacEnc_psyMain()
600 psyData[ch]->lowpassLine = hThisPsyConf[ch]->lowpassLineLFE; in FDKaacEnc_psyMain()
603 psyData[ch]->sfbActive = hThisPsyConf[ch]->sfbActive; in FDKaacEnc_psyMain()
604 psyData[ch]->lowpassLine = hThisPsyConf[ch]->lowpassLine; in FDKaacEnc_psyMain()
612 psyData[ch]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
623 FDKmemclear(&psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset], in FDKaacEnc_psyMain()
624 (windowLength[ch]-psyData[ch]->lowpassLine)*sizeof(FIXP_DBL)); in FDKaacEnc_psyMain()
626 if ( (hPsyConfLong->filterbank != FB_LC) && (psyData[ch]->lowpassLine >= FADE_OUT_LEN) ) { in FDKaacEnc_psyMain()
629 …psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset - FADE_OUT_LEN + i] = fMult(psyData[ch]… in FDKaacEnc_psyMain()
635 for(line=0; (line<psyData[ch]->lowpassLine) && (zeroSpec==TRUE); line++) { in FDKaacEnc_psyMain()
636 if (psyData[ch]->mdctSpectrum[line+wOffset] != (FIXP_DBL)0) { in FDKaacEnc_psyMain()
644 psyData[ch]->mdctScale = mdctSpectrum_e; in FDKaacEnc_psyMain()
673 FDKaacEnc_CalcSfbMaxScaleSpec(psyData[ch]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
676 psyData[ch]->sfbActive); in FDKaacEnc_psyMain()
678 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++) in FDKaacEnc_psyMain()
688 currNrg = FDKaacEnc_CheckBandEnergyOptim(psyData[ch]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
691 psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
713 if (finalShift > psyData[0]->mdctScale + 3 ) in FDKaacEnc_psyMain()
714 finalShift = psyData[0]->mdctScale + 3; in FDKaacEnc_psyMain()
722 for(sfb=0; sfb<psyData[ch]->sfbActive; sfb++) { in FDKaacEnc_psyMain()
737 for(line=0; line<psyData[ch]->lowpassLine; line++) { in FDKaacEnc_psyMain()
738 psyData[ch]->mdctSpectrum[line+wOffset] <<= finalShift; in FDKaacEnc_psyMain()
741 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++) in FDKaacEnc_psyMain()
745 psyData[ch]->mdctScale -= finalShift; in FDKaacEnc_psyMain()
752 …psyData[ch]->mdctScale = 0; /* otherwise mdctScale would be for example 7 and PCM quantization… in FDKaacEnc_psyMain()
756 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++) { in FDKaacEnc_psyMain()
777 FDKaacEnc_CalculateFullTonality( psyData[ch]->mdctSpectrum, in FDKaacEnc_psyMain()
781 psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
802 psyData[ch]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
842 psyData[ch]->mdctSpectrum[sfb] = psyData[ch]->mdctSpectrum[sfb] >> shift; in FDKaacEnc_psyMain()
846 for (sfb=0; sfb<psyData[ch]->sfbActive; sfb++) { in FDKaacEnc_psyMain()
850 psyData[ch]->mdctScale += shift; /* update mdctScale */ in FDKaacEnc_psyMain()
866 …hThisPsyConf[ch]->sfbOffset[psyData[ch]->sfbActive],/*hThisPsyConf[ch]->lowpassLine*/ /* filter st… in FDKaacEnc_psyMain()
867 psyData[ch]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
874 FDKaacEnc_CalcSfbMaxScaleSpec(psyData[ch]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
877 psyData[ch]->sfbActive); in FDKaacEnc_psyMain()
888 FDKaacEnc_CalcBandEnergyOptimShort(psyData[ch]->mdctSpectrum+w*windowLength[ch], in FDKaacEnc_psyMain()
891 psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
896 FDKaacEnc_CalcBandEnergyOptimLong(psyData[ch]->mdctSpectrum, in FDKaacEnc_psyMain()
899 psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
913 psyData[ch]->mdctSpectrum[line] >>= tnsSpecShift; in FDKaacEnc_psyMain()
916 for(sfb=0; sfb<psyData[ch]->sfbActive; sfb++) { in FDKaacEnc_psyMain()
921 …psyData[ch]->mdctScale += tnsSpecShift; /* update mdctScale; not necessary to update sfbMaxScaleS… in FDKaacEnc_psyMain()
939 INT energyShift = psyData[ch]->mdctScale*2 ; in FDKaacEnc_psyMain()
958 for (i=0; i<psyData[ch]->sfbActive; i++) { in FDKaacEnc_psyMain()
963 FDKaacEnc_SpreadingMax(psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
973 for (i=0; i<psyData[ch]->sfbActive;i++) { in FDKaacEnc_psyMain()
979 for (i=0; i<psyData[ch]->sfbActive;i++) { in FDKaacEnc_psyMain()
991 for (i=0; i<psyData[ch]->sfbActive;i++) { in FDKaacEnc_psyMain()
1001 psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
1005 psyData[ch]->mdctScale, in FDKaacEnc_psyMain()
1014 for (i=0; i<psyData[ch]->sfbActive;i++) { in FDKaacEnc_psyMain()
1025 …FDKmemcpy(pSfbSpreadEnergy[ch]+w*maxSfb[ch], pSfbEnergy[ch]+w*maxSfb[ch], psyData[ch]->sfbActive*s… in FDKaacEnc_psyMain()
1027 FDKaacEnc_SpreadingMax(psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
1038 FDKaacEnc_CalcBandNrgMSOpt(psyData[0]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
1039 psyData[1]->mdctSpectrum+wOffset, in FDKaacEnc_psyMain()
1043 psyData[0]->sfbActive, in FDKaacEnc_psyMain()
1047 psyData[0]->sfbEnergyMSLdData, in FDKaacEnc_psyMain()
1048 psyData[1]->sfbEnergyMSLdData); in FDKaacEnc_psyMain()
1061 FDKaacEnc_groupShortData( psyData[ch]->mdctSpectrum, in FDKaacEnc_psyMain()
1062 &psyData[ch]->sfbThreshold, in FDKaacEnc_psyMain()
1063 &psyData[ch]->sfbEnergy, in FDKaacEnc_psyMain()
1064 &psyData[ch]->sfbEnergyMS, in FDKaacEnc_psyMain()
1065 &psyData[ch]->sfbSpreadEnergy, in FDKaacEnc_psyMain()
1067 psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
1070 psyData[ch]->groupedSfbOffset, in FDKaacEnc_psyMain()
1080 …LdDataVector(&psyData[ch]->sfbEnergy.Long[sfbGrp], &psyOutChannel[ch]->sfbEnergyLdData[sfbGrp], ps… in FDKaacEnc_psyMain()
1085 …LdDataVector(&psyData[ch]->sfbThreshold.Long[sfbGrp], &psyOutChannel[ch]->sfbThresholdLdData[sfbGr… in FDKaacEnc_psyMain()
1086 for (sfb=0;sfb<psyData[ch]->sfbActive;sfb++) { in FDKaacEnc_psyMain()
1094 …LdDataVector(&psyData[ch]->sfbEnergyMS.Long[sfbGrp], &psyData[ch]->sfbEnergyMSLdData[sfbGrp], psyD… in FDKaacEnc_psyMain()
1098 …FDKmemcpy(psyOutChannel[ch]->sfbOffsets, psyData[ch]->groupedSfbOffset, (MAX_GROUPED_SFB+1)*sizeof… in FDKaacEnc_psyMain()
1102 for (sfb = psyData[ch]->sfbActive-1; sfb >= 0; sfb--) { in FDKaacEnc_psyMain()
1104 if (psyData[ch]->mdctSpectrum[line] != FL2FXCONST_SGL(0.0f)) break; in FDKaacEnc_psyMain()
1110 maxSfbPerGroup[ch] = fixMax(fixMin(5,psyData[ch]->sfbActive),maxSfbPerGroup[ch]); in FDKaacEnc_psyMain()
1113 …FDKmemcpy(psyOutChannel[ch]->sfbEnergyLdData, psyData[ch]->sfbEnergyLdData.Long, psyData[ch]->sfbA… in FDKaacEnc_psyMain()
1118 …FDKmemcpy(psyOutChannel[ch]->sfbMinSnrLdData, hPsyConfLong->sfbMinSnrLdData, psyData[ch]->sfbActiv… in FDKaacEnc_psyMain()
1123 …LdDataVector(psyData[ch]->sfbThreshold.Long, psyOutChannel[ch]->sfbThresholdLdData, psyData[ch]->s… in FDKaacEnc_psyMain()
1124 for (i=0;i<psyData[ch]->sfbActive;i++) { in FDKaacEnc_psyMain()
1152 psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
1156 psyData[ch]->mdctSpectrum, in FDKaacEnc_psyMain()
1157 psyData[ch]->sfbMaxScaleSpec.Long, in FDKaacEnc_psyMain()
1182 psyData[0]->sfbActive, in FDKaacEnc_psyMain()
1183 (&psyData[0]->sfbEnergy)->Long, in FDKaacEnc_psyMain()
1184 (&psyData[1]->sfbEnergy)->Long, in FDKaacEnc_psyMain()
1187 psyData[0]->sfbEnergyMS.Long, in FDKaacEnc_psyMain()
1193 psyData[0]->sfbEnergy.Long, in FDKaacEnc_psyMain()
1194 psyData[1]->sfbEnergy.Long, in FDKaacEnc_psyMain()
1195 psyData[0]->mdctSpectrum, in FDKaacEnc_psyMain()
1196 psyData[1]->mdctSpectrum, in FDKaacEnc_psyMain()
1197 psyData[0]->sfbThreshold.Long, in FDKaacEnc_psyMain()
1198 psyData[1]->sfbThreshold.Long, in FDKaacEnc_psyMain()
1200 psyData[0]->sfbSpreadEnergy.Long, in FDKaacEnc_psyMain()
1201 psyData[1]->sfbSpreadEnergy.Long, in FDKaacEnc_psyMain()
1216 psyData, in FDKaacEnc_psyMain()
1221 psyData[0]->sfbActive, in FDKaacEnc_psyMain()
1222 psyData[0]->sfbActive, in FDKaacEnc_psyMain()
1227 FDKaacEnc_PostProcessPnsChannelPair(psyData[0]->sfbActive, in FDKaacEnc_psyMain()
1236 psyData[0]->sfbEnergy.Long, in FDKaacEnc_psyMain()
1237 psyData[1]->sfbEnergy.Long, in FDKaacEnc_psyMain()
1238 psyData[0]->mdctSpectrum, in FDKaacEnc_psyMain()
1239 psyData[1]->mdctSpectrum, in FDKaacEnc_psyMain()
1240 psyData[0]->sfbThreshold.Long, in FDKaacEnc_psyMain()
1241 psyData[1]->sfbThreshold.Long, in FDKaacEnc_psyMain()
1243 psyData[0]->sfbSpreadEnergy.Long, in FDKaacEnc_psyMain()
1244 psyData[1]->sfbSpreadEnergy.Long, in FDKaacEnc_psyMain()
1252 psyData[0]->groupedSfbOffset, in FDKaacEnc_psyMain()
1259 FDKaacEnc_MsStereoProcessing( psyData, in FDKaacEnc_psyMain()
1277 for(sfb = 0; sfb < psyData[ch]->sfbActive; sfb++) { in FDKaacEnc_psyMain()
1282 FDKaacEnc_CodePnsChannel(psyData[ch]->sfbActive, in FDKaacEnc_psyMain()
1285 psyData[ch]->sfbEnergyLdData.Long, in FDKaacEnc_psyMain()
1299 psyOutChannel[ch]->mdctScale = psyData[ch]->mdctScale; in FDKaacEnc_psyMain()
1330 …FDKmemcpy(psyOutChannel[ch]->sfbEnergy,(&psyData[ch]->sfbEnergy)->Long, MAX_GROUPED_SFB*sizeof(FIX… in FDKaacEnc_psyMain()
1331 …FDKmemcpy(psyOutChannel[ch]->sfbSpreadEnergy,(&psyData[ch]->sfbSpreadEnergy)->Long, MAX_GROUPED_SF… in FDKaacEnc_psyMain()