• Home
  • Raw
  • Download

Lines Matching refs:hGainDec

132 static void _setChannelGains(HANDLE_DRC_GAIN_DECODER hGainDec,  in _setChannelGains()  argument
140 hGainDec->channelGain[i] = (FIXP_DBL)0; in _setChannelGains()
144 (hGainDec->loudnessNormalisationGainDb >> 2); in _setChannelGains()
148 hGainDec->channelGain[i] = scaleValue(channelGain, channelGain_e - 8); in _setChannelGains()
159 DRC_GAIN_DECODER* hGainDec = NULL; in drcDec_GainDecoder_Open() local
161 hGainDec = (DRC_GAIN_DECODER*)FDKcalloc(1, sizeof(DRC_GAIN_DECODER)); in drcDec_GainDecoder_Open()
162 if (hGainDec == NULL) return DE_MEMORY_ERROR; in drcDec_GainDecoder_Open()
164 hGainDec->multiBandActiveDrcIndex = -1; in drcDec_GainDecoder_Open()
165 hGainDec->channelGainActiveDrcIndex = -1; in drcDec_GainDecoder_Open()
167 *phGainDec = hGainDec; in drcDec_GainDecoder_Open()
173 drcDec_GainDecoder_Init(HANDLE_DRC_GAIN_DECODER hGainDec) { in drcDec_GainDecoder_Init() argument
176 err = initGainDec(hGainDec); in drcDec_GainDecoder_Init()
179 initDrcGainBuffers(hGainDec->frameSize, &hGainDec->drcGainBuffers); in drcDec_GainDecoder_Init()
185 drcDec_GainDecoder_SetParam(HANDLE_DRC_GAIN_DECODER hGainDec, in drcDec_GainDecoder_SetParam() argument
191 hGainDec->frameSize = paramValue; in drcDec_GainDecoder_SetParam()
195 hGainDec->deltaTminDefault = getDeltaTmin(paramValue); in drcDec_GainDecoder_SetParam()
205 HANDLE_DRC_GAIN_DECODER hGainDec, const DELAY_MODE delayMode, in drcDec_GainDecoder_SetCodecDependentParameters() argument
211 hGainDec->delayMode = delayMode; in drcDec_GainDecoder_SetCodecDependentParameters()
212 hGainDec->timeDomainSupported = timeDomainSupported; in drcDec_GainDecoder_SetCodecDependentParameters()
213 hGainDec->subbandDomainSupported = subbandDomainSupported; in drcDec_GainDecoder_SetCodecDependentParameters()
219 drcDec_GainDecoder_Config(HANDLE_DRC_GAIN_DECODER hGainDec, in drcDec_GainDecoder_Config() argument
227 hGainDec->nActiveDrcs = 0; in drcDec_GainDecoder_Config()
228 hGainDec->multiBandActiveDrcIndex = -1; in drcDec_GainDecoder_Config()
229 hGainDec->channelGainActiveDrcIndex = -1; in drcDec_GainDecoder_Config()
231 err = initActiveDrc(hGainDec, hUniDrcConfig, selectedDrcSetIds[a], in drcDec_GainDecoder_Config()
236 err = initActiveDrcOffset(hGainDec); in drcDec_GainDecoder_Config()
253 drcDec_GainDecoder_Preprocess(HANDLE_DRC_GAIN_DECODER hGainDec, in drcDec_GainDecoder_Preprocess() argument
261 hGainDec->drcGainBuffers.lnbPointer++; in drcDec_GainDecoder_Preprocess()
262 if (hGainDec->drcGainBuffers.lnbPointer >= NUM_LNB_FRAMES) in drcDec_GainDecoder_Preprocess()
263 hGainDec->drcGainBuffers.lnbPointer = 0; in drcDec_GainDecoder_Preprocess()
265 for (a = 0; a < hGainDec->nActiveDrcs; a++) { in drcDec_GainDecoder_Preprocess()
268 err = prepareDrcGain(hGainDec, hUniDrcGain, compress, boost, in drcDec_GainDecoder_Preprocess()
275 hGainDec->activeDrc[a] in drcDec_GainDecoder_Preprocess()
276 .lnbIndexForChannel[c][hGainDec->drcGainBuffers.lnbPointer] = in drcDec_GainDecoder_Preprocess()
279 hGainDec->activeDrc[a].subbandGainsReady = 0; in drcDec_GainDecoder_Preprocess()
283 hGainDec->drcGainBuffers in drcDec_GainDecoder_Preprocess()
284 .channelGain[c][hGainDec->drcGainBuffers.lnbPointer] = in drcDec_GainDecoder_Preprocess()
294 drcDec_GainDecoder_Conceal(HANDLE_DRC_GAIN_DECODER hGainDec, in drcDec_GainDecoder_Conceal() argument
323 hUniDrcGain->gainNode[seq][0].time = hGainDec->frameSize - 1; in drcDec_GainDecoder_Conceal()
328 void drcDec_GainDecoder_SetChannelGains(HANDLE_DRC_GAIN_DECODER hGainDec, in drcDec_GainDecoder_SetChannelGains() argument
336 if (hGainDec->channelGainActiveDrcIndex >= 0) { in drcDec_GainDecoder_SetChannelGains()
339 _setChannelGains(hGainDec, numChannels, channelGainDb); in drcDec_GainDecoder_SetChannelGains()
341 if (!hGainDec->status) { /* overwrite previous channel gains at startup */ in drcDec_GainDecoder_SetChannelGains()
342 DRC_GAIN_BUFFERS* pDrcGainBuffers = &hGainDec->drcGainBuffers; in drcDec_GainDecoder_SetChannelGains()
345 pDrcGainBuffers->channelGain[c][i] = hGainDec->channelGain[c]; in drcDec_GainDecoder_SetChannelGains()
348 hGainDec->status = 1; in drcDec_GainDecoder_SetChannelGains()
354 prevChannelGain[c] = hGainDec->channelGain[c]; in drcDec_GainDecoder_SetChannelGains()
357 _setChannelGains(hGainDec, numChannels, channelGainDb); in drcDec_GainDecoder_SetChannelGains()
359 if (!hGainDec->status) { /* overwrite previous channel gains at startup */ in drcDec_GainDecoder_SetChannelGains()
361 prevChannelGain[c] = hGainDec->channelGain[c]; in drcDec_GainDecoder_SetChannelGains()
362 hGainDec->status = 1; in drcDec_GainDecoder_SetChannelGains()
367 CntLeadingZeros(hGainDec->channelGain[c])) - in drcDec_GainDecoder_SetChannelGains()
371 FIXP_DBL stepsize = ((hGainDec->channelGain[c] << n_min) - gain); in drcDec_GainDecoder_SetChannelGains()
395 HANDLE_DRC_GAIN_DECODER hGainDec, const int delaySamples, in drcDec_GainDecoder_ProcessTimeDomain() argument
402 if (!hGainDec->timeDomainSupported) { in drcDec_GainDecoder_ProcessTimeDomain()
406 for (a = 0; a < hGainDec->nActiveDrcs; a++) { in drcDec_GainDecoder_ProcessTimeDomain()
407 if (!_fitsLocation(hGainDec->activeDrc[a].pInst, drcLocation)) continue; in drcDec_GainDecoder_ProcessTimeDomain()
410 err = processDrcTime(hGainDec, a, delaySamples, channelOffset, in drcDec_GainDecoder_ProcessTimeDomain()
421 HANDLE_DRC_GAIN_DECODER hGainDec, const int delaySamples, in drcDec_GainDecoder_ProcessSubbandDomain() argument
429 if (hGainDec->subbandDomainSupported == SDM_OFF) { in drcDec_GainDecoder_ProcessSubbandDomain()
433 for (a = 0; a < hGainDec->nActiveDrcs; a++) { in drcDec_GainDecoder_ProcessSubbandDomain()
434 if (!_fitsLocation(hGainDec->activeDrc[a].pInst, drcLocation)) continue; in drcDec_GainDecoder_ProcessSubbandDomain()
437 err = processDrcSubband(hGainDec, a, delaySamples, channelOffset, in drcDec_GainDecoder_ProcessSubbandDomain()
449 HANDLE_DRC_GAIN_DECODER hGainDec, FIXP_DBL loudnessNormalizationGainDb) { in drcDec_GainDecoder_SetLoudnessNormalizationGainDb() argument
450 hGainDec->loudnessNormalisationGainDb = loudnessNormalizationGainDb; in drcDec_GainDecoder_SetLoudnessNormalizationGainDb()
455 int drcDec_GainDecoder_GetFrameSize(HANDLE_DRC_GAIN_DECODER hGainDec) { in drcDec_GainDecoder_GetFrameSize() argument
456 if (hGainDec == NULL) return -1; in drcDec_GainDecoder_GetFrameSize()
458 return hGainDec->frameSize; in drcDec_GainDecoder_GetFrameSize()
461 int drcDec_GainDecoder_GetDeltaTminDefault(HANDLE_DRC_GAIN_DECODER hGainDec) { in drcDec_GainDecoder_GetDeltaTminDefault() argument
462 if (hGainDec == NULL) return -1; in drcDec_GainDecoder_GetDeltaTminDefault()
464 return hGainDec->deltaTminDefault; in drcDec_GainDecoder_GetDeltaTminDefault()