/frameworks/av/media/libstagefright/codecs/amrwbenc/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/libstagefright/codecs/aacenc/src/ |
D | quantize.c | 56 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/ |
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_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 | 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/libstagefright/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/services/audiopolicy/common/managerdefinitions/src/ |
D | ConfigParsingUtils.cpp | 38 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 …]
|
D | AudioPort.cpp | 420 status = audioport->checkGain(&config->gain, config->gain.index); in applyAudioPortConfig() 424 mGain = config->gain; in applyAudioPortConfig() 466 dstConfig->gain = mGain; in toAudioPortConfig() 468 && audioport->checkGain(&srcConfig->gain, srcConfig->gain.index) == OK) { in toAudioPortConfig() 469 dstConfig->gain = srcConfig->gain; in toAudioPortConfig() 472 dstConfig->gain.index = -1; in toAudioPortConfig() 474 if (dstConfig->gain.index != -1) { in toAudioPortConfig()
|
D | Serializer.cpp | 126 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/ |
D | AudioDevicePortConfig.java | 30 int format, AudioGainConfig gain) { in AudioDevicePortConfig() argument 31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local 36 config.gain()); in AudioDevicePortConfig()
|
D | AudioPortConfig.java | 49 AudioGainConfig gain) { in AudioPortConfig() argument 54 mGain = gain; in AudioPortConfig() 90 public AudioGainConfig gain() { in gain() method in AudioPortConfig
|
D | AudioPort.java | 166 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()
|
D | AudioMixPortConfig.java | 30 AudioGainConfig gain) { in AudioMixPortConfig() argument 31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
|
D | AudioGainConfig.java | 35 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, in AudioGainConfig() argument 38 mGain = gain; in AudioGainConfig()
|
D | AudioMixPort.java | 46 AudioGainConfig gain) { in buildConfig() argument 47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
D | AudioDevicePort.java | 77 AudioGainConfig gain) { in buildConfig() argument 78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
/frameworks/wilhelm/src/itf/ |
D | IOutputMixExt.c | 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/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/audioflinger/ |
D | AudioResamplerFirProcess.h | 92 inline void volume(TO*& out, TO gain) { in volume() argument 93 *out++ = volumeAdjust(value, gain); in volume() 94 Accumulator<CHANNELS-1, TO>::volume(out, gain); in volume() 108 inline void volume(TO*& out __unused, TO gain __unused) { in volume()
|