Lines Matching refs:hEnv

846                             HANDLE_ENV_CHANNEL      hEnv)  in resetEnvChannel()  argument
849 hEnv->TonCorr.sbrNoiseFloorEstimate.noiseBands = sbrHeaderData->sbr_noise_bands; in resetEnvChannel()
852 if(FDKsbrEnc_ResetTonCorrParamExtr(&hEnv->TonCorr, in resetEnvChannel()
863 hEnv->sbrCodeNoiseFloor.nSfb[LO] = hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; in resetEnvChannel()
864 hEnv->sbrCodeNoiseFloor.nSfb[HI] = hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; 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()
871 hEnv->sbrCodeEnvelope.upDate = 0; in resetEnvChannel()
872 hEnv->sbrCodeNoiseFloor.upDate = 0; in resetEnvChannel()
885 FDKsbrEnc_SbrGetXOverFreq(HANDLE_SBR_ELEMENT hEnv, /*!< handle to SBR encoder instance */ in FDKsbrEnc_SbrGetXOverFreq() argument
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()
1230 createEnvChannel (HANDLE_ENV_CHANNEL hEnv, in createEnvChannel() argument
1235 FDKmemclear(hEnv,sizeof (struct ENV_CHANNEL)); in createEnvChannel()
1237 if ( FDKsbrEnc_CreateTonCorrParamExtr(&hEnv->TonCorr, in createEnvChannel()
1243 if ( FDKsbrEnc_CreateExtractSbrEnvelope (&hEnv->sbrExtractEnvelope, in createEnvChannel()
1267 HANDLE_ENV_CHANNEL hEnv, in initEnvChannel() argument
1284 hEnv->encEnvData.freq_res_fixfix[0] = params->freq_res_fixfix[0]; in initEnvChannel()
1285 hEnv->encEnvData.freq_res_fixfix[1] = params->freq_res_fixfix[1]; in initEnvChannel()
1286 hEnv->encEnvData.fResTransIsLow = params->fResTransIsLow; in initEnvChannel()
1288 hEnv->fLevelProtect = 0; in initEnvChannel()
1290 hEnv->encEnvData.ldGrid = (sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) ? 1 : 0; in initEnvChannel()
1292 hEnv->encEnvData.sbr_xpos_mode = (XPOS_MODE)params->sbr_xpos_mode; in initEnvChannel()
1294 if (hEnv->encEnvData.sbr_xpos_mode == XPOS_SWITCHED) { in initEnvChannel()
1300 hEnv->encEnvData.sbr_xpos_mode = XPOS_MDCT; in initEnvChannel()
1306 hEnv->encEnvData.sbr_xpos_ctrl = params->sbr_xpos_ctrl; in initEnvChannel()
1311 hEnv->encEnvData.extended_data = 1; in initEnvChannel()
1314 hEnv->encEnvData.extended_data = 0; in initEnvChannel()
1317 hEnv->encEnvData.extension_size = 0; in initEnvChannel()
1345 &hEnv->TonCorr, in initEnvChannel()
1355 hEnv->encEnvData.noOfnoisebands = hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; in initEnvChannel()
1357 noiseBands[0] = hEnv->encEnvData.noOfnoisebands; in initEnvChannel()
1358 noiseBands[1] = hEnv->encEnvData.noOfnoisebands; in initEnvChannel()
1360 hEnv->encEnvData.sbr_invf_mode = (INVF_MODE)params->sbr_invf_mode; in initEnvChannel()
1362 if (hEnv->encEnvData.sbr_invf_mode == INVF_SWITCHED) { in initEnvChannel()
1363 hEnv->encEnvData.sbr_invf_mode = INVF_MID_LEVEL; in initEnvChannel()
1364 hEnv->TonCorr.switchInverseFilt = TRUE; in initEnvChannel()
1367 hEnv->TonCorr.switchInverseFilt = FALSE; in initEnvChannel()
1392 if ( FDKsbrEnc_InitExtractSbrEnvelope (&hEnv->sbrExtractEnvelope, in initEnvChannel()
1403 if(FDKsbrEnc_InitSbrCodeEnvelope (&hEnv->sbrCodeEnvelope, in initEnvChannel()
1410 if(FDKsbrEnc_InitSbrCodeEnvelope (&hEnv->sbrCodeNoiseFloor, in initEnvChannel()
1418 if(FDKsbrEnc_InitSbrHuffmanTables (&hEnv->encEnvData, in initEnvChannel()
1419 &hEnv->sbrCodeEnvelope, in initEnvChannel()
1420 &hEnv->sbrCodeNoiseFloor, in initEnvChannel()
1424 FDKsbrEnc_initFrameInfoGenerator (&hEnv->SbrEnvFrame, in initEnvChannel()
1429 hEnv->encEnvData.freq_res_fixfix, in initEnvChannel()
1430 hEnv->encEnvData.fResTransIsLow, in initEnvChannel()
1431 hEnv->encEnvData.ldGrid in initEnvChannel()
1438 &hEnv->sbrFastTransientDetector, in initEnvChannel()
1450 if(FDKsbrEnc_InitSbrTransientDetector (&hEnv->sbrTransientDetector, in initEnvChannel()
1458 hEnv->sbrExtractEnvelope.YBufferWriteOffset, in initEnvChannel()
1459 hEnv->sbrExtractEnvelope.YBufferSzShift, in initEnvChannel()
1468 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI]; in initEnvChannel()
1469 hEnv->encEnvData.addHarmonicFlag = 0; in initEnvChannel()