Lines Matching refs:hEnv
772 HANDLE_ENV_CHANNEL hEnv) in resetEnvChannel() argument
775 hEnv->TonCorr.sbrNoiseFloorEstimate.noiseBands = sbrHeaderData->sbr_noise_bands; in resetEnvChannel()
778 if(FDKsbrEnc_ResetTonCorrParamExtr(&hEnv->TonCorr, in resetEnvChannel()
789 hEnv->sbrCodeNoiseFloor.nSfb[LO] = hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; in resetEnvChannel()
790 hEnv->sbrCodeNoiseFloor.nSfb[HI] = hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; in resetEnvChannel()
792 hEnv->sbrCodeEnvelope.nSfb[LO] = sbrConfigData->nSfb[LO]; in resetEnvChannel()
793 hEnv->sbrCodeEnvelope.nSfb[HI] = sbrConfigData->nSfb[HI]; in resetEnvChannel()
795 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI]; in resetEnvChannel()
797 hEnv->sbrCodeEnvelope.upDate = 0; in resetEnvChannel()
798 hEnv->sbrCodeNoiseFloor.upDate = 0; in resetEnvChannel()
811 FDKsbrEnc_SbrGetXOverFreq(HANDLE_SBR_ELEMENT hEnv, /*!< handle to SBR encoder instance */ in FDKsbrEnc_SbrGetXOverFreq() argument
818 UCHAR *RESTRICT pVKMaster = hEnv->sbrConfigData.v_k_master; in FDKsbrEnc_SbrGetXOverFreq()
821 cutoffSb = (4*xoverFreq * hEnv->sbrConfigData.noQmfBands / hEnv->sbrConfigData.sampleFreq + 1)>>1; in FDKsbrEnc_SbrGetXOverFreq()
823 for (band = 0; band < hEnv->sbrConfigData.num_Master; band++) { in FDKsbrEnc_SbrGetXOverFreq()
835 return ((pVKMaster[band] * hEnv->sbrConfigData.sampleFreq/hEnv->sbrConfigData.noQmfBands+1)>>1); in FDKsbrEnc_SbrGetXOverFreq()
1156 createEnvChannel (HANDLE_ENV_CHANNEL hEnv, in createEnvChannel() argument
1161 FDKmemclear(hEnv,sizeof (struct ENV_CHANNEL)); in createEnvChannel()
1163 if ( FDKsbrEnc_CreateTonCorrParamExtr(&hEnv->TonCorr, in createEnvChannel()
1169 if ( FDKsbrEnc_CreateExtractSbrEnvelope (&hEnv->sbrExtractEnvelope, in createEnvChannel()
1193 HANDLE_ENV_CHANNEL hEnv, in initEnvChannel() argument
1210 hEnv->encEnvData.freq_res_fixfix = 1; in initEnvChannel()
1211 hEnv->fLevelProtect = 0; in initEnvChannel()
1213 hEnv->encEnvData.ldGrid = (sbrConfigData->sbrSyntaxFlags & SBR_SYNTAX_LOW_DELAY) ? 1 : 0; in initEnvChannel()
1215 hEnv->encEnvData.sbr_xpos_mode = (XPOS_MODE)params->sbr_xpos_mode; in initEnvChannel()
1217 if (hEnv->encEnvData.sbr_xpos_mode == XPOS_SWITCHED) { in initEnvChannel()
1223 hEnv->encEnvData.sbr_xpos_mode = XPOS_MDCT; in initEnvChannel()
1229 hEnv->encEnvData.sbr_xpos_ctrl = params->sbr_xpos_ctrl; in initEnvChannel()
1234 hEnv->encEnvData.extended_data = 1; in initEnvChannel()
1237 hEnv->encEnvData.extended_data = 0; in initEnvChannel()
1240 hEnv->encEnvData.extension_size = 0; in initEnvChannel()
1268 &hEnv->TonCorr, in initEnvChannel()
1278 hEnv->encEnvData.noOfnoisebands = hEnv->TonCorr.sbrNoiseFloorEstimate.noNoiseBands; in initEnvChannel()
1280 noiseBands[0] = hEnv->encEnvData.noOfnoisebands; in initEnvChannel()
1281 noiseBands[1] = hEnv->encEnvData.noOfnoisebands; in initEnvChannel()
1283 hEnv->encEnvData.sbr_invf_mode = (INVF_MODE)params->sbr_invf_mode; in initEnvChannel()
1285 if (hEnv->encEnvData.sbr_invf_mode == INVF_SWITCHED) { in initEnvChannel()
1286 hEnv->encEnvData.sbr_invf_mode = INVF_MID_LEVEL; in initEnvChannel()
1287 hEnv->TonCorr.switchInverseFilt = TRUE; in initEnvChannel()
1290 hEnv->TonCorr.switchInverseFilt = FALSE; in initEnvChannel()
1315 if ( FDKsbrEnc_InitExtractSbrEnvelope (&hEnv->sbrExtractEnvelope, in initEnvChannel()
1326 if(FDKsbrEnc_InitSbrCodeEnvelope (&hEnv->sbrCodeEnvelope, in initEnvChannel()
1333 if(FDKsbrEnc_InitSbrCodeEnvelope (&hEnv->sbrCodeNoiseFloor, in initEnvChannel()
1341 if(FDKsbrEnc_InitSbrHuffmanTables (&hEnv->encEnvData, in initEnvChannel()
1342 &hEnv->sbrCodeEnvelope, in initEnvChannel()
1343 &hEnv->sbrCodeNoiseFloor, in initEnvChannel()
1347 FDKsbrEnc_initFrameInfoGenerator (&hEnv->SbrEnvFrame, in initEnvChannel()
1352 hEnv->encEnvData.freq_res_fixfix in initEnvChannel()
1353 ,hEnv->encEnvData.ldGrid in initEnvChannel()
1356 if(FDKsbrEnc_InitSbrTransientDetector (&hEnv->sbrTransientDetector, in initEnvChannel()
1363 hEnv->sbrExtractEnvelope.YBufferWriteOffset, in initEnvChannel()
1364 hEnv->sbrExtractEnvelope.YBufferSzShift, in initEnvChannel()
1373 hEnv->encEnvData.noHarmonics = sbrConfigData->nSfb[HI]; in initEnvChannel()
1374 hEnv->encEnvData.addHarmonicFlag = 0; in initEnvChannel()