/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
NonLinComp_D16.c | 42 /* Gain (fractional) Gain (integer) Compression Pk-Pk THD */ 52 /* Gain - compression control parameter */ 64 void NonLinComp_D16(LVM_INT16 Gain, 91 * gain factor 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/ |
LVCS_Process.c | 39 /* ----->| Stereo |->| Reverb |->| Equ |->| Alpha |-->| + |-| Gain |----> */ 48 /* their gain to give a near peak to peak output (-0.1dBFS) with a worst case */ 50 /* the gain block folloing the sum. */ 200 LVM_INT16 Gain = pInstance->VolCorrect.CompMin; 204 Gain = (LVM_INT16)( pInstance->VolCorrect.CompMin 210 NonLinComp_D16(Gain, /* Compressor gain setting */ 222 /* Large changes in Gain can cause clicks in output 223 Split data into small blocks and use interpolated gain values */ 225 GainStep = (LVM_INT16)(((Gain-pInstance->CompressGain) * LVCS_COMPGAINFRAME)/NumSamples) [all...] |
LVCS_Control.c | 128 LVM_UINT32 Gain; 130 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * LVM_MAXINT_16); 131 Gain = (LVM_UINT32)pOutputGainTable[Offset].UnprocLoss * (Gain >> 15); 132 Gain=Gain>>15; 134 * Apply the gain correction and shift, note the result is in Q3.13 format 136 Gain = (Gain * pInstance->VolCorrect.GainMin) >>12; 138 LVC_Mixer_Init(&pInstance->BypassMix.Mixer_Instance.MixerStream[1],0,Gain); [all...] |
LVCS_BypassMix.c | 46 /* The overall gain of the processed path is set by the gains in the individual */ 47 /* processing blocks and by the effect level gain. */ 49 /* The unprocessed path must have matching gain for the processed path to ensure */ 53 /* The overall gain is corrected by a combination of a shift with saturation and a */ 55 /* and also corrects for any excess gain in the shift. */ 73 LVM_UINT32 Gain; 81 * Set the transition gain 97 * Calculate the output gain table offset 103 * Setup the mixer gain for the processed path 105 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain) [all...] |
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
LVEQNB_CalcCoef.c | 63 /* GaindB is the gain in dBs, range -15dB to +15dB */ 74 /* small errors in this value have a combined effect on the Q and Gain but not the */ 93 LVM_INT16 Gain = pFilterDefinition->Gain; 118 if (Gain >= 0) 124 D = LVEQNB_DTable[Gain+15]; /* D = 1 / (1 + G) if GaindB < 0 */ 166 pCoefficients->G = LVEQNB_GainTable[Gain+15]; 201 /* GaindB is the gain in dBs, range -15dB to +15dB */ 223 LVM_INT16 Gain = pFilterDefinition->Gain; [all...] |
LVEQNB_Process.c | 106 * For each section execte the filter unless the gain is 0dB 113 * Check if band is non-zero dB gain 115 if (pInstance->pBandDefinitions[i].Gain != 0)
|
LVEQNB_Control.c | 379 (pInstance->pBandDefinitions[i].Gain != pParams->pBandDefinition[i].Gain )||
|
/frameworks/av/media/libeffects/lvm/lib/Common/lib/ |
CompLim.h | 47 LVM_INT16 Shift; /* Shift gain */ 56 LVM_INT16 SoftClipGain; /* Soft clip gain control */ 70 void NonLinComp_D16(LVM_INT16 Gain,
|
/external/fec/ |
vtest39.c | 21 {"gain",1,NULL,'g'}, 35 double Gain = 32.0; 50 double gain,esn0,ebn0; local 88 Gain = atof(optarg); 109 gain = 1./sqrt(0.5/pow(10.,esn0/10.)); 111 printf("nframes = %d framesize = %d ebn0 = %.2f dB gain = %g\n",trials,framebits,ebn0,Gain); 120 symbols[3*i+0] = addnoise(parity(sr & V39POLYA),gain,Gain,127.5,255); 121 symbols[3*i+1] = addnoise(parity(sr & V39POLYB),gain,Gain,127.5,255) [all...] |
vtest615.c | 21 {"gain",1,NULL,'g'}, 37 double Gain = 24.0; 52 double gain,esn0,ebn0; local 90 Gain = atof(optarg); 111 gain = 1./sqrt(0.5/pow(10.,esn0/10.)); 113 printf("nframes = %d framesize = %d ebn0 = %.2f dB gain = %g\n",trials,framebits,ebn0,Gain); 122 symbols[6*i+0] = addnoise(parity(sr & V615POLYA),gain,Gain,OFFSET,CLIP); 123 symbols[6*i+1] = addnoise(parity(sr & V615POLYB),gain,Gain,OFFSET,CLIP) [all...] |
vtest27.c | 21 {"gain",1,NULL,'g'}, 35 double Gain = 32.0; 50 double gain,esn0,ebn0; local 88 Gain = atof(optarg); 109 gain = 1./sqrt(0.5/pow(10.,esn0/10.)); 111 printf("nframes = %d framesize = %d ebn0 = %.2f dB gain = %g\n",trials,framebits,ebn0,Gain); 120 symbols[2*i+0] = addnoise(parity(sr & V27POLYA),gain,Gain,127.5,255); 121 symbols[2*i+1] = addnoise(parity(sr & V27POLYB),gain,Gain,127.5,255) [all...] |
vtest29.c | 21 {"gain",1,NULL,'g'}, 35 double Gain = 32.0; 50 double gain,esn0,ebn0; local 88 Gain = atof(optarg); 109 gain = 1./sqrt(0.5/pow(10.,esn0/10.)); 111 printf("nframes = %d framesize = %d ebn0 = %.2f dB gain = %g\n",trials,framebits,ebn0,Gain); 120 symbols[2*i+0] = addnoise(parity(sr & V29POLYA),gain,Gain,127.5,255); 121 symbols[2*i+1] = addnoise(parity(sr & V29POLYB),gain,Gain,127.5,255) [all...] |
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/ |
LVREV_ApplyNewSettings.c | 305 * Update the feed back gain 313 LVM_INT32 G[4]; /* Feedback gain (Q7.24) */ 372 * Calculate the gain correction 380 LVM_INT32 Gain=0; 422 Gain=LVM_Polynomial(3,Coefs,T60); /* Q.24 result */ 426 /* Interpolate the gain between nearest room sizes */ 435 /* Get gain for first */ 444 /* Get gain for second */ 453 /* Linear Interpolate the gain */ 454 Gain = Gain1+ (((Gain2-Gain1)*Dist)/(Tot_Dist)) [all...] |
LVREV_Private.h | 76 #define LVREV_OUTPUTGAIN_SHIFT 5 /* Bits shift for output gain correction */ 142 Mix_1St_Cll_t FeedbackMixer[4]; /* Mixer for Pop and Click Supression caused by feedback Gain */ 154 Mix_1St_Cll_t Mixer_SGFeedback[4]; /* Smoothed SAfeedback gain */ 155 Mix_1St_Cll_t Mixer_SGFeedforward[4]; /* Smoothed AP feedforward gain */ 157 /* Output gain */ 159 LVM_INT16 Gain; /* Gain applied to output to maintain average signal power */ 160 Mix_1St_Cll_t GainMixer; /* Gain smoothing */
|
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
native_buffer.h | 101 // Gain the buffer producer, closing the previous release fence if valid. 102 int Gain() { return buffer_->Gain(&release_fence_); } 104 // Asynchronously gain the buffer, closing the previous release fence.
|
buffer_hub_client.h | 122 // makes the buffer read-only. Call Gain to acquire write access. A buffer 157 // Attempt to re-gain the buffer for writing. If |release_fence| is valid, it 162 int Gain(LocalHandle* release_fence);
|
/frameworks/av/media/libeffects/lvm/lib/Eq/lib/ |
LVEQNB.h | 57 /* Gain is in integer dB, range -15dB to +15dB inclusive */ 62 /* Gain = 7 7dB gain */ 245 LVM_INT16 Gain; /* Band gain in dB */
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
pitch_filter.c | 55 const int16_t Gain = 21299; // 1.3 in Q14 69 // Get old lag and gain value from memory. 78 gainsQ12[k] = (int16_t)(gainsQ12[k] * Gain >> 14); 228 // Gain should be half the correlation.
|
/frameworks/av/media/libeffects/lvm/lib/Bundle/lib/ |
LVM.h | 246 LVM_INT16 Gain; /* Band gain in dB */ 257 LVM_INT16 Headroom_Offset; /* Headroom = biggest band gain - Headroom_Offset */ 294 LVM_INT16 TE_EffectLevel; /* Treble Enhancement gain dBs */ [all...] |
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/ |
LVM_Control.c | 143 ((pParams->pEQNB_BandDefinition[i].Gain < LVM_EQNB_MIN_BAND_GAIN) || 144 (pParams->pEQNB_BandDefinition[i].Gain > LVM_EQNB_MAX_BAND_GAIN)) || 260 /* Enable the treble boost when the settings are appropriate, i.e. non-zero gain */ 347 * Limit the gain to the maximum allowed 360 pInstance->PSA_GainOffset=(LVM_INT16)(-Volume);/* Loss is compensated by Gain*/ 362 pInstance->PSA_GainOffset=(LVM_INT16)60;/* Loss is compensated by Gain*/ 393 * Calculate the required gain and shifts 460 if(pParams->pEQNB_BandDefinition[ii].Gain > MaxGain) 462 MaxGain = pParams->pEQNB_BandDefinition[ii].Gain; [all...] |
/frameworks/native/libs/vr/libdvr/ |
dvr_buffer.cpp | 92 int result = write_buffer->write_buffer->Gain(&release_fence);
|
/frameworks/native/libs/vr/libbufferhub/ |
bufferhub_tests.cpp | 61 EXPECT_EQ(0, p->Gain(&fence)); 193 EXPECT_EQ(0, p->Gain(&fence));
|
buffer_hub_client.cpp | 370 int BufferProducer::Gain(LocalHandle* release_fence) { 371 ATRACE_NAME("BufferProducer::Gain");
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
EffectBundle.cpp | 638 BandDefs[i].Gain = EQNB_5BandSoftPresets[i]; [all...] |
/frameworks/native/libs/vr/libbufferhubqueue/ |
buffer_hub_queue_client.cpp | 479 return buffer->Gain(release_fence);
|