Lines Matching refs:sbrConfigData

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