Home
last modified time | relevance | path

Searched refs:Gain (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
DLVCS_Process.cpp215 LVM_FLOAT Gain = pInstance->VolCorrect.CompMin; in LVCS_Process() local
219 Gain = (LVM_FLOAT)(pInstance->VolCorrect.CompMin - in LVCS_Process()
224 NonLinComp_Float(Gain, /* Compressor gain setting */ in LVCS_Process()
235 GainStep = (LVM_FLOAT)(((Gain - pInstance->CompressGain) * LVCS_COMPGAINFRAME) / in LVCS_Process()
238 if ((GainStep == 0) && (pInstance->CompressGain < Gain)) { in LVCS_Process()
241 if ((GainStep == 0) && (pInstance->CompressGain > Gain)) { in LVCS_Process()
246 FinalGain = Gain; in LVCS_Process()
247 Gain = pInstance->CompressGain; in LVCS_Process()
251 Gain = (LVM_FLOAT)(Gain + GainStep); in LVCS_Process()
252 if ((GainStep > 0) && (FinalGain <= Gain)) { in LVCS_Process()
[all …]
DLVCS_Control.cpp117 LVM_FLOAT Gain; in LVCS_Control() local
119 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss); in LVCS_Control()
120 Gain = (LVM_FLOAT)pOutputGainTable[Offset].UnprocLoss * (Gain); in LVCS_Control()
125 Gain = (Gain * pInstance->VolCorrect.GainMin); in LVCS_Control()
127 LVC_Mixer_Init(&pInstance->BypassMix.Mixer_Instance.MixerStream[1], 0, Gain); in LVCS_Control()
DLVCS_BypassMix.cpp69 LVM_FLOAT Gain; in LVCS_BypassMixInit() local
97 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain); in LVCS_BypassMixInit()
105 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0], (LVM_FLOAT)(Gain), Current); in LVCS_BypassMixInit()
112 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss * in LVCS_BypassMixInit()
114 Gain = (LVM_FLOAT)pOutputGainTable[Offset].UnprocLoss * Gain; in LVCS_BypassMixInit()
116 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[1], (LVM_FLOAT)(Gain), Current); in LVCS_BypassMixInit()
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_CalcCoef.cpp123 LVM_INT16 Gain = pFilterDefinition->Gain; in LVEQNB_SinglePrecCoefs() local
141 if (Gain >= 0) { in LVEQNB_SinglePrecCoefs()
144 D = LVEQNB_DTable[Gain + 15]; /* D = 1 / (1 + G) if GaindB < 0 */ in LVEQNB_SinglePrecCoefs()
161 pCoefficients->G = LVEQNB_GainTable[Gain + 15]; in LVEQNB_SinglePrecCoefs()
DLVEQNB_Control.cpp294 (pInstance->pBandDefinitions[i].Gain != pParams->pBandDefinition[i].Gain) || in LVEQNB_Control()
DLVEQNB_Process.cpp103 if (pInstance->pBandDefinitions[i].Gain != 0) { in LVEQNB_Process()
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DNonLinComp_D16.cpp64 void NonLinComp_Float(LVM_FLOAT Gain, LVM_FLOAT* pDataIn, LVM_FLOAT* pDataOut, in NonLinComp_Float() argument
88 Sample = (Sample + ((Gain * (Sample - Temp)))); in NonLinComp_Float()
90 Sample = (Sample + ((Gain * (Sample + Temp)))); in NonLinComp_Float()
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
DLVREV_ApplyNewSettings.cpp324 LVM_FLOAT Gain = 0; in LVREV_ApplyNewSettings() local
355 Gain = LVM_Polynomial(3, Coefs, T60); /* Q.24 result */ in LVREV_ApplyNewSettings()
383 Gain = Gain1 + (((Gain2 - Gain1) * Dist) / (Tot_Dist)); in LVREV_ApplyNewSettings()
390 if (Gain < 1) { in LVREV_ApplyNewSettings()
391 pPrivate->Gain = 1; in LVREV_ApplyNewSettings()
393 pPrivate->Gain = 1 / Gain; in LVREV_ApplyNewSettings()
397 pPrivate->Gain = pPrivate->Gain * Index_FLOAT; in LVREV_ApplyNewSettings()
398 pPrivate->GainMixer.Target = (pPrivate->Gain * Index_FLOAT) / 2; in LVREV_ApplyNewSettings()
DLVREV_Private.h154 LVM_FLOAT Gain; /* Gain applied to output to maintain member
/frameworks/native/libs/tonemap/include/tonemap/
Dtonemap.h146 using Gain = double; variable
147 virtual std::vector<Gain> lookupTonemapGain(
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
DCompLim.h61 void NonLinComp_Float(LVM_FLOAT Gain, LVM_FLOAT* pDataIn, LVM_FLOAT* pDataOut,
/frameworks/native/libs/tonemap/
Dtonemap.cpp288 std::vector<Gain> lookupTonemapGain( in lookupTonemapGain()
292 std::vector<Gain> gains; in lookupTonemapGain()
629 std::vector<Gain> lookupTonemapGain( in lookupTonemapGain()
633 std::vector<Gain> gains; in lookupTonemapGain()
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dproducer_buffer.h52 int Gain(LocalHandle* release_fence, bool gain_posted_buffer = false);
/frameworks/av/media/libeffects/lvm/lib/Eq/lib/
DLVEQNB.h197 LVM_INT16 Gain; /* Band gain in dB */ member
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Control.cpp137 ((pParams->pEQNB_BandDefinition[i].Gain < LVM_EQNB_MIN_BAND_GAIN) || in LVM_SetControlParameters()
138 (pParams->pEQNB_BandDefinition[i].Gain > LVM_EQNB_MAX_BAND_GAIN)) || in LVM_SetControlParameters()
415 if (pParams->pEQNB_BandDefinition[ii].Gain > MaxGain) { in LVM_SetHeadroom()
416 MaxGain = pParams->pEQNB_BandDefinition[ii].Gain; in LVM_SetHeadroom()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp100 EXPECT_EQ(0, p->Gain(&fence)); in TEST_F()
226 EXPECT_EQ(-EBUSY, p->Gain(&fence)); in TEST_F()
234 EXPECT_EQ(-EBUSY, p->Gain(&fence)); in TEST_F()
245 EXPECT_EQ(0, p->Gain(&fence)); in TEST_F()
336 EXPECT_EQ(-EBUSY, p->Gain(&invalid_fence, false)); in TEST_F()
337 EXPECT_EQ(0, p->Gain(&invalid_fence, true)); in TEST_F()
373 EXPECT_EQ(0, p->Gain(&invalid_fence, false)); in TEST_F()
Dproducer_buffer.cpp228 int ProducerBuffer::Gain(LocalHandle* release_fence, bool gain_posted_buffer) { in Gain() function in android::dvr::ProducerBuffer
/frameworks/av/media/libeffects/lvm/lib/Bundle/lib/
DLVM.h193 LVM_INT16 Gain; /* Band gain in dB */ member
/frameworks/av/media/libeffects/lvm/tests/
Dlvmtest.cpp282 BandDefs[i].Gain = EQNB_5BandSoftPresets[i]; in LvmBundle_init()
433 BandDefs[i].Gain = EQNB_5BandSoftPresets[(FIVEBAND_NUMBANDS * eqPresetLevel) + i]; in lvmControl()
/frameworks/av/media/libaudioclient/fuzzer/
DREADME.md27 15. Audio Gain Mode (parameter name: `gainMode`)
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp554 BandDefs[i].Gain = EQNB_5BandSoftPresets[i]; in LvmBundle_init()
700 ActiveParams.pEQNB_BandDefinition[i].Gain = pContext->pBundledContext->bandGaindB[i]; in EqualizerUpdateActiveParams()
1398 void EqualizerSetBandLevel(EffectContext* pContext, int band, short Gain) { in EqualizerSetBandLevel() argument
1400 if (Gain > 0) { in EqualizerSetBandLevel()
1401 gainRounded = (int)((Gain + 50) / 100); in EqualizerSetBandLevel()
1403 gainRounded = (int)((Gain - 50) / 100); in EqualizerSetBandLevel()
/frameworks/av/media/libeffects/lvm/wrapper/Aidl/
DBundleContext.cpp497 params.pEQNB_BandDefinition[i].Gain = in updateControlParameter()
676 tempDefs[i].Gain = lvm::kSoftPresets[0/* normal */][i]; in getDefaultEqualizerBandDefs()