/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()
|
/frameworks/native/libs/ui/tests/ |
D | BufferHubBuffer_test.cpp | 250 EXPECT_EQ(b1->gain(), 0); in TEST_F() 255 ASSERT_EQ(b1->gain(), 0); in TEST_F() 260 EXPECT_EQ(b1->gain(), 0); in TEST_F() 263 EXPECT_EQ(b2->gain(), -EBUSY); in TEST_F() 267 ASSERT_EQ(b1->gain(), 0); in TEST_F() 273 EXPECT_EQ(b1->gain(), -EBUSY); in TEST_F() 274 EXPECT_EQ(b2->gain(), -EBUSY); in TEST_F() 278 ASSERT_EQ(b1->gain(), 0); in TEST_F() 283 EXPECT_EQ(b1->gain(), 0); in TEST_F() 287 ASSERT_EQ(b1->gain(), 0); in TEST_F() [all …]
|
/frameworks/av/media/libstagefright/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/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/base/media/java/android/media/ |
D | AudioDevicePortConfig.java | 33 int format, AudioGainConfig gain) { in AudioDevicePortConfig() argument 34 super((AudioPort)devicePort, samplingRate, channelMask, format, gain); in AudioDevicePortConfig() local 39 config.gain()); in AudioDevicePortConfig()
|
D | AudioPortConfig.java | 58 AudioGainConfig gain) { in AudioPortConfig() argument 63 mGain = gain; in AudioPortConfig() 99 public AudioGainConfig gain() { in gain() method in AudioPortConfig
|
D | AudioMixPortConfig.java | 33 AudioGainConfig gain) { in AudioMixPortConfig() argument 34 super((AudioPort)mixPort, samplingRate, channelMask, format, gain); in AudioMixPortConfig() local
|
D | AudioPort.java | 175 AudioGain gain(int index) { in gain() method in AudioPort 193 AudioGainConfig gain) { in buildConfig() argument 194 return new AudioPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
D | AudioGainConfig.java | 43 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, in AudioGainConfig() argument 46 mGain = gain; in AudioGainConfig()
|
D | AudioMixPort.java | 49 AudioGainConfig gain) { in buildConfig() argument 50 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain); in buildConfig()
|
/frameworks/av/media/libaudiofoundation/include/media/ |
D | AudioGain.h | 87 for (const auto &gain: *this) { in canUseForVolume() 88 if (gain->canUseForVolume()) { in canUseForVolume() 95 int32_t add(const sp<AudioGain> gain) in add() argument 97 push_back(gain); in add()
|
/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/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/libaudiofoundation/ |
D | AudioPort.cpp | 164 mGain = config->gain; in applyAudioPortConfig() 206 dstConfig->gain = mGain; in toAudioPortConfig() 208 && audioport->checkGain(&srcConfig->gain, srcConfig->gain.index) == OK) { in toAudioPortConfig() 209 dstConfig->gain = srcConfig->gain; in toAudioPortConfig() 212 dstConfig->gain.index = -1; in toAudioPortConfig() 214 if (dstConfig->gain.index != -1) { in toAudioPortConfig()
|
/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/av/services/audiopolicy/common/managerdefinitions/src/ |
D | Serializer.cpp | 335 Element gain = new AudioGain(index++, true); in deserialize() local 339 gain->setMode(GainModeConverter::maskFromString(mode)); in deserialize() 344 gain->setChannelMask(channelMaskFromString(channelsLiteral)); in deserialize() 350 gain->setMinValueInMb(minValueMB); in deserialize() 356 gain->setMaxValueInMb(maxValueMB); in deserialize() 362 gain->setDefaultValueInMb(defaultValueMB); in deserialize() 368 gain->setStepValueInMb(stepValueMB); in deserialize() 374 gain->setMinRampInMs(minRampMs); in deserialize() 380 gain->setMaxRampInMs(maxRampMs); in deserialize() 385 gain->setUseForVolume(useForVolume); in deserialize() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | BubbleFunScorer.java | 82 double gain = shapeFunction(rssi + 0.5) in scoreCandidate() local 89 gain *= LOW_BAND_FACTOR; in scoreCandidate() 92 return new ScoredCandidate(score, TYPICAL_SCAN_RSSI_STD * gain, candidate); in scoreCandidate()
|
/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()
|