Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dg_pitch.c37 Word16 xy, yy, exp_xy, exp_yy, gain; in G_pitch() local
63 gain = div_s(xy, yy); in G_pitch()
68 gain = shl(gain, i); in G_pitch()
71 if(gain > 19661) in G_pitch()
73 gain = 19661; in G_pitch()
75 return (gain); in G_pitch()
Dgpclip.c94 Word16 gain; in Gp_clip_test_gain_pit() local
99 gain = extract_h(L_tmp); in Gp_clip_test_gain_pit()
101 if(gain < GAIN_PIT_MIN) in Gp_clip_test_gain_pit()
103 gain = GAIN_PIT_MIN; in Gp_clip_test_gain_pit()
105 mem[1] = gain; in Gp_clip_test_gain_pit()
Dupdt_tar.c31 Word16 gain, /* (i) Q14 : adaptive codebook gain */ in Updt_tar() argument
41 L_tmp2 = L_mult(y[i], gain); in Updt_tar()
Ddtx.c167 Word16 log_en, gain, level, exp, exp0, tmp; in dtx_enc() local
270 gain = extract_h(ener32); in dtx_enc()
272 gain = mult(level, gain); /* gain in Q15 */ in dtx_enc()
281 tmp = mult(exc2[i], gain); /* Q0 * Q15 */ in dtx_enc()
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dquantize.c56 static Word16 quantizeSingleLine(const Word16 gain, const Word32 absSpectrum) in quantizeSingleLine() argument
68 minusFinalExp = (e << 2) + gain; in quantizeSingleLine()
104 static void quantizeLines(const Word16 gain, in quantizeLines() argument
110 Word32 m = gain&3; in quantizeLines()
111 Word32 g = (gain >> 2) + 4; in quantizeLines()
155 qua = quantizeSingleLine(gain, sa); in quantizeLines()
202 qua = quantizeSingleLine(gain, sa); in quantizeLines()
228 static void iquantizeLines(const Word16 gain, in iquantizeLines() argument
237 iquantizermod = gain & 3; in iquantizeLines()
238 iquantizershift = gain >> 2; in iquantizeLines()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dq_gain_p.cpp182 Word16 *gain, /* i/o: Pitch gain (unquant/quant), Q14 */ in q_gain_pitch() argument
193 err_min = sub(*gain, qua_gain_pitch[0], pOverflow); in q_gain_pitch()
202 err = sub(*gain, qua_gain_pitch[i], pOverflow); in q_gain_pitch()
248 *gain = qua_gain_pitch[index]; in q_gain_pitch()
259 *gain = qua_gain_pitch[index] & 0xFFFC; in q_gain_pitch()
263 *gain = qua_gain_pitch[index]; in q_gain_pitch()
Dg_pitch.cpp313 Word16 gain; in G_pitch() local
444 gain = div_s(xy, yy); in G_pitch()
448 gain = shr(gain, i, pOverflow); in G_pitch()
452 if (gain > 19661) in G_pitch()
454 gain = 19661; in G_pitch()
460 gain = gain & 0xfffC; in G_pitch()
463 return(gain); in G_pitch()
Dq_gain_c.cpp195 Word16 *gain, /* i/o: quantized fixed codebook gain, Q1 */ in q_gain_code() argument
214 g_q0 = *gain >> 1; /* Q1 -> Q0 */ in q_gain_code()
218 g_q0 = *gain; in q_gain_code()
281 *gain = temp << 1; in q_gain_code()
285 *gain = temp; in q_gain_code()
Dg_code.cpp236 Word16 xy, yy, exp_xy, exp_yy, gain; in G_code() local
303 gain = div_s(xy, yy); in G_code()
313 gain >>= i - 1; in G_code()
317 gain <<= 1 - i; in G_code()
321 return (gain); in G_code()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dd_gain_p.cpp181 Word16 gain; in d_gain_pitch() local
183 gain = qua_gain_pitch[index]; in d_gain_pitch()
188 gain &= 0xFFFC; in d_gain_pitch()
191 return gain; in d_gain_pitch()
Dagc.cpp753 Word16 gain; in agc() local
819 gain = st->past_gain; in agc()
825 gain = (Word16)(((Word32) gain * agc_fac) >> 15); in agc()
828 gain += g0; in agc()
831 L_temp = ((Word32)(*(p_sig_out)) * gain) << 1; in agc()
836 st->past_gain = gain; in agc()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DConfigParsingUtils.cpp38 sp<AudioGain> gain = new AudioGain(index, audioPort.useInputChannelMask()); in loadAudioPortGain() local
42 gain->setMode(GainModeConverter::maskFromString(node->value)); in loadAudioPortGain()
47 gain->setChannelMask(mask); in loadAudioPortGain()
51 gain->setChannelMask(mask); in loadAudioPortGain()
55 gain->setMinValueInMb(atoi(node->value)); in loadAudioPortGain()
57 gain->setMaxValueInMb(atoi(node->value)); in loadAudioPortGain()
59 gain->setDefaultValueInMb(atoi(node->value)); in loadAudioPortGain()
61 gain->setStepValueInMb(atoi(node->value)); in loadAudioPortGain()
63 gain->setMinRampInMs(atoi(node->value)); in loadAudioPortGain()
65 gain->setMaxRampInMs(atoi(node->value)); in loadAudioPortGain()
[all …]
DAudioPort.cpp422 status = audioport->checkGain(&config->gain, config->gain.index); in applyAudioPortConfig()
426 mGain = config->gain; in applyAudioPortConfig()
468 dstConfig->gain = mGain; in toAudioPortConfig()
470 && audioport->checkGain(&srcConfig->gain, srcConfig->gain.index) == OK) { in toAudioPortConfig()
471 dstConfig->gain = srcConfig->gain; in toAudioPortConfig()
474 dstConfig->gain.index = -1; in toAudioPortConfig()
476 if (dstConfig->gain.index != -1) { in toAudioPortConfig()
DSerializer.cpp126 status_t AudioGainTraits::deserialize(_xmlDoc */*doc*/, const _xmlNode *root, PtrElement &gain, in deserialize() argument
130 gain = new Element(index++, true); in deserialize()
134 gain->setMode(GainModeConverter::maskFromString(mode)); in deserialize()
139 gain->setChannelMask(channelMaskFromString(channelsLiteral)); in deserialize()
145 gain->setMinValueInMb(minValueMB); in deserialize()
151 gain->setMaxValueInMb(maxValueMB); in deserialize()
157 gain->setDefaultValueInMb(defaultValueMB); in deserialize()
163 gain->setStepValueInMb(stepValueMB); in deserialize()
169 gain->setMinRampInMs(minRampMs); in deserialize()
175 gain->setMaxRampInMs(maxRampMs); in deserialize()
[all …]
/frameworks/base/media/java/android/media/
DAudioDevicePortConfig.java30 int format, AudioGainConfig gain) { in AudioDevicePortConfig() argument
31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local
36 config.gain()); in AudioDevicePortConfig()
DAudioPortConfig.java49 AudioGainConfig gain) { in AudioPortConfig() argument
54 mGain = gain; in AudioPortConfig()
90 public AudioGainConfig gain() { in gain() method in AudioPortConfig
DAudioMixPortConfig.java30 AudioGainConfig gain) { in AudioMixPortConfig() argument
31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
DAudioPort.java166 AudioGain gain(int index) { in gain() method in AudioPort
183 AudioGainConfig gain) { in buildConfig() argument
184 return new AudioPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
DAudioGainConfig.java35 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, in AudioGainConfig() argument
38 mGain = gain; in AudioGainConfig()
DAudioMixPort.java46 AudioGainConfig gain) { in buildConfig() argument
47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
DAudioDevicePort.java77 AudioGainConfig gain) { in buildConfig() argument
78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
/frameworks/wilhelm/src/itf/
DIOutputMixExt.cpp216 float gain = track->mGains[channel]; in IOutputMixExt_FillBuffer() local
217 gains[channel] = gain; in IOutputMixExt_FillBuffer()
219 if (gain <= 0.001) { in IOutputMixExt_FillBuffer()
221 } else if (gain >= 0.999) { in IOutputMixExt_FillBuffer()
447 float gain; in audioPlayerGainUpdate() local
449 gain = 0.0f; in audioPlayerGainUpdate()
451 gain = playerGain; in audioPlayerGainUpdate()
456 gain *= (1000 - stereoPosition) / 1000.0f; in audioPlayerGainUpdate()
461 gain *= (1000 + stereoPosition) / 1000.0f; in audioPlayerGainUpdate()
470 audioPlayer->mGains[channel] = gain; in audioPlayerGainUpdate()
/frameworks/av/media/libeffects/testlibs/
DEffectsMath.h171 #define MULT_EG1_EG1(gain,damping) /*lint -e(704) <avoid divide for performance>*/ \ argument
174 ((int32_t)(gain)) * ((int32_t)(damping)) \
190 #define MULT_EG1_EG1_X2(gain,damping) /*lint -e(702) <avoid divide for performance>*/ \ argument
193 ((int32_t)(gain)) * ((int32_t)(damping)) \
/frameworks/base/media/mca/filterfw/native/core/
Dstatistics.h50 explicit RCFilter(float gain) in RCFilter() argument
51 : gain_(gain), n_(0), value_(0.0f) {} in RCFilter()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp233 float gain = 0.98f / maxSample; in printAudioGraph() local
237 sample *= gain; in printAudioGraph()
267 double gain = 1.0; in main() local
293 gain = atof(&arg[2]); in main()
332 loopbackData.echoAnalyzer.setGain(gain); in main()

12