Lines Matching refs:sbrConfigData
708 if (hSbrElement->sbrConfigData.v_k_master)
709 FreeRam_Sbr_v_k_master(&hSbrElement->sbrConfigData.v_k_master);
710 if (hSbrElement->sbrConfigData.freqBandTable[LO])
711 FreeRam_Sbr_freqBandTableLO(&hSbrElement->sbrConfigData.freqBandTable[LO]);
712 if (hSbrElement->sbrConfigData.freqBandTable[HI])
713 FreeRam_Sbr_freqBandTableHI(&hSbrElement->sbrConfigData.freqBandTable[HI]);
775 HANDLE_SBR_CONFIG_DATA sbrConfigData,
783 sbrConfigData->sampleFreq,
784 sbrConfigData->sampleFreq >> (downSampleFactor-1),
785 sbrConfigData->noQmfBands,
796 sbrConfigData->v_k_master,
797 &sbrConfigData->num_Master,
811 sbrConfigData->freqBandTable[HI],
812 &sbrConfigData->nSfb[HI],
813 sbrConfigData->v_k_master,
814 sbrConfigData->num_Master,
822 sbrConfigData->freqBandTable[LO],
823 &sbrConfigData->nSfb[LO],
824 sbrConfigData->freqBandTable[HI],
825 sbrConfigData->nSfb[HI]
829 sbrConfigData->xOverFreq = (sbrConfigData->freqBandTable[LOW_RES][0] * sbrConfigData->sampleFreq / sbrConfigData->noQmfBands+1)>>1;
844 static INT resetEnvChannel (HANDLE_SBR_CONFIG_DATA sbrConfigData,
853 sbrConfigData->xposCtrlSwitch,
854 sbrConfigData->freqBandTable[HI][0],
855 sbrConfigData->v_k_master,
856 sbrConfigData->num_Master,
857 sbrConfigData->sampleFreq,
858 sbrConfigData->freqBandTable,
859 sbrConfigData->nSfb,
860 sbrConfigData->noQmfBands))
866 hEnv->sbrCodeEnvelope.nSfb[LO] = sbrConfigData->nSfb[LO];
867 hEnv->sbrCodeEnvelope.nSfb[HI] = sbrConfigData->nSfb[HI];
869 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI];
892 UCHAR *RESTRICT pVKMaster = hEnv->sbrConfigData.v_k_master;
895 cutoffSb = (4*xoverFreq * hEnv->sbrConfigData.noQmfBands / hEnv->sbrConfigData.sampleFreq + 1)>>1;
897 for (band = 0; band < hEnv->sbrConfigData.num_Master; band++) {
909 return ((pVKMaster[band] * hEnv->sbrConfigData.sampleFreq/hEnv->sbrConfigData.noQmfBands+1)>>1);
989 if ( hSbrElement->sbrConfigData.dynXOverFreq != newXOver ) {
992 cutoffSb = ((4* newXOver * hSbrElement->sbrConfigData.noQmfBands
993 / hSbrElement->sbrConfigData.sampleFreq)+1)>>1;
995 for ( band = 0; band < hSbrElement->sbrConfigData.num_Master; band++ ) {
996 if ( cutoffSb == hSbrElement->sbrConfigData.v_k_master[band] )
999 FDK_ASSERT( band < hSbrElement->sbrConfigData.num_Master );
1001 hSbrElement->sbrConfigData.dynXOverFreq = newXOver;
1009 if(updateFreqBandTable(&hSbrElement->sbrConfigData,
1017 INT nEnvCh = hSbrElement->sbrConfigData.nChannels;
1019 if(resetEnvChannel (&hSbrElement->sbrConfigData,
1035 hSbrElement->sbrConfigData.sbrSyntaxFlags);
1060 for(ch = 0; ch < hSbrElement->sbrConfigData.nChannels; ch++)
1144 &hSbrElement->sbrConfigData,
1153 } /* hEnvEncoder->sbrConfigData.nChannels */
1160 &hSbrElement->sbrConfigData,
1175 FDKsbrEnc_AssembleSbrBitstream(&hSbrElement->CmonData, &crcInfo, crcReg, hSbrElement->sbrConfigData.sbrSyntaxFlags);
1199 int nChannels = hSbrElement->sbrConfigData.nChannels;
1207 hSbrElement->sbrConfigData.frameSize,
1265 initEnvChannel ( HANDLE_SBR_CONFIG_DATA sbrConfigData,
1290 hEnv->encEnvData.ldGrid = (sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) ? 1 : 0;
1299 sbrConfigData->switchTransposers = TRUE;
1303 sbrConfigData->switchTransposers = FALSE;
1319 startIndex = QMF_FILTER_PROTOTYPE_SIZE - sbrConfigData->noQmfBands;
1342 timeStep = sbrConfigData->noQmfSlots / timeSlots;
1346 sbrConfigData,
1377 tran_fc = (tran_fc*4*sbrConfigData->noQmfBands/sbrConfigData->sampleFreq + 1)>>1;
1379 if (sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) {
1393 sbrConfigData->noQmfSlots,
1394 sbrConfigData->noQmfBands, startIndex,
1399 ,sbrConfigData->sbrSyntaxFlags
1404 sbrConfigData->nSfb,
1416 sbrConfigData->initAmpResFF = params->init_amp_res_FF;
1434 if(sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY)
1436 INT bandwidth_qmf_slot = (sbrConfigData->sampleFreq>>1) / (sbrConfigData->noQmfBands);
1439 sbrConfigData->noQmfSlots,
1441 sbrConfigData->noQmfBands,
1442 sbrConfigData->freqBandTable[0][0]
1451 sbrConfigData->sbrSyntaxFlags,
1452 sbrConfigData->frameSize,
1453 sbrConfigData->sampleFreq,
1456 sbrConfigData->noQmfSlots,
1457 sbrConfigData->noQmfBands,
1466 sbrConfigData->xposCtrlSwitch = params->sbr_xpos_ctrl;
1468 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI];
1506 hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[LO] = GetRam_Sbr_freqBandTableLO(i);
1507 hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[HI] = GetRam_Sbr_freqBandTableHI(i);
1508 hSbrEncoder->sbrElement[i]->sbrConfigData.v_k_master = GetRam_Sbr_v_k_master(i);
1509 if ( (hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[LO]==NULL) ||
1510 (hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[HI]==NULL) ||
1511 (hSbrEncoder->sbrElement[i]->sbrConfigData.v_k_master==NULL) )
1648 hSbrElement->sbrConfigData.sbrSyntaxFlags = 0;
1652 hSbrElement->sbrConfigData.sbrSyntaxFlags |= SBR_SYNTAX_LOW_DELAY;
1658 hSbrElement->sbrConfigData.sbrSyntaxFlags |= SBR_SYNTAX_CRC;
1661 hSbrElement->sbrConfigData.noQmfBands = QMF_CHANNELS>>(2-params->downSampleFactor);
1662 switch (hSbrElement->sbrConfigData.noQmfBands)
1664 case 64: hSbrElement->sbrConfigData.noQmfSlots = params->sbrFrameSize>>6;
1666 case 32: hSbrElement->sbrConfigData.noQmfSlots = params->sbrFrameSize>>5;
1668 default: hSbrElement->sbrConfigData.noQmfSlots = params->sbrFrameSize>>6;
1675 now initialize sbrConfigData, sbrHeaderData and sbrBitstreamData,
1677 hSbrElement->sbrConfigData.nChannels = params->codecSettings.nChannels;
1680 hSbrElement->sbrConfigData.stereoMode = params->stereoMode;
1682 hSbrElement->sbrConfigData.stereoMode = SBR_MONO;
1684 hSbrElement->sbrConfigData.frameSize = params->sbrFrameSize;
1686 hSbrElement->sbrConfigData.sampleFreq = params->downSampleFactor * params->codecSettings.sampleFreq;
1693 hSbrElement->sbrBitstreamData.NrSendHeaderData = (INT)(params->SendHeaderDataTime * hSbrElement->sbrConfigData.sampleFreq
1694 / (1000 * hSbrElement->sbrConfigData.frameSize));
1699 hSbrElement->sbrBitstreamData.NrSendHeaderData = fixMin(fixMax(headerPeriod,1),(hSbrElement->sbrConfigData.sampleFreq/hSbrElement->sbrConfigData.frameSize));
1736 if ((hSbrElement->sbrConfigData.sampleFreq > 48000) &&
1755 hSbrElement->sbrConfigData.useWaveCoding = params->useWaveCoding;
1756 hSbrElement->sbrConfigData.useParametricCoding = params->parametricCoding;
1757 hSbrElement->sbrConfigData.thresholdAmpResFF_m = params->threshold_AmpRes_FF_m;
1758 hSbrElement->sbrConfigData.thresholdAmpResFF_e = params->threshold_AmpRes_FF_e;
1761 if(updateFreqBandTable(&hSbrElement->sbrConfigData,
1770 for ( ch = 0; ch < hSbrElement->sbrConfigData.nChannels; ch++ ) {
1772 if ( initEnvChannel(&hSbrElement->sbrConfigData,
1788 for ( ch = 0; ch < ((hSbrElement->elInfo.fParametricStereo)?2:hSbrElement->sbrConfigData.nChannels); ch++ )
1791 UINT qmfFlags = (hSbrElement->sbrConfigData.sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) ? QMF_FLAG_CLDFB : 0;
1799 hSbrElement->sbrConfigData.noQmfSlots,
1800 hSbrElement->sbrConfigData.noQmfBands,
1801 hSbrElement->sbrConfigData.noQmfBands,
1802 hSbrElement->sbrConfigData.noQmfBands,
1810 hSbrElement->CmonData.xOverFreq = hSbrElement->sbrConfigData.xOverFreq;
1815 hSbrElement->CmonData.sbrNumChannels = hSbrElement->sbrConfigData.nChannels;
1816 hSbrElement->sbrConfigData.dynXOverFreq = hSbrElement->CmonData.xOverFreq;
1854 hEnvEnc->sbrElement[el]->sbrConfigData.nChannels,
2242 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfSlots,
2243 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands>>1,
2244 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands>>1,
2245 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands>>1,
2254 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfSlots,
2255 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands