/frameworks/av/media/codecs/amrwb/enc/src/ |
D | g_pitch.c | 37 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()
|
D | gpclip.c | 94 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()
|
D | updt_tar.c | 31 Word16 gain, /* (i) Q14 : adaptive codebook gain */ in Updt_tar() argument 41 L_tmp2 = L_mult(y[i], gain); in Updt_tar()
|
D | dtx.c | 167 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/codecs/amrnb/enc/src/ |
D | q_gain_p.cpp | 182 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()
|
D | g_pitch.cpp | 313 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()
|
D | q_gain_c.cpp | 195 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()
|
D | g_code.cpp | 236 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/codecs/amrnb/dec/src/ |
D | d_gain_p.cpp | 181 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()
|
D | agc.cpp | 753 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/media/libaudiofoundation/ |
D | AudioPort.cpp | 251 mGain = config->gain; in applyAudioPortConfig() 293 dstConfig->gain = mGain; in toAudioPortConfig() 295 && audioport->checkGain(&srcConfig->gain, srcConfig->gain.index) == OK) { in toAudioPortConfig() 296 dstConfig->gain = srcConfig->gain; in toAudioPortConfig() 299 dstConfig->gain.index = -1; in toAudioPortConfig() 301 if (dstConfig->gain.index != -1) { in toAudioPortConfig() 345 parcelable->gain.index = VALUE_OR_RETURN_STATUS(convertIntegral<int32_t>(mGain.index)); in writeToParcelable() 346 parcelable->gain.mode = VALUE_OR_RETURN_STATUS( in writeToParcelable() 348 parcelable->gain.channelMask = VALUE_OR_RETURN_STATUS( in writeToParcelable() 350 parcelable->gain.rampDurationMs = VALUE_OR_RETURN_STATUS( in writeToParcelable() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioDevicePortConfig.java | 34 int format, AudioGainConfig gain) { in AudioDevicePortConfig() argument 35 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local 40 config.gain()); in AudioDevicePortConfig()
|
D | AudioPortConfig.java | 59 AudioGainConfig gain) { in AudioPortConfig() argument 64 mGain = gain; in AudioPortConfig() 100 public AudioGainConfig gain() { in gain() method in AudioPortConfig
|
D | AudioMixPortConfig.java | 34 AudioGainConfig gain) { in AudioMixPortConfig() argument 35 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
|
D | AudioGainConfig.java | 43 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, in AudioGainConfig() argument 46 mGain = gain; in AudioGainConfig()
|
D | AudioMixPort.java | 58 AudioGainConfig gain) { in buildConfig() argument 59 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
D | AudioPort.java | 235 AudioGain gain(int index) { in gain() method in AudioPort 253 AudioGainConfig gain) { in buildConfig() argument 254 return new AudioPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
/frameworks/wilhelm/src/itf/ |
D | IOutputMixExt.cpp | 216 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/libaudiofoundation/include/media/ |
D | AudioGain.h | 98 for (const auto &gain: *this) { in canUseForVolume() 99 if (gain->canUseForVolume()) { in canUseForVolume() 106 int32_t add(const sp<AudioGain> gain) in add() argument 108 push_back(gain); in add()
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPBase.h | 104 void init(bool enabled, float cutoffFrequency, float gain); 106 void setGain(float gain); 271 void setInputGain(float gain) { in setInputGain() argument 272 mInputGainDb = gain; in setInputGain() 281 void setOutputGain(float gain) { in setOutputGain() argument 282 mOutputGainDb = gain; in setOutputGain()
|
D | DPBase.cpp | 62 void DPEqBand::init(bool enabled, float cutoffFrequency, float gain) { in init() argument 64 setGain(gain); in init() 71 void DPEqBand::setGain(float gain) { in setGain() argument 72 mGainDb = gain; in setGain()
|
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
D | LVEQNB_Process.cpp | 111 const auto gain = pInstance->gain[i]; in LVEQNB_Process() local 113 pScratch[j] += pTemp[j] * gain; in LVEQNB_Process()
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectsMath.h | 171 #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/ |
D | statistics.h | 50 explicit RCFilter(float gain) in RCFilter() argument 51 : gain_(gain), n_(0), value_(0.0f) {} in RCFilter()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | Serializer.cpp | 356 AudioGainTraits::Element gain = new AudioGain(index++, true); in deserialize() local 360 gain->setMode(GainModeConverter::maskFromString(mode, " ")); in deserialize() 365 gain->setChannelMask(channelMaskFromString(channelsLiteral)); in deserialize() 371 gain->setMinValueInMb(minValueMB); in deserialize() 377 gain->setMaxValueInMb(maxValueMB); in deserialize() 383 gain->setDefaultValueInMb(defaultValueMB); in deserialize() 389 gain->setStepValueInMb(stepValueMB); in deserialize() 395 gain->setMinRampInMs(minRampMs); in deserialize() 401 gain->setMaxRampInMs(maxRampMs); in deserialize() 406 gain->setUseForVolume(useForVolume); in deserialize() [all …]
|