/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
H A D | NonLinComp_D16.c | 42 /* Gain (fractional) Gain (integer) Compression Pk-Pk THD */ 52 /* Gain - compression control parameter */ 64 void NonLinComp_D16(LVM_INT16 Gain, argument 98 Sample = (LVM_INT16)(Sample + ((Gain * (Sample - Temp)) >> 15)); 102 Sample = (LVM_INT16)(Sample + ((Gain * (Sample + Temp)) >> 15)); 118 void NonLinComp_Float(LVM_FLOAT Gain, argument 151 Sample = (Sample + ((Gain * (Sample - Temp)) )); 155 Sample = (Sample + ((Gain * (Sample + Temp)) ));
|
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/ |
H A D | LVCS_Control.c | 130 LVM_UINT32 Gain; local 132 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * LVM_MAXINT_16); 133 Gain = (LVM_UINT32)pOutputGainTable[Offset].UnprocLoss * (Gain >> 15); 134 Gain=Gain>>15; 138 Gain = (Gain * pInstance->VolCorrect.GainMin) >>12; 140 LVC_Mixer_Init(&pInstance->BypassMix.Mixer_Instance.MixerStream[1],0,Gain); 146 LVM_FLOAT Gain; local [all...] |
H A D | LVCS_Process.c | 39 /* ----->| Stereo |->| Reverb |->| Equ |->| Alpha |-->| + |-| Gain |----> */ 272 LVM_FLOAT Gain = pInstance->VolCorrect.CompMin; local 276 Gain = (LVM_FLOAT)( pInstance->VolCorrect.CompMin 282 NonLinComp_Float(Gain, /* Compressor gain setting */ 294 /* Large changes in Gain can cause clicks in output 297 GainStep = (LVM_FLOAT)(((Gain-pInstance->CompressGain) * \ 300 if((GainStep == 0) && (pInstance->CompressGain < Gain)) 306 if((GainStep == 0) && (pInstance->CompressGain > Gain)) 312 FinalGain = Gain; 313 Gain 433 LVM_INT16 Gain = pInstance->VolCorrect.CompMin; local [all...] |
H A D | LVCS_BypassMix.c | 74 LVM_UINT32 Gain; local 77 LVM_FLOAT Gain; local 116 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain); 118 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain); 128 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0],(LVM_INT32)(Gain >> 15),Current); 132 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0], (LVM_FLOAT)(Gain), Current); 141 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * (0x7FFF - pInstance->TransitionGain)); 142 Gain = (LVM_UINT32)pOutputGainTable[Offset].UnprocLoss * (Gain >> 15); 144 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[1],(LVM_INT32)(Gain >> 1 [all...] |
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
H A D | LVEQNB_CalcCoef.c | 76 /* small errors in this value have a combined effect on the Q and Gain but not the */ 96 LVM_INT16 Gain = pFilterDefinition->Gain; local 121 if (Gain >= 0) 127 D = LVEQNB_DTable[Gain+15]; /* D = 1 / (1 + G) if GaindB < 0 */ 169 pCoefficients->G = LVEQNB_GainTable[Gain+15]; 225 LVM_INT16 Gain = pFilterDefinition->Gain; local 244 if (Gain >= 0) 250 D = LVEQNB_DTable[Gain 286 LVM_INT16 Gain = pFilterDefinition->Gain; local [all...] |
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/ |
H A D | LVREV_ApplyNewSettings.c | 381 LVM_INT32 Gain=0; local 423 Gain=LVM_Polynomial(3,Coefs,T60); /* Q.24 result */ 455 Gain = Gain1+ (((Gain2-Gain1)*Dist)/(Tot_Dist)); 461 * Gain is mostly above one except few cases, take only gains above 1 463 if(Gain < 16777216L) 465 pPrivate->Gain= 32767; 469 pPrivate->Gain=(LVM_INT16)(LVM_MAXINT_32/(Gain>>8)); 474 pPrivate->Gain=(LVM_INT16)((pPrivate->Gain*Inde 959 LVM_FLOAT Gain=0; local [all...] |
H A D | LVREV_Private.h | 192 Mix_1St_Cll_t FeedbackMixer[4]; /* Mixer for Pop and Click Supression caused by feedback Gain */ 209 LVM_INT16 Gain; /* Gain applied to output to maintain average signal power */ member in struct:__anon292 210 Mix_1St_Cll_t GainMixer; /* Gain smoothing */ 263 caused by feedback Gain */ 282 LVM_FLOAT Gain; /* Gain applied to output to maintain member in struct:__anon295 284 Mix_1St_Cll_FLOAT_t GainMixer; /* Gain smoothing */
|
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
H A D | native_buffer.h | 104 // Gain the buffer producer, closing the previous release fence if valid. 105 int Gain() { return buffer_->Gain(&release_fence_); } function in class:android::dvr::NativeBufferProducer
|
/frameworks/native/libs/vr/libdvr/tests/ |
H A D | dvr_buffer_queue-test.cpp | 165 // Gain buffer for writing. 279 // Gain first buffer for writing. All buffers will be resized. 402 std::function<void(size_t i)> Gain = [&](size_t i) { local 472 // Gain all write buffers. 474 ASSERT_NO_FATAL_FAILURE(Gain(i)); 492 // Gain and post all write buffers. 494 ASSERT_NO_FATAL_FAILURE(Gain(i)); 506 // Gain all write buffers then post them in reversed order. 508 ASSERT_NO_FATAL_FAILURE(Gain(i));
|
/frameworks/av/media/libeffects/lvm/lib/Eq/lib/ |
H A D | LVEQNB.h | 57 /* Gain is in integer dB, range -15dB to +15dB inclusive */ 62 /* Gain = 7 7dB gain */ 253 LVM_INT16 Gain; /* Band gain in dB */ member in struct:__anon280
|
/frameworks/native/libs/vr/libbufferhub/ |
H A D | buffer_hub_client.cpp | 672 // Canonical metadata is undefined on Gain. Except for user_metadata and 698 int BufferProducer::Gain(LocalHandle* release_fence) { function in class:android::dvr::BufferProducer 699 ATRACE_NAME("BufferProducer::Gain");
|
/frameworks/av/media/libeffects/lvm/lib/Bundle/lib/ |
H A D | LVM.h | 246 LVM_INT16 Gain; /* Band gain in dB */ member in struct:__anon206
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.cpp | 677 BandDefs[i].Gain = EQNB_5BandSoftPresets[i]; 967 // ActiveParams.pEQNB_BandDefinition[band].Gain); 973 ActiveParams.pEQNB_BandDefinition[i].Gain = pContext->pBundledContext->bandGaindB[i]; 980 // ActiveParams.pEQNB_BandDefinition[band].Gain); 1005 // ActiveParams.pEQNB_BandDefinition[band].Gain); 1096 // ActiveParams.pEQNB_BandDefinition[band].Gain); 1733 // Gain: Gain to be applied in millibels 1739 void EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain){ argument 1741 if(Gain > [all...] |