Lines Matching refs:hEnv
861 HANDLE_ENV_CHANNEL hEnv) { in resetEnvChannel() argument
864 hEnv->TonCorr.sbrNoiseFloorEstimate.noiseBands = in resetEnvChannel()
868 &hEnv->TonCorr, sbrConfigData->xposCtrlSwitch, in resetEnvChannel()
875 hEnv->sbrCodeNoiseFloor.nSfb[LO] = in resetEnvChannel()
876 hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; in resetEnvChannel()
877 hEnv->sbrCodeNoiseFloor.nSfb[HI] = in resetEnvChannel()
878 hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; 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()
885 hEnv->sbrCodeEnvelope.upDate = 0; in resetEnvChannel()
886 hEnv->sbrCodeNoiseFloor.upDate = 0; in resetEnvChannel()
900 HANDLE_SBR_ELEMENT hEnv, /*!< handle to SBR encoder instance */ in FDKsbrEnc_SbrGetXOverFreq() argument
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()
1287 static INT createEnvChannel(HANDLE_ENV_CHANNEL hEnv, INT channel, in createEnvChannel() argument
1289 FDKmemclear(hEnv, sizeof(struct ENV_CHANNEL)); in createEnvChannel()
1291 if (FDKsbrEnc_CreateTonCorrParamExtr(&hEnv->TonCorr, channel)) { in createEnvChannel()
1295 if (FDKsbrEnc_CreateExtractSbrEnvelope(&hEnv->sbrExtractEnvelope, channel, in createEnvChannel()
1314 HANDLE_ENV_CHANNEL hEnv, sbrConfigurationPtr params, in initEnvChannel() argument
1327 hEnv->encEnvData.freq_res_fixfix[0] = params->freq_res_fixfix[0]; in initEnvChannel()
1328 hEnv->encEnvData.freq_res_fixfix[1] = params->freq_res_fixfix[1]; in initEnvChannel()
1329 hEnv->encEnvData.fResTransIsLow = params->fResTransIsLow; in initEnvChannel()
1331 hEnv->fLevelProtect = 0; in initEnvChannel()
1333 hEnv->encEnvData.ldGrid = in initEnvChannel()
1336 hEnv->encEnvData.sbr_xpos_mode = (XPOS_MODE)params->sbr_xpos_mode; in initEnvChannel()
1338 if (hEnv->encEnvData.sbr_xpos_mode == XPOS_SWITCHED) { in initEnvChannel()
1344 hEnv->encEnvData.sbr_xpos_mode = XPOS_MDCT; in initEnvChannel()
1349 hEnv->encEnvData.sbr_xpos_ctrl = params->sbr_xpos_ctrl; in initEnvChannel()
1353 hEnv->encEnvData.extended_data = 1; in initEnvChannel()
1355 hEnv->encEnvData.extended_data = 0; in initEnvChannel()
1358 hEnv->encEnvData.extension_size = 0; in initEnvChannel()
1386 params->sbrFrameSize, &hEnv->TonCorr, sbrConfigData, timeSlots, in initEnvChannel()
1392 hEnv->encEnvData.noOfnoisebands = in initEnvChannel()
1393 hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; in initEnvChannel()
1395 noiseBands[0] = hEnv->encEnvData.noOfnoisebands; in initEnvChannel()
1396 noiseBands[1] = hEnv->encEnvData.noOfnoisebands; in initEnvChannel()
1398 hEnv->encEnvData.sbr_invf_mode = (INVF_MODE)params->sbr_invf_mode; in initEnvChannel()
1400 if (hEnv->encEnvData.sbr_invf_mode == INVF_SWITCHED) { in initEnvChannel()
1401 hEnv->encEnvData.sbr_invf_mode = INVF_MID_LEVEL; in initEnvChannel()
1402 hEnv->TonCorr.switchInverseFilt = TRUE; in initEnvChannel()
1404 hEnv->TonCorr.switchInverseFilt = FALSE; in initEnvChannel()
1438 &hEnv->sbrExtractEnvelope, sbrConfigData->noQmfSlots, in initEnvChannel()
1443 if (FDKsbrEnc_InitSbrCodeEnvelope(&hEnv->sbrCodeEnvelope, sbrConfigData->nSfb, in initEnvChannel()
1449 if (FDKsbrEnc_InitSbrCodeEnvelope(&hEnv->sbrCodeNoiseFloor, noiseBands, in initEnvChannel()
1455 if (FDKsbrEnc_InitSbrHuffmanTables(&hEnv->encEnvData, &hEnv->sbrCodeEnvelope, in initEnvChannel()
1456 &hEnv->sbrCodeNoiseFloor, in initEnvChannel()
1461 &hEnv->SbrEnvFrame, params->spread, e, params->stat, timeSlots, in initEnvChannel()
1462 hEnv->encEnvData.freq_res_fixfix, hEnv->encEnvData.fResTransIsLow, in initEnvChannel()
1463 hEnv->encEnvData.ldGrid); in initEnvChannel()
1471 &hEnv->sbrFastTransientDetector, sbrConfigData->noQmfSlots, in initEnvChannel()
1481 &hEnv->sbrTransientDetector, sbrConfigData->sbrSyntaxFlags, in initEnvChannel()
1484 hEnv->sbrExtractEnvelope.YBufferWriteOffset, in initEnvChannel()
1485 hEnv->sbrExtractEnvelope.YBufferSzShift, frameShift, tran_off)) in initEnvChannel()
1490 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI]; in initEnvChannel()
1491 hEnv->encEnvData.addHarmonicFlag = 0; in initEnvChannel()