• Home
  • Raw
  • Download

Lines Matching refs:sbrConfigData

751     if (hSbrElement->sbrConfigData.v_k_master)  in sbrEncoder_ElementClose()
752 FreeRam_Sbr_v_k_master(&hSbrElement->sbrConfigData.v_k_master); in sbrEncoder_ElementClose()
753 if (hSbrElement->sbrConfigData.freqBandTable[LO]) in sbrEncoder_ElementClose()
755 &hSbrElement->sbrConfigData.freqBandTable[LO]); in sbrEncoder_ElementClose()
756 if (hSbrElement->sbrConfigData.freqBandTable[HI]) in sbrEncoder_ElementClose()
758 &hSbrElement->sbrConfigData.freqBandTable[HI]); in sbrEncoder_ElementClose()
812 static INT updateFreqBandTable(HANDLE_SBR_CONFIG_DATA sbrConfigData, in updateFreqBandTable() argument
818 sbrConfigData->sampleFreq, in updateFreqBandTable()
819 sbrConfigData->sampleFreq >> (downSampleFactor - 1), in updateFreqBandTable()
820 sbrConfigData->noQmfBands, sbrHeaderData->sbr_start_frequency, in updateFreqBandTable()
825 sbrConfigData->v_k_master, &sbrConfigData->num_Master, k0, k2, in updateFreqBandTable()
831 if (FDKsbrEnc_UpdateHiRes(sbrConfigData->freqBandTable[HI], in updateFreqBandTable()
832 &sbrConfigData->nSfb[HI], sbrConfigData->v_k_master, in updateFreqBandTable()
833 sbrConfigData->num_Master, in updateFreqBandTable()
838 sbrConfigData->freqBandTable[LO], &sbrConfigData->nSfb[LO], in updateFreqBandTable()
839 sbrConfigData->freqBandTable[HI], sbrConfigData->nSfb[HI]); in updateFreqBandTable()
841 sbrConfigData->xOverFreq = in updateFreqBandTable()
842 (sbrConfigData->freqBandTable[LOW_RES][0] * sbrConfigData->sampleFreq / in updateFreqBandTable()
843 sbrConfigData->noQmfBands + in updateFreqBandTable()
859 static INT resetEnvChannel(HANDLE_SBR_CONFIG_DATA sbrConfigData, in resetEnvChannel() argument
868 &hEnv->TonCorr, sbrConfigData->xposCtrlSwitch, in resetEnvChannel()
869 sbrConfigData->freqBandTable[HI][0], sbrConfigData->v_k_master, in resetEnvChannel()
870 sbrConfigData->num_Master, sbrConfigData->sampleFreq, in resetEnvChannel()
871 sbrConfigData->freqBandTable, sbrConfigData->nSfb, in resetEnvChannel()
872 sbrConfigData->noQmfBands)) in resetEnvChannel()
880 hEnv->sbrCodeEnvelope.nSfb[LO] = sbrConfigData->nSfb[LO]; in resetEnvChannel()
881 hEnv->sbrCodeEnvelope.nSfb[HI] = sbrConfigData->nSfb[HI]; in resetEnvChannel()
883 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI]; in resetEnvChannel()
907 UCHAR *RESTRICT pVKMaster = hEnv->sbrConfigData.v_k_master; in FDKsbrEnc_SbrGetXOverFreq()
910 cutoffSb = (4 * xoverFreq * hEnv->sbrConfigData.noQmfBands / in FDKsbrEnc_SbrGetXOverFreq()
911 hEnv->sbrConfigData.sampleFreq + in FDKsbrEnc_SbrGetXOverFreq()
915 for (band = 0; band < hEnv->sbrConfigData.num_Master; band++) { in FDKsbrEnc_SbrGetXOverFreq()
926 return ((pVKMaster[band] * hEnv->sbrConfigData.sampleFreq / in FDKsbrEnc_SbrGetXOverFreq()
927 hEnv->sbrConfigData.noQmfBands + in FDKsbrEnc_SbrGetXOverFreq()
1004 if (hSbrElement->sbrConfigData.dynXOverFreq != newXOver) { in FDKsbrEnc_EnvEncodeFrame()
1006 cutoffSb = ((4 * newXOver * hSbrElement->sbrConfigData.noQmfBands / in FDKsbrEnc_EnvEncodeFrame()
1007 hSbrElement->sbrConfigData.sampleFreq) + in FDKsbrEnc_EnvEncodeFrame()
1011 for (band = 0; band < hSbrElement->sbrConfigData.num_Master; band++) { in FDKsbrEnc_EnvEncodeFrame()
1012 if (cutoffSb == hSbrElement->sbrConfigData.v_k_master[band]) break; in FDKsbrEnc_EnvEncodeFrame()
1014 FDK_ASSERT(band < hSbrElement->sbrConfigData.num_Master); in FDKsbrEnc_EnvEncodeFrame()
1016 hSbrElement->sbrConfigData.dynXOverFreq = newXOver; in FDKsbrEnc_EnvEncodeFrame()
1024 if (updateFreqBandTable(&hSbrElement->sbrConfigData, in FDKsbrEnc_EnvEncodeFrame()
1030 INT nEnvCh = hSbrElement->sbrConfigData.nChannels; in FDKsbrEnc_EnvEncodeFrame()
1032 if (resetEnvChannel(&hSbrElement->sbrConfigData, in FDKsbrEnc_EnvEncodeFrame()
1047 hSbrElement->sbrConfigData.sbrSyntaxFlags); in FDKsbrEnc_EnvEncodeFrame()
1069 for (ch = 0; ch < hSbrElement->sbrConfigData.nChannels; ch++) { in FDKsbrEnc_EnvEncodeFrame()
1135 FDKsbrEnc_extractSbrEnvelope1(&hSbrElement->sbrConfigData, in FDKsbrEnc_EnvEncodeFrame()
1148 &hSbrElement->sbrConfigData, &hSbrElement->sbrHeaderData, in FDKsbrEnc_EnvEncodeFrame()
1152 (hSbrElement->sbrConfigData.stereoMode != SBR_MONO) in FDKsbrEnc_EnvEncodeFrame()
1163 hSbrElement->sbrConfigData.sbrSyntaxFlags); in FDKsbrEnc_EnvEncodeFrame()
1225 int nChannels = hSbrElement->sbrConfigData.nChannels; in FDKsbrEnc_Downsample()
1233 hSbrElement->sbrConfigData.frameSize, in FDKsbrEnc_Downsample()
1312 static INT initEnvChannel(HANDLE_SBR_CONFIG_DATA sbrConfigData, in initEnvChannel() argument
1334 (sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) ? 1 : 0; in initEnvChannel()
1343 sbrConfigData->switchTransposers = TRUE; in initEnvChannel()
1346 sbrConfigData->switchTransposers = FALSE; in initEnvChannel()
1360 startIndex = QMF_FILTER_PROTOTYPE_SIZE - sbrConfigData->noQmfBands; in initEnvChannel()
1383 timeStep = sbrConfigData->noQmfSlots / timeSlots; in initEnvChannel()
1386 params->sbrFrameSize, &hEnv->TonCorr, sbrConfigData, timeSlots, in initEnvChannel()
1416 (tran_fc * 4 * sbrConfigData->noQmfBands / sbrConfigData->sampleFreq + in initEnvChannel()
1420 if (sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) { in initEnvChannel()
1438 &hEnv->sbrExtractEnvelope, sbrConfigData->noQmfSlots, in initEnvChannel()
1439 sbrConfigData->noQmfBands, startIndex, timeSlots, timeStep, tran_off, in initEnvChannel()
1440 statesInitFlag, chanInEl, dynamic_RAM, sbrConfigData->sbrSyntaxFlags)) in initEnvChannel()
1443 if (FDKsbrEnc_InitSbrCodeEnvelope(&hEnv->sbrCodeEnvelope, sbrConfigData->nSfb, in initEnvChannel()
1453 sbrConfigData->initAmpResFF = params->init_amp_res_FF; in initEnvChannel()
1465 if (sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) in initEnvChannel()
1469 (sbrConfigData->sampleFreq >> 1) / (sbrConfigData->noQmfBands); in initEnvChannel()
1471 &hEnv->sbrFastTransientDetector, sbrConfigData->noQmfSlots, in initEnvChannel()
1472 bandwidth_qmf_slot, sbrConfigData->noQmfBands, in initEnvChannel()
1473 sbrConfigData->freqBandTable[0][0])) in initEnvChannel()
1481 &hEnv->sbrTransientDetector, sbrConfigData->sbrSyntaxFlags, in initEnvChannel()
1482 sbrConfigData->frameSize, sbrConfigData->sampleFreq, params, tran_fc, in initEnvChannel()
1483 sbrConfigData->noQmfSlots, sbrConfigData->noQmfBands, in initEnvChannel()
1488 sbrConfigData->xposCtrlSwitch = params->sbr_xpos_ctrl; in initEnvChannel()
1490 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI]; in initEnvChannel()
1525 hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[LO] = in sbrEncoder_Open()
1527 hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[HI] = in sbrEncoder_Open()
1529 hSbrEncoder->sbrElement[i]->sbrConfigData.v_k_master = in sbrEncoder_Open()
1531 if ((hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[LO] == NULL) || in sbrEncoder_Open()
1532 (hSbrEncoder->sbrElement[i]->sbrConfigData.freqBandTable[HI] == NULL) || in sbrEncoder_Open()
1533 (hSbrEncoder->sbrElement[i]->sbrConfigData.v_k_master == NULL)) { in sbrEncoder_Open()
1674 hSbrElement->sbrConfigData.sbrSyntaxFlags = 0; in FDKsbrEnc_EnvInit()
1678 hSbrElement->sbrConfigData.sbrSyntaxFlags |= SBR_SYNTAX_LOW_DELAY; in FDKsbrEnc_EnvInit()
1684 hSbrElement->sbrConfigData.sbrSyntaxFlags |= SBR_SYNTAX_CRC; in FDKsbrEnc_EnvInit()
1687 hSbrElement->sbrConfigData.noQmfBands = 64 >> (2 - params->downSampleFactor); in FDKsbrEnc_EnvInit()
1688 switch (hSbrElement->sbrConfigData.noQmfBands) { in FDKsbrEnc_EnvInit()
1690 hSbrElement->sbrConfigData.noQmfSlots = params->sbrFrameSize >> 6; in FDKsbrEnc_EnvInit()
1693 hSbrElement->sbrConfigData.noQmfSlots = params->sbrFrameSize >> 5; in FDKsbrEnc_EnvInit()
1696 hSbrElement->sbrConfigData.noQmfSlots = params->sbrFrameSize >> 6; in FDKsbrEnc_EnvInit()
1703 hSbrElement->sbrConfigData.nChannels = params->codecSettings.nChannels; in FDKsbrEnc_EnvInit()
1708 hSbrElement->sbrConfigData.stereoMode = SBR_LEFT_RIGHT; in FDKsbrEnc_EnvInit()
1710 hSbrElement->sbrConfigData.stereoMode = params->stereoMode; in FDKsbrEnc_EnvInit()
1713 hSbrElement->sbrConfigData.stereoMode = SBR_MONO; in FDKsbrEnc_EnvInit()
1716 hSbrElement->sbrConfigData.frameSize = params->sbrFrameSize; in FDKsbrEnc_EnvInit()
1718 hSbrElement->sbrConfigData.sampleFreq = in FDKsbrEnc_EnvInit()
1725 params->SendHeaderDataTime * hSbrElement->sbrConfigData.sampleFreq / in FDKsbrEnc_EnvInit()
1726 (1000 * hSbrElement->sbrConfigData.frameSize)); in FDKsbrEnc_EnvInit()
1732 fixMax(headerPeriod, 1), (hSbrElement->sbrConfigData.sampleFreq / in FDKsbrEnc_EnvInit()
1733 hSbrElement->sbrConfigData.frameSize)); in FDKsbrEnc_EnvInit()
1769 if ((hSbrElement->sbrConfigData.sampleFreq > 48000) && in FDKsbrEnc_EnvInit()
1787 hSbrElement->sbrConfigData.useWaveCoding = params->useWaveCoding; in FDKsbrEnc_EnvInit()
1788 hSbrElement->sbrConfigData.useParametricCoding = params->parametricCoding; in FDKsbrEnc_EnvInit()
1789 hSbrElement->sbrConfigData.thresholdAmpResFF_m = in FDKsbrEnc_EnvInit()
1791 hSbrElement->sbrConfigData.thresholdAmpResFF_e = in FDKsbrEnc_EnvInit()
1795 if (updateFreqBandTable(&hSbrElement->sbrConfigData, in FDKsbrEnc_EnvInit()
1802 for (ch = 0; ch < hSbrElement->sbrConfigData.nChannels; ch++) { in FDKsbrEnc_EnvInit()
1803 if (initEnvChannel(&hSbrElement->sbrConfigData, &hSbrElement->sbrHeaderData, in FDKsbrEnc_EnvInit()
1814 : hSbrElement->sbrConfigData.nChannels); in FDKsbrEnc_EnvInit()
1818 (hSbrElement->sbrConfigData.sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) in FDKsbrEnc_EnvInit()
1829 hSbrElement->sbrConfigData.noQmfSlots, in FDKsbrEnc_EnvInit()
1830 hSbrElement->sbrConfigData.noQmfBands, in FDKsbrEnc_EnvInit()
1831 hSbrElement->sbrConfigData.noQmfBands, in FDKsbrEnc_EnvInit()
1832 hSbrElement->sbrConfigData.noQmfBands, qmfFlags); in FDKsbrEnc_EnvInit()
1839 hSbrElement->CmonData.xOverFreq = hSbrElement->sbrConfigData.xOverFreq; in FDKsbrEnc_EnvInit()
1846 hSbrElement->CmonData.sbrNumChannels = hSbrElement->sbrConfigData.nChannels; in FDKsbrEnc_EnvInit()
1847 hSbrElement->sbrConfigData.dynXOverFreq = hSbrElement->CmonData.xOverFreq; in FDKsbrEnc_EnvInit()
2331 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfSlots, in sbrEncoder_Init()
2332 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands >> 1, in sbrEncoder_Init()
2333 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands >> 1, in sbrEncoder_Init()
2334 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands >> 1, in sbrEncoder_Init()
2346 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfSlots, in sbrEncoder_Init()
2347 hSbrEncoder->sbrElement[0]->sbrConfigData.noQmfBands, in sbrEncoder_Init()