Home | History | Annotate | Download | only in src

Lines Matching refs:psyData

465     PSY_DATA           *RESTRICT psyData[(2)];
497 psyData[ch] = &psyDynamic->psyData[ch];
501 psyData[ch]->mdctSpectrum = psyOutChannel[ch]->mdctSpectrum;
569 pSfbMaxScaleSpec[ch] = psyData[ch]->sfbMaxScaleSpec.Short[0];
570 pSfbEnergy[ch] = psyData[ch]->sfbEnergy.Short[0];
571 pSfbSpreadEnergy[ch] = psyData[ch]->sfbSpreadEnergy.Short[0];
572 pSfbEnergyLdData[ch] = psyData[ch]->sfbEnergyLdData.Short[0];
573 pSfbEnergyMS[ch] = psyData[ch]->sfbEnergyMS.Short[0];
574 pSfbThreshold[ch] = psyData[ch]->sfbThreshold.Short[0];
583 pSfbMaxScaleSpec[ch] = psyData[ch]->sfbMaxScaleSpec.Long;
584 pSfbEnergy[ch] = psyData[ch]->sfbEnergy.Long;
585 pSfbSpreadEnergy[ch] = psyData[ch]->sfbSpreadEnergy.Long;
586 pSfbEnergyLdData[ch] = psyData[ch]->sfbEnergyLdData.Long;
587 pSfbEnergyMS[ch] = psyData[ch]->sfbEnergyMS.Long;
588 pSfbThreshold[ch] = psyData[ch]->sfbThreshold.Long;
597 psyData[ch]->sfbActive = hThisPsyConf[ch]->sfbActiveLFE;
598 psyData[ch]->lowpassLine = hThisPsyConf[ch]->lowpassLineLFE;
601 psyData[ch]->sfbActive = hThisPsyConf[ch]->sfbActive;
602 psyData[ch]->lowpassLine = hThisPsyConf[ch]->lowpassLine;
610 psyData[ch]->mdctSpectrum+wOffset,
621 FDKmemclear(&psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset],
622 (windowLength[ch]-psyData[ch]->lowpassLine)*sizeof(FIXP_DBL));
627 psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset - FADE_OUT_LEN + i] = fMult(psyData[ch]->mdctSpectrum[psyData[ch]->lowpassLine+wOffset - FADE_OUT_LEN + i], fadeOutFactor[i]);
633 for(line=0; (line<psyData[ch]->lowpassLine) && (zeroSpec==TRUE); line++) {
634 if (psyData[ch]->mdctSpectrum[line+wOffset] != (FIXP_DBL)0) {
642 psyData[ch]->mdctScale = mdctSpectrum_e;
671 FDKaacEnc_CalcSfbMaxScaleSpec(psyData[ch]->mdctSpectrum+wOffset,
674 psyData[ch]->sfbActive);
676 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++)
686 currNrg = FDKaacEnc_CheckBandEnergyOptim(psyData[ch]->mdctSpectrum+wOffset,
689 psyData[ch]->sfbActive,
711 if (finalShift > psyData[0]->mdctScale + 3 )
712 finalShift = psyData[0]->mdctScale + 3;
720 for(sfb=0; sfb<psyData[ch]->sfbActive; sfb++) {
735 for(line=0; line<psyData[ch]->lowpassLine; line++) {
736 psyData[ch]->mdctSpectrum[line+wOffset] <<= finalShift;
739 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++)
743 psyData[ch]->mdctScale -= finalShift;
750 psyData[ch]->mdctScale = 0; /* otherwise mdctScale would be for example 7 and PCM quantization thresholds would be shifted
754 for (sfb = 0; sfb<psyData[ch]->sfbActive; sfb++) {
774 FDKaacEnc_CalculateFullTonality( psyData[ch]->mdctSpectrum,
778 psyData[ch]->sfbActive,
799 psyData[ch]->mdctSpectrum+wOffset,
835 psyData[ch]->mdctSpectrum[sfb] = psyData[ch]->mdctSpectrum[sfb] >> shift;
839 for (sfb=0; sfb<psyData[ch]->sfbActive; sfb++) {
843 psyData[ch]->mdctScale += shift; /* update mdctScale */
859 hThisPsyConf[ch]->sfbOffset[psyData[ch]->sfbActive],/*hThisPsyConf[ch]->lowpassLine*/ /* filter stops before that line ! */
860 psyData[ch]->mdctSpectrum+wOffset,
867 FDKaacEnc_CalcSfbMaxScaleSpec(psyData[ch]->mdctSpectrum+wOffset,
870 psyData[ch]->sfbActive);
881 FDKaacEnc_CalcBandEnergyOptimShort(psyData[ch]->mdctSpectrum+w*windowLength[ch],
884 psyData[ch]->sfbActive,
889 FDKaacEnc_CalcBandEnergyOptimLong(psyData[ch]->mdctSpectrum,
892 psyData[ch]->sfbActive,
906 psyData[ch]->mdctSpectrum[line] >>= tnsSpecShift;
909 for(sfb=0; sfb<psyData[ch]->sfbActive; sfb++) {
914 psyData[ch]->mdctScale += tnsSpecShift; /* update mdctScale; not necessary to update sfbMaxScaleSpec */
932 INT energyShift = psyData[ch]->mdctScale*2 ;
951 for (i=0; i<psyData[ch]->sfbActive; i++) {
956 FDKaacEnc_SpreadingMax(psyData[ch]->sfbActive,
966 for (i=0; i<psyData[ch]->sfbActive;i++) {
972 for (i=0; i<psyData[ch]->sfbActive;i++) {
984 for (i=0; i<psyData[ch]->sfbActive;i++) {
994 psyData[ch]->sfbActive,
998 psyData[ch]->mdctScale,
1007 for (i=0; i<psyData[ch]->sfbActive;i++) {
1018 FDKmemcpy(pSfbSpreadEnergy[ch]+w*maxSfb[ch], pSfbEnergy[ch]+w*maxSfb[ch], psyData[ch]->sfbActive*sizeof(FIXP_DBL));
1020 FDKaacEnc_SpreadingMax(psyData[ch]->sfbActive,
1031 FDKaacEnc_CalcBandNrgMSOpt(psyData[0]->mdctSpectrum+wOffset,
1032 psyData[1]->mdctSpectrum+wOffset,
1036 psyData[0]->sfbActive,
1040 psyData[0]->sfbEnergyMSLdData,
1041 psyData[1]->sfbEnergyMSLdData);
1054 FDKaacEnc_groupShortData( psyData[ch]->mdctSpectrum,
1055 &psyData[ch]->sfbThreshold,
1056 &psyData[ch]->sfbEnergy,
1057 &psyData[ch]->sfbEnergyMS,
1058 &psyData[ch]->sfbSpreadEnergy,
1060 psyData[ch]->sfbActive,
1063 psyData[ch]->groupedSfbOffset,
1073 LdDataVector(&psyData[ch]->sfbEnergy.Long[sfbGrp], &psyOutChannel[ch]->sfbEnergyLdData[sfbGrp], psyData[ch]->sfbActive);
1078 LdDataVector(&psyData[ch]->sfbThreshold.Long[sfbGrp], &psyOutChannel[ch]->sfbThresholdLdData[sfbGrp], psyData[ch]->sfbActive);
1079 for (sfb=0;sfb<psyData[ch]->sfbActive;sfb++) {
1087 LdDataVector(&psyData[ch]->sfbEnergyMS.Long[sfbGrp], &psyData[ch]->sfbEnergyMSLdData[sfbGrp], psyData[ch]->sfbActive);
1091 FDKmemcpy(psyOutChannel[ch]->sfbOffsets, psyData[ch]->groupedSfbOffset, (MAX_GROUPED_SFB+1)*sizeof(INT));
1095 for (sfb = psyData[ch]->sfbActive-1; sfb >= 0; sfb--) {
1097 if (psyData[ch]->mdctSpectrum[line] != FL2FXCONST_SGL(0.0f)) break;
1103 maxSfbPerGroup[ch] = fixMax(fixMin(5,psyData[ch]->sfbActive),maxSfbPerGroup[ch]);
1106 FDKmemcpy(psyOutChannel[ch]->sfbEnergyLdData, psyData[ch]->sfbEnergyLdData.Long, psyData[ch]->sfbActive*sizeof(FIXP_DBL));
1111 FDKmemcpy(psyOutChannel[ch]->sfbMinSnrLdData, hPsyConfLong->sfbMinSnrLdData, psyData[ch]->sfbActive*sizeof(FIXP_DBL));
1116 LdDataVector(psyData[ch]->sfbThreshold.Long, psyOutChannel[ch]->sfbThresholdLdData, psyData[ch]->sfbActive);
1117 for (i=0;i<psyData[ch]->sfbActive;i++) {
1145 psyData[ch]->sfbActive,
1149 psyData[ch]->mdctSpectrum,
1150 psyData[ch]->sfbMaxScaleSpec.Long,
1175 psyData[0]->sfbActive,
1176 (&psyData[0]->sfbEnergy)->Long,
1177 (&psyData[1]->sfbEnergy)->Long,
1180 psyData[0]->sfbEnergyMS.Long,
1186 psyData[0]->sfbEnergy.Long,
1187 psyData[1]->sfbEnergy.Long,
1188 psyData[0]->mdctSpectrum,
1189 psyData[1]->mdctSpectrum,
1190 psyData[0]->sfbThreshold.Long,
1191 psyData[1]->sfbThreshold.Long,
1193 psyData[0]->sfbSpreadEnergy.Long,
1194 psyData[1]->sfbSpreadEnergy.Long,
1209 psyData,
1214 psyData[0]->sfbActive,
1215 psyData[0]->sfbActive,
1220 FDKaacEnc_PostProcessPnsChannelPair(psyData[0]->sfbActive,
1229 psyData[0]->sfbEnergy.Long,
1230 psyData[1]->sfbEnergy.Long,
1231 psyData[0]->mdctSpectrum,
1232 psyData[1]->mdctSpectrum,
1233 psyData[0]->sfbThreshold.Long,
1234 psyData[1]->sfbThreshold.Long,
1236 psyData[0]->sfbSpreadEnergy.Long,
1237 psyData[1]->sfbSpreadEnergy.Long,
1245 psyData[0]->groupedSfbOffset,
1252 FDKaacEnc_MsStereoProcessing( psyData,
1270 for(sfb = 0; sfb < psyData[ch]->sfbActive; sfb++) {
1275 FDKaacEnc_CodePnsChannel(psyData[ch]->sfbActive,
1278 psyData[ch]->sfbEnergyLdData.Long,
1292 psyOutChannel[ch]->mdctScale = psyData[ch]->mdctScale;
1323 FDKmemcpy(psyOutChannel[ch]->sfbEnergy,(&psyData[ch]->sfbEnergy)->Long, MAX_GROUPED_SFB*sizeof(FIXP_DBL));
1324 FDKmemcpy(psyOutChannel[ch]->sfbSpreadEnergy,(&psyData[ch]->sfbSpreadEnergy)->Long, MAX_GROUPED_SFB*sizeof(FIXP_DBL));
1325 // FDKmemcpy(psyOutChannel[ch]->mdctSpectrum, psyData[ch]->mdctSpectrum, (1024)*sizeof(FIXP_DBL));