Searched refs:Gain (Results 1 - 20 of 20) sorted by relevance

/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DNonLinComp_D16.c42 /* 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));
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
H A DLVCS_Process.c39 /* ----->| Stereo |->| Reverb |->| Equ |->| Alpha |-->| + |-| Gain |----> */
200 LVM_INT16 Gain = pInstance->VolCorrect.CompMin; local
204 Gain = (LVM_INT16)( pInstance->VolCorrect.CompMin
210 NonLinComp_D16(Gain, /* Compressor gain setting */
222 /* Large changes in Gain can cause clicks in output
225 GainStep = (LVM_INT16)(((Gain-pInstance->CompressGain) * LVCS_COMPGAINFRAME)/NumSamples);
227 if((GainStep ==0)&&(pInstance->CompressGain < Gain))
233 if((GainStep ==0)&&(pInstance->CompressGain > Gain))
239 FinalGain = Gain;
240 Gain
[all...]
H A DLVCS_Control.c128 LVM_UINT32 Gain; local
130 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * LVM_MAXINT_16);
131 Gain = (LVM_UINT32)pOutputGainTable[Offset].UnprocLoss * (Gain >> 15);
132 Gain=Gain>>15;
136 Gain = (Gain * pInstance->VolCorrect.GainMin) >>12;
138 LVC_Mixer_Init(&pInstance->BypassMix.Mixer_Instance.MixerStream[1],0,Gain);
H A DLVCS_BypassMix.c73 LVM_UINT32 Gain; local
105 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain);
112 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0],(LVM_INT32)(Gain >> 15),Current);
117 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * (0x7FFF - pInstance->TransitionGain));
118 Gain = (LVM_UINT32)pOutputGainTable[Offset].UnprocLoss * (Gain >> 15);
120 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[1],(LVM_INT32)(Gain >> 15),Current);
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
H A DLVEQNB_CalcCoef.c74 /* small errors in this value have a combined effect on the Q and Gain but not the */
93 LVM_INT16 Gain = pFilterDefinition->Gain; local
118 if (Gain >= 0)
124 D = LVEQNB_DTable[Gain+15]; /* D = 1 / (1 + G) if GaindB < 0 */
166 pCoefficients->G = LVEQNB_GainTable[Gain+15];
223 LVM_INT16 Gain = pFilterDefinition->Gain; local
249 if (Gain >= 0)
255 D = LVEQNB_DTable[Gain
[all...]
H A DLVEQNB_Process.c115 if (pInstance->pBandDefinitions[i].Gain != 0)
H A DLVEQNB_Control.c379 (pInstance->pBandDefinitions[i].Gain != pParams->pBandDefinition[i].Gain )||
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
H A DCompLim.h70 void NonLinComp_D16(LVM_INT16 Gain,
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/
H A DLVREV_ApplyNewSettings.c380 LVM_INT32 Gain=0; local
422 Gain=LVM_Polynomial(3,Coefs,T60); /* Q.24 result */
454 Gain = Gain1+ (((Gain2-Gain1)*Dist)/(Tot_Dist));
460 * Gain is mostly above one except few cases, take only gains above 1
462 if(Gain < 16777216L)
464 pPrivate->Gain= 32767;
468 pPrivate->Gain=(LVM_INT16)(LVM_MAXINT_32/(Gain>>8));
473 pPrivate->Gain=(LVM_INT16)((pPrivate->Gain*Inde
[all...]
H A DLVREV_Private.h142 Mix_1St_Cll_t FeedbackMixer[4]; /* Mixer for Pop and Click Supression caused by feedback Gain */
159 LVM_INT16 Gain; /* Gain applied to output to maintain average signal power */ member in struct:__anon303
160 Mix_1St_Cll_t GainMixer; /* Gain smoothing */
/frameworks/av/media/libeffects/lvm/lib/Eq/lib/
H A DLVEQNB.h57 /* Gain is in integer dB, range -15dB to +15dB inclusive */
62 /* Gain = 7 7dB gain */
245 LVM_INT16 Gain; /* Band gain in dB */ member in struct:__anon291
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dnative_buffer.h101 // Gain the buffer producer, closing the previous release fence if valid.
102 int Gain() { return buffer_->Gain(&release_fence_); } function in class:android::dvr::NativeBufferProducer
H A Dbuffer_hub_client.h122 // makes the buffer read-only. Call Gain to acquire write access. A buffer
162 int Gain(LocalHandle* release_fence);
/frameworks/av/media/libeffects/lvm/lib/Bundle/lib/
H A DLVM.h246 LVM_INT16 Gain; /* Band gain in dB */ member in struct:__anon237
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
H A DLVM_Control.c143 ((pParams->pEQNB_BandDefinition[i].Gain < LVM_EQNB_MIN_BAND_GAIN) ||
144 (pParams->pEQNB_BandDefinition[i].Gain > LVM_EQNB_MAX_BAND_GAIN)) ||
360 pInstance->PSA_GainOffset=(LVM_INT16)(-Volume);/* Loss is compensated by Gain*/
362 pInstance->PSA_GainOffset=(LVM_INT16)60;/* Loss is compensated by Gain*/
460 if(pParams->pEQNB_BandDefinition[ii].Gain > MaxGain)
462 MaxGain = pParams->pEQNB_BandDefinition[ii].Gain;
/frameworks/native/libs/vr/libdvr/
H A Ddvr_buffer.cpp92 int result = write_buffer->write_buffer->Gain(&release_fence);
/frameworks/native/libs/vr/libbufferhub/
H A Dbufferhub_tests.cpp61 EXPECT_EQ(0, p->Gain(&fence));
193 EXPECT_EQ(0, p->Gain(&fence));
H A Dbuffer_hub_client.cpp370 int BufferProducer::Gain(LocalHandle* release_fence) { function in class:android::dvr::BufferProducer
371 ATRACE_NAME("BufferProducer::Gain");
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp638 BandDefs[i].Gain = EQNB_5BandSoftPresets[i];
796 // ActiveParams.pEQNB_BandDefinition[band].Gain);
802 ActiveParams.pEQNB_BandDefinition[i].Gain = pContext->pBundledContext->bandGaindB[i];
809 // ActiveParams.pEQNB_BandDefinition[band].Gain);
834 // ActiveParams.pEQNB_BandDefinition[band].Gain);
917 // ActiveParams.pEQNB_BandDefinition[band].Gain);
1542 // Gain: Gain to be applied in millibels
1548 void EqualizerSetBandLevel(EffectContext *pContext, int band, short Gain){ argument
1550 if(Gain >
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/
H A Dbuffer_hub_queue_client.cpp479 return buffer->Gain(release_fence);

Completed in 221 milliseconds