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