Home
last modified time | relevance | path

Searched refs:gain (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/external/libopus/silk/fixed/
Dprocess_gains_FIX.c44 opus_int32 s_Q16, InvMaxSqrVal_Q16, gain, gain_squared, ResNrg, ResNrgPart, quant_offset_Q10; in silk_process_gains_FIX() local
73 gain = psEncCtrl->Gains_Q16[ k ]; in silk_process_gains_FIX()
74 gain_squared = silk_ADD_SAT32( ResNrgPart, silk_SMMUL( gain, gain ) ); in silk_process_gains_FIX()
77 gain_squared = silk_SMLAWW( silk_LSHIFT( ResNrgPart, 16 ), gain, gain ); in silk_process_gains_FIX()
79 gain = silk_SQRT_APPROX( gain_squared ); /* Q8 */ in silk_process_gains_FIX()
80 gain = silk_min( gain, silk_int32_MAX >> 8 ); in silk_process_gains_FIX()
81 psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 8 ); /* Q16 */ in silk_process_gains_FIX()
83 gain = silk_SQRT_APPROX( gain_squared ); /* Q0 */ in silk_process_gains_FIX()
84 gain = silk_min( gain, silk_int32_MAX >> 16 ); in silk_process_gains_FIX()
85 psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 16 ); /* Q16 */ in silk_process_gains_FIX()
/external/adhd/cras-config/
Ddsp.ini.sample60 input_7=-10 ; gain
64 input_11=-12 ; gain
68 input_15=-12 ; gain
72 input_19=-12 ; gain
76 input_23=-8 ; gain
80 input_27=-10.2 ; gain
84 input_31=-10.2 ; gain
88 input_35=-8 ; gain
92 input_39=-8 ; gain
96 input_43=0 ; gain
[all …]
/external/sonivox/arm-wt-22k/lib_src/
Deas_dlssynth.c185 …Voice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain, EAS_U8 velocity) in DLS_UpdateGain() argument
201 gain += FMUL_15x15(temp, pWTVoice->modLFO.lfoValue); in DLS_UpdateGain()
202 if (gain > 0) in DLS_UpdateGain()
203 gain = 0; in DLS_UpdateGain()
208 gain = (DLS_GAIN_FACTOR * gain) >> DLS_GAIN_SHIFT; in DLS_UpdateGain()
211 gain += (pWTVoice->eg1Value - 32767) >> 1; in DLS_UpdateGain()
212 gain = EAS_LogToLinear16(gain); in DLS_UpdateGain()
214 gain = EAS_LogToLinear16(gain); in DLS_UpdateGain()
216 gain = FMUL_15x15(gain, temp); in DLS_UpdateGain()
221 gain = (DLS_GAIN_FACTOR * gain) >> DLS_GAIN_SHIFT; in DLS_UpdateGain()
[all …]
Deas_mixer.c137 EAS_U16 gain; in EAS_MixEnginePost() local
149 gain = 32767; in EAS_MixEnginePost()
151 gain = (EAS_U16) temp; in EAS_MixEnginePost()
154 gain = (EAS_U16) pEASData->masterGain; in EAS_MixEnginePost()
156 gain = (EAS_U16) pEASData->masterGain; in EAS_MixEnginePost()
164 gain = gain >> 5; in EAS_MixEnginePost()
166 gain = gain >> 4; in EAS_MixEnginePost()
168 gain = gain >> 4; in EAS_MixEnginePost()
173 …SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) ((EAS_U16) num… in EAS_MixEnginePost()
175 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) numSamples); in EAS_MixEnginePost()
DARM-E_voice_gain_gnu.s59 gain .req r8 label
136 LDR gain, [pWTFrame, #m_prevGain]
137 MOV gain, gain, LSL #(NUM_MIXER_GUARD_BITS + 4)
140 SUB gainIncrement, gainIncrement, gain
148 ADD gain, gain, gainIncrement @ gain step to eliminate zipper noise
149 SMULWB tmp0, gain, tmp0 @ sample * local gain
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dtree_helper.h37 float gain = 0.0; member
59 Eigen::VectorXf* weight, float* gain) { in MultiDimLogitSolveForWeightAndGain() argument
61 *gain = -g.transpose() * (*weight); in MultiDimLogitSolveForWeightAndGain()
68 float* gain) { in CalculateWeightsAndGains() argument
88 *gain = 0.0; in CalculateWeightsAndGains()
96 *gain = 0; in CalculateWeightsAndGains()
99 *gain = -g_with_l1 * weight->coeffRef(0); in CalculateWeightsAndGains()
107 MultiDimLogitSolveForWeightAndGain(hessian_and_reg, g, weight, gain); in CalculateWeightsAndGains()
125 *gain = (-g.array() * (*weight).array()).sum(); in CalculateWeightsAndGains()
130 g, weight, gain); in CalculateWeightsAndGains()
Dtraining_ops.cc106 const float gain = split_entry.second.gain; in Compute() local
110 if (gain < 0) { in Compute()
191 const auto& gain = gains(candidate_idx); in FindBestSplitsPerNode() local
196 candidate.gain = gain; in FindBestSplitsPerNode()
207 GainsAreEqual(gain, best_split_it->second.gain))) { in FindBestSplitsPerNode()
217 GainIsLarger(gain, best_split_it->second.gain)) { in FindBestSplitsPerNode()
312 const float gain = split_entry.second.gain; in Compute() local
318 if (gain < 0) { in Compute()
414 const auto& gain = gains(candidate_idx); in FindBestSplitsPerNode() local
420 candidate.gain = gain; in FindBestSplitsPerNode()
[all …]
/external/webrtc/modules/audio_processing/aec3/
Dsuppression_gain.cc30 void PostprocessGains(std::array<float, kFftLengthBy2Plus1>* gain) { in PostprocessGains() argument
36 (*gain)[0] = (*gain)[1] = std::min((*gain)[1], (*gain)[2]); in PostprocessGains()
43 const float min_upper_gain = (*gain)[kAntiAliasingImpactLimit]; in PostprocessGains()
45 gain->begin() + kAntiAliasingImpactLimit, gain->end() - 1, in PostprocessGains()
47 (*gain)[kFftLengthBy2] = (*gain)[kFftLengthBy2Minus1]; in PostprocessGains()
57 std::accumulate(gain->begin() + 20, in PostprocessGains()
58 gain->begin() + kUpperAccurateBandPlus1, 0.f) * in PostprocessGains()
61 std::for_each(gain->begin() + kUpperAccurateBandPlus1, gain->end(), in PostprocessGains()
195 std::array<float, kFftLengthBy2Plus1>* gain) const { in GainToNoAudibleEcho()
198 for (size_t k = 0; k < gain->size(); ++k) { in GainToNoAudibleEcho()
[all …]
Dsuppression_filter_unittest.cc57 std::array<float, kFftLengthBy2Plus1> gain; in TEST() local
60 .ApplyGain(cn, cn_high_bands, gain, 1.0f, E, nullptr), in TEST()
76 std::array<float, kFftLengthBy2Plus1> gain; in TEST() local
81 gain.fill(1.f); in TEST()
96 filter.ApplyGain(cn, cn_high_bands, gain, 1.f, E, &e); in TEST()
118 std::array<float, kFftLengthBy2Plus1> gain; in TEST() local
124 gain.fill(1.f); in TEST()
125 std::for_each(gain.begin() + 10, gain.end(), [](float& a) { a = 0.f; }); in TEST()
145 filter.ApplyGain(cn, cn_high_bands, gain, 1.f, E, &e); in TEST()
165 std::array<float, kFftLengthBy2Plus1> gain; in TEST() local
[all …]
/external/webrtc/modules/audio_processing/ns/
Dwiener_filter.cc93 float gain = SqrtFastApproximation(energy_after_filtering / in ComputeOverallScalingFactor() local
99 if (gain > kBLim) { in ComputeOverallScalingFactor()
100 scale_factor1 = 1.f + 1.3f * (gain - kBLim); in ComputeOverallScalingFactor()
101 if (gain * scale_factor1 > 1.f) { in ComputeOverallScalingFactor()
102 scale_factor1 = 1.f / gain; in ComputeOverallScalingFactor()
107 if (gain < kBLim) { in ComputeOverallScalingFactor()
110 gain = std::max(gain, suppression_params_.minimum_attenuating_gain); in ComputeOverallScalingFactor()
111 scale_factor2 = 1.f - 0.3f * (kBLim - gain); in ComputeOverallScalingFactor()
/external/libopus/silk/float/
Dscale_vector_FLP.c37 silk_float gain, in silk_scale_vector_FLP() argument
46 data1[ i + 0 ] *= gain; in silk_scale_vector_FLP()
47 data1[ i + 1 ] *= gain; in silk_scale_vector_FLP()
48 data1[ i + 2 ] *= gain; in silk_scale_vector_FLP()
49 data1[ i + 3 ] *= gain; in silk_scale_vector_FLP()
54 data1[ i ] *= gain; in silk_scale_vector_FLP()
Dscale_copy_vector_FLP.c38 silk_float gain, in silk_scale_copy_vector_FLP() argument
47 data_out[ i + 0 ] = gain * data_in[ i + 0 ]; in silk_scale_copy_vector_FLP()
48 data_out[ i + 1 ] = gain * data_in[ i + 1 ]; in silk_scale_copy_vector_FLP()
49 data_out[ i + 2 ] = gain * data_in[ i + 2 ]; in silk_scale_copy_vector_FLP()
50 data_out[ i + 3 ] = gain * data_in[ i + 3 ]; in silk_scale_copy_vector_FLP()
55 data_out[ i ] = gain * data_in[ i ]; in silk_scale_copy_vector_FLP()
Dnoise_shape_analysis_FLP.c45 silk_float gain; in warped_gain() local
48 gain = coefs[ order - 1 ]; in warped_gain()
50 gain = lambda * gain + coefs[ i ]; in warped_gain()
52 return (silk_float)( 1.0f / ( 1.0f - lambda * gain ) ); in warped_gain()
64 silk_float tmp, maxabs, chirp, gain; in warped_true2monic_coefs() local
70 gain = ( 1.0f - lambda * lambda ) / ( 1.0f + lambda * coefs[ 0 ] ); in warped_true2monic_coefs()
72 coefs[ i ] *= gain; in warped_true2monic_coefs()
95 gain = 1.0f / gain; in warped_true2monic_coefs()
97 coefs[ i ] *= gain; in warped_true2monic_coefs()
108 gain = ( 1.0f - lambda * lambda ) / ( 1.0f + lambda * coefs[ 0 ] ); in warped_true2monic_coefs()
[all …]
Dprocess_gains_FLP.c45 silk_float s, InvMaxSqrVal, gain, quant_offset; in silk_process_gains_FLP() local
60 gain = psEncCtrl->Gains[ k ]; in silk_process_gains_FLP()
61 gain = ( silk_float )sqrt( gain * gain + psEncCtrl->ResNrg[ k ] * InvMaxSqrVal ); in silk_process_gains_FLP()
62 psEncCtrl->Gains[ k ] = silk_min_float( gain, 32767.0f ); in silk_process_gains_FLP()
/external/adhd/cras/src/tests/
Dinput_data_unittest.cc86 float gain; in TEST() local
96 gain = input_data_get_software_gain_scaler(data, 0.7f, &stream); in TEST()
97 EXPECT_FLOAT_EQ(1.0f, gain); in TEST()
100 gain = input_data_get_software_gain_scaler(data, 0.7f, &stream); in TEST()
101 EXPECT_FLOAT_EQ(0.56f, gain); in TEST()
105 gain = input_data_get_software_gain_scaler(data, 0.6f, &stream); in TEST()
106 EXPECT_FLOAT_EQ(0.48f, gain); in TEST()
111 gain = input_data_get_software_gain_scaler(data, 0.6f, &stream); in TEST()
112 EXPECT_FLOAT_EQ(0.48f, gain); in TEST()
/external/webrtc/modules/audio_processing/utility/
Dcascaded_biquad_filter.cc20 float gain, in BiQuadParam() argument
24 gain(gain), in BiQuadParam()
36 float gain = param.gain; in BiQuad() local
41 coefficients.b[0] = gain * 1.f; in BiQuad()
43 coefficients.b[2] = gain * -(z_r * z_r); in BiQuad()
46 coefficients.b[0] = gain * 1.f; in BiQuad()
47 coefficients.b[1] = gain * -2.f * z_r; in BiQuad()
48 coefficients.b[2] = gain * (z_r * z_r + z_i * z_i); in BiQuad()
/external/webrtc/modules/audio_coding/codecs/ilbc/
Dcb_construct.c46 int16_t gain[CB_NSTAGES]; in WebRtcIlbcfix_CbConstruct() local
56 gain[0] = WebRtcIlbcfix_GainDequant(gain_index[0], 16384, 0); in WebRtcIlbcfix_CbConstruct()
57 gain[1] = WebRtcIlbcfix_GainDequant(gain_index[1], gain[0], 1); in WebRtcIlbcfix_CbConstruct()
58 gain[2] = WebRtcIlbcfix_GainDequant(gain_index[2], gain[1], 2); in WebRtcIlbcfix_CbConstruct()
70 gainPtr = &gain[0]; in WebRtcIlbcfix_CbConstruct()
/external/libxaac/decoder/drc_src/
Dimpd_drc_peak_limiter.c84 FLOAT32 tmp, gain; in impd_limiter_process() local
116 gain = limit_threshold / maximum; in impd_limiter_process()
118 gain = 1; in impd_limiter_process()
121 if (gain < pre_smoothed_gain) { in impd_limiter_process()
124 (gain - 0.1f * (FLOAT32)pre_smoothed_gain) * 1.11111111f); in impd_limiter_process()
126 gain_modified = gain; in impd_limiter_process()
133 pre_smoothed_gain = max(pre_smoothed_gain, gain); in impd_limiter_process()
140 gain = (FLOAT32)pre_smoothed_gain; in impd_limiter_process()
147 tmp *= gain; in impd_limiter_process()
159 if (gain < min_gain) min_gain = gain; in impd_limiter_process()
/external/webrtc/modules/audio_mixer/
Dgain_change_calculator.cc31 std::vector<float> gain(in.size()); in CalculateGainChange() local
32 CalculateGain(in, out, gain); in CalculateGainChange()
33 return CalculateDifferences(gain); in CalculateGainChange()
42 rtc::ArrayView<float> gain) { in CalculateGain() argument
44 RTC_DCHECK_EQ(in.size(), gain.size()); in CalculateGain()
50 gain[i] = last_reliable_gain_; in CalculateGain()
/external/webrtc/modules/audio_processing/test/conversational_speech/
Dtiming.cc25 b.gain == gain; in operator ==()
35 int gain = 0; in LoadTiming() local
37 gain = std::atof(fields[3].c_str()); in LoadTiming()
39 return Turn(fields[0], fields[1], std::atol(fields[2].c_str()), gain); in LoadTiming()
64 << turn.offset << " " << turn.gain << std::endl; in SaveTiming()
/external/pffft/
Dpf_cic.cpp55 float gain; member
70 …s->gain = 1.0f / SHRT_MAX / sineamp / factor / factor / factor; // compensate for gain of 3 integr… in cicddc_init()
96 float gain = s->gain; in cicddc_s16_c() local
126 output[k].i = (float)out1a * gain; in cicddc_s16_c()
127 output[k].q = (float)out1b * gain; in cicddc_s16_c()
146 float gain = s->gain; in cicddc_cs16_c() local
182 output[k].i = (float)out1a * gain; in cicddc_cs16_c()
183 output[k].q = (float)out1b * gain; in cicddc_cs16_c()
205 float gain = s->gain; in cicddc_cu8_c() local
242 output[k].i = (float)out1a * gain; in cicddc_cu8_c()
[all …]
/external/aac/libAACenc/src/
Dquantize.cpp116 static void FDKaacEnc_quantizeLines(INT gain, INT noOfLines, in FDKaacEnc_quantizeLines() argument
121 FIXP_QTD quantizer = FDKaacEnc_quantTableQ[(-gain) & 3]; in FDKaacEnc_quantizeLines()
122 INT quantizershift = ((-gain) >> 2) + 1; in FDKaacEnc_quantizeLines()
180 static void FDKaacEnc_invQuantizeLines(INT gain, INT noOfLines, in FDKaacEnc_invQuantizeLines() argument
189 iquantizermod = gain & 3; in FDKaacEnc_invQuantizeLines()
190 iquantizershift = gain >> 2; in FDKaacEnc_invQuantizeLines()
313 SHORT *quantSpectrum, INT noOfLines, INT gain, in FDKaacEnc_calcSfbDist() argument
324 FDKaacEnc_quantizeLines(gain, 1, &mdctSpectrum[i], &quantSpectrum[i], in FDKaacEnc_calcSfbDist()
331 FDKaacEnc_invQuantizeLines(gain, 1, &quantSpectrum[i], &invQuantSpec); in FDKaacEnc_calcSfbDist()
363 INT gain, FIXP_DBL *en, in FDKaacEnc_calcSfbQuantEnergyAndDist() argument
[all …]
/external/autotest/client/common_lib/cros/cfm/
Dcras_input_node.py7 def __init__(self, node_id, node_name, gain, node_type, device_id, argument
11 self.gain = int(gain)
19 self.device_name, self.gain))
/external/fec/
Dvtest615.c52 double gain,esn0,ebn0; local
111 gain = 1./sqrt(0.5/pow(10.,esn0/10.));
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);
124 symbols[6*i+2] = addnoise(parity(sr & V615POLYC),gain,Gain,OFFSET,CLIP);
125 symbols[6*i+3] = addnoise(parity(sr & V615POLYD),gain,Gain,OFFSET,CLIP);
126 symbols[6*i+4] = addnoise(parity(sr & V615POLYE),gain,Gain,OFFSET,CLIP);
127 symbols[6*i+5] = addnoise(parity(sr & V615POLYF),gain,Gain,OFFSET,CLIP);
/external/aac/libPCMutils/src/
Dlimiter.cpp172 FIXP_DBL tmp, old, gain, additionalGain = 0; in pcmLimiter_Apply() local
250 gain = fDivNorm(threshold, max) >> 1; in pcmLimiter_Apply()
252 gain = FL2FXCONST_DBL(1.0f / (1 << 1)); in pcmLimiter_Apply()
260 if (gain < smoothState0) { in pcmLimiter_Apply()
262 fMultDiv2((gain - fMultDiv2(FL2FXCONST_SGL(0.1f * (1 << 1)), in pcmLimiter_Apply()
267 cor = gain; in pcmLimiter_Apply()
274 smoothState0 = fMax(smoothState0, gain); /* avoid overshooting target */ in pcmLimiter_Apply()
283 gain = smoothState0; in pcmLimiter_Apply()
286 if (gain < FL2FXCONST_DBL(1.0f / (1 << 1))) { in pcmLimiter_Apply()
287 gain <<= 1; in pcmLimiter_Apply()
[all …]

12345678910>>...20