/frameworks/av/media/libeffects/testlibs/ |
D | EffectReverb.h | 128 int16_t m_nApGain; // gain for ap 140 int16_t m_nGain[REVERB_MAX_NUM_REFLECTIONS]; // gain for ap 147 int16_t m_nRvbLpfFbk; 148 int16_t m_nRvbLpfFwd; 149 int16_t m_nRoomLpfFbk; 150 int16_t m_nRoomLpfFwd; 152 int16_t m_nEarlyGain; 153 int16_t m_nEarlyDelay; 154 int16_t m_nLateGain; 155 int16_t m_nLateDelay; [all …]
|
D | EffectEqualizer.cpp | 376 if (*pValueSize < sizeof(int16_t)) { in Equalizer_getParameter() 379 *pValueSize = sizeof(int16_t); in Equalizer_getParameter() 383 if (*pValueSize < 2 * sizeof(int16_t)) { in Equalizer_getParameter() 386 *pValueSize = 2 * sizeof(int16_t); in Equalizer_getParameter() 420 ALOGV("Equalizer_getParameter() EQ_PARAM_NUM_BANDS %d", *(int16_t *)pValue); in Equalizer_getParameter() 424 *(int16_t *)pValue = -9600; in Equalizer_getParameter() 425 *((int16_t *)pValue + 1) = 4800; in Equalizer_getParameter() 436 *(int16_t *)pValue = (int16_t)pEqualizer->getGain(param2); in Equalizer_getParameter() 477 ALOGV("Equalizer_getParameter() EQ_PARAM_GET_NUM_OF_PRESETS %d", *(int16_t *)pValue); in Equalizer_getParameter() 495 int16_t *p = (int16_t *)pValue; in Equalizer_getParameter() [all …]
|
D | AudioCommon.h | 68 inline audio_sample_t s15_to_audio_sample_t(int16_t s15) { in s15_to_audio_sample_t() 73 inline int16_t audio_sample_t_to_s15(audio_sample_t sample) { in audio_sample_t_to_s15() 74 return int16_t((sample + (1 << 8)) >> 9); in audio_sample_t_to_s15() 78 inline int16_t audio_sample_t_to_s15_clip(audio_sample_t sample) { in audio_sample_t_to_s15_clip()
|
D | EffectsMath.c | 94 int16_t Effects_MillibelsToLinear16 (int32_t nGain) in Effects_MillibelsToLinear16() 101 return (int16_t)exp2; in Effects_MillibelsToLinear16() 105 int16_t Effects_Linear16ToMillibels (int32_t nGain) in Effects_Linear16ToMillibels() 107 return (int16_t)(((MB_TO_LIN_K2*Effects_log2(nGain))>>15)-MB_TO_LIN_K1); in Effects_Linear16ToMillibels()
|
/frameworks/av/services/audioflinger/ |
D | AudioMixerOps.h | 63 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) { 68 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) { 73 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) { 83 inline float MixMul<float, float, int16_t>(float value, int16_t volume) { 95 inline int16_t MixMul<int16_t, float, int16_t>(float value, int16_t volume) { 96 return clamp16_from_float(MixMul<float, float, int16_t>(value, volume)); 100 inline int16_t MixMul<int16_t, float, int32_t>(float value, int32_t volume) { 105 inline float MixMul<float, int16_t, int16_t>(int16_t value, int16_t volume) { 111 inline float MixMul<float, int16_t, int32_t>(int16_t value, int32_t volume) { 117 inline int16_t MixMul<int16_t, int16_t, int16_t>(int16_t value, int16_t volume) { [all …]
|
D | AudioResamplerFirOps.h | 69 int16_t v = left ? static_cast<int16_t>(vRL) : static_cast<int16_t>(vRL>>16); 75 int32_t mulAdd(int16_t in, int16_t v, int32_t a) 90 int32_t mulAdd(int16_t in, int32_t v, int32_t a) 120 int32_t mulAddRL(int left, uint32_t inRL, int16_t v, int32_t a) 137 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_t>(inRL>>16); 160 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_t>(inRL>>16);
|
D | AudioResamplerFirProcessNeon.h | 76 const int16_t* coefsP, in ProcessNeonIntrinsic() 77 const int16_t* coefsN, in ProcessNeonIntrinsic() 78 const int16_t* sP, in ProcessNeonIntrinsic() 79 const int16_t* sN, in ProcessNeonIntrinsic() 82 const int16_t* coefsP1, in ProcessNeonIntrinsic() 83 const int16_t* coefsN1) in ProcessNeonIntrinsic() 89 coefsP = (const int16_t*)__builtin_assume_aligned(coefsP, 16); in ProcessNeonIntrinsic() 90 coefsN = (const int16_t*)__builtin_assume_aligned(coefsN, 16); in ProcessNeonIntrinsic() 96 coefsP1 = (const int16_t*)__builtin_assume_aligned(coefsP1, 16); in ProcessNeonIntrinsic() 97 coefsN1 = (const int16_t*)__builtin_assume_aligned(coefsN1, 16); in ProcessNeonIntrinsic() [all …]
|
D | AudioResamplerSinc.h | 55 int32_t* out, uint32_t phase, const int16_t *samples, uint32_t vRL); 61 int32_t lerp, const int16_t* samples); 64 inline void read(int16_t*& impulse, uint32_t& phaseFraction, 65 const int16_t* in, size_t inputIndex); 67 int16_t *mState; 68 int16_t *mImpulse; 69 int16_t *mRingFull;
|
D | AudioResamplerSinc.cpp | 164 int16_t v = left ? int16_t(vRL) : int16_t(vRL>>16); in mulRL() 170 int32_t mulAdd(int16_t in, int32_t v, int32_t a) in mulAdd() 202 int16_t s = left ? int16_t(inRL) : int16_t(inRL>>16); in mulAddRL() 253 mState = (int16_t*)memalign(32, stateSize*sizeof(int16_t)); in init() 254 memset(mState, 0, sizeof(int16_t)*stateSize); in init() 299 int16_t* impulse = mImpulse; in resample() 332 int16_t const * const in = mBuffer.i16; in resample() 336 int16_t* head = impulse + headOffset; in resample() 380 int16_t*& impulse, uint32_t& phaseFraction, in read() 381 const int16_t* in, size_t inputIndex) in read() [all …]
|
D | Effects.h | 87 void setInBuffer(int16_t *buffer) { mConfig.inputCfg.buffer.s16 = buffer; } in setInBuffer() 88 int16_t *inBuffer() { return mConfig.inputCfg.buffer.s16; } in inBuffer() 89 void setOutBuffer(int16_t *buffer) { mConfig.outputCfg.buffer.s16 = buffer; } in setOutBuffer() 90 int16_t *outBuffer() { return mConfig.outputCfg.buffer.s16; } in outBuffer() 283 void setInBuffer(int16_t *buffer, bool ownsBuffer = false) { 287 int16_t *inBuffer() const { in inBuffer() 290 void setOutBuffer(int16_t *buffer) { in setOutBuffer() 293 int16_t *outBuffer() const { in outBuffer() 368 int16_t *mInBuffer; // chain input buffer 369 int16_t *mOutBuffer; // chain output buffer
|
D | AudioMixer.cpp | 505 int16_t *pIntSetVolume, int32_t *pIntPrevVolume, int32_t *pIntVolumeInc, in setVolumeRampVariables() 1160 const int16_t vl = t->volume[0]; in volumeStereo() 1161 const int16_t vr = t->volume[1]; in volumeStereo() 1164 const int16_t va = t->auxLevel; in volumeStereo() 1166 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 1167 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 1169 int16_t a = (int16_t)(((int32_t)l + r) >> 1); in volumeStereo() 1177 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 1178 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 1190 const int16_t *in = static_cast<const int16_t *>(t->in); in track__16BitsStereo() [all …]
|
/frameworks/native/opengl/libagl/ |
D | matrix.h | 222 int16_t b0 = b1b0 & 0xffff; in mla3a16() 223 int16_t b1 = (b1b0 >> 16) & 0xffff; in mla3a16() 224 accum = int64_t(a0)*int16_t(b0) >> 16; in mla3a16() 225 accum += int64_t(a1)*int16_t(b1) >> 16; in mla3a16() 226 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16() 263 int16_t b0 = b1b0 & 0xffff; in mla3a16_btb() 264 int16_t b1 = (b1b0 >> 16) & 0xffff; in mla3a16_btb() 265 int16_t b2 = xxb2 & 0xffff; in mla3a16_btb() 266 accum = int64_t(a0)*int16_t(b0) >> 16; in mla3a16_btb() 267 accum += int64_t(a1)*int16_t(b1) >> 16; in mla3a16_btb() [all …]
|
/frameworks/av/media/libeffects/downmix/ |
D | EffectDownmix.h | 99 void Downmix_foldFromQuad(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate); 100 void Downmix_foldFrom5Point1(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate); 101 void Downmix_foldFrom7Point1(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate); 103 uint32_t mask, int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate);
|
D | EffectDownmix.c | 293 int16_t *pSrc, *pDst; in Downmix_Process() 723 int16_t value16; in Downmix_setParameter() 725 pDownmixer, param, *(int16_t *)pValue, *(int32_t *)pValue); in Downmix_setParameter() 735 value16 = *(int16_t *)pValue; in Downmix_setParameter() 778 int16_t *pValue16; in Downmix_getParameter() 783 if (*pSize < sizeof(int16_t)) { in Downmix_getParameter() 787 pValue16 = (int16_t *)pValue; in Downmix_getParameter() 788 *pValue16 = (int16_t) pDownmixer->type; in Downmix_getParameter() 789 *pSize = sizeof(int16_t); in Downmix_getParameter() 819 void Downmix_foldFromQuad(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate) { in Downmix_foldFromQuad() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 139 int16_t SavedRoomLevel; 140 int16_t SavedHfLevel; 141 int16_t SavedDecayTime; 142 int16_t SavedDecayHfRatio; 143 int16_t SavedReverbLevel; 144 int16_t SavedDiffusion; 145 int16_t SavedDensity; 388 static inline int16_t clamp16(int32_t sample) in clamp16() 878 int16_t ReverbConvertLevel(int16_t level){ in ReverbConvertLevel() 879 static int16_t LevelArray[101] = in ReverbConvertLevel() [all …]
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | G711Codec.cpp | 41 int encode(void *payload, int16_t *samples); 42 int decode(int16_t *samples, int count, void *payload, int length); 47 int UlawCodec::encode(void *payload, int16_t *samples) in encode() 67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() 92 int encode(void *payload, int16_t *samples); 93 int decode(int16_t *samples, int count, void *payload, int length); 98 int AlawCodec::encode(void *payload, int16_t *samples) in encode() 117 int AlawCodec::decode(int16_t *samples, int count, void *payload, int length) in decode()
|
D | AmrCodec.cpp | 54 int encode(void *payload, int16_t *samples); 55 int decode(int16_t *samples, int count, void *payload, int length); 100 int AmrCodec::encode(void *payload, int16_t *samples) in encode() 131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length) in decode() 215 int encode(void *payload, int16_t *samples); 216 int decode(int16_t *samples, int count, void *payload, int length); 224 int GsmEfrCodec::encode(void *payload, int16_t *samples) in encode() 242 int GsmEfrCodec::decode(int16_t *samples, int count, void *payload, int length) in decode()
|
D | GsmCodec.cpp | 46 int encode(void *payload, int16_t *samples); 47 int decode(int16_t *samples, int count, void *payload, int length); 54 int GsmCodec::encode(void *payload, int16_t *samples) in encode() 60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) in decode()
|
/frameworks/av/media/libstagefright/codecs/amrwb/test/ |
D | amrwbdec_test.cpp | 47 kMaxSourceDataUnitSize = 477 * sizeof(int16_t) 96 int16_t *decoderCookie; in main() 104 int16_t *inputSampleBuf = (int16_t*) malloc(kMaxSourceDataUnitSize); in main() 108 int16_t *outputBuf = (int16_t*) malloc(kOutputBufferSize); in main() 144 int16_t numSamplesOutput; in main()
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 72 size_t frameSize = mNumChannels * sizeof(int16_t); in read() 75 int16_t *ptr = (int16_t *)buffer->data(); in read() 81 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/ |
D | SoftAMR.cpp | 110 * sizeof(int16_t); in initPorts() 342 if (outHeader->nAllocLen < kNumSamplesPerFrameNB * sizeof(int16_t)) { in onQueueFilled() 344 kNumSamplesPerFrameNB * sizeof(int16_t), outHeader->nAllocLen); in onQueueFilled() 366 reinterpret_cast<int16_t *>(outHeader->pBuffer), in onQueueFilled() 389 if (outHeader->nAllocLen < kNumSamplesPerFrameWB * sizeof(int16_t)) { in onQueueFilled() 391 kNumSamplesPerFrameWB * sizeof(int16_t), outHeader->nAllocLen); in onQueueFilled() 418 int16_t *outPtr = (int16_t *)outHeader->pBuffer; in onQueueFilled() 423 memset(outPtr, 0, kNumSamplesPerFrameWB * sizeof(int16_t)); in onQueueFilled() 432 int16_t numSamplesOutput; in onQueueFilled() 457 outHeader->nFilledLen = kNumSamplesPerFrameNB * sizeof(int16_t); in onQueueFilled() [all …]
|
/frameworks/wilhelm/src/android/ |
D | android_GenericPlayer.h | 76 void setBufferingUpdateThreshold(int16_t thresholdPercent); 156 void bufferingUpdate(int16_t fillLevelPerMille); 187 int16_t mPlaybackRatePermille; 190 int16_t mCacheFill; // cache fill level + played back level in permille 191 int16_t mLastNotifiedCacheFill; // last cache fill level communicated to the listener 192 int16_t mCacheFillNotifThreshold; // threshold in cache fill level for cache fill to be reported
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 56 static inline int16_t clamp16(int32_t sample) in clamp16() 1729 int VolumeSetVolumeLevel(EffectContext *pContext, int16_t level){ in VolumeSetVolumeLevel() 1756 int VolumeGetVolumeLevel(EffectContext *pContext, int16_t *level){ in VolumeGetVolumeLevel() 1821 int16_t VolumeConvertStereoPosition(int16_t position){ in VolumeConvertStereoPosition() 1822 int16_t convertedPosition = 0; in VolumeConvertStereoPosition() 1824 convertedPosition = (int16_t)(((float)position/1000)*96); in VolumeConvertStereoPosition() 1841 int VolumeSetStereoPosition(EffectContext *pContext, int16_t position){ in VolumeSetStereoPosition() 1906 int32_t VolumeGetStereoPosition(EffectContext *pContext, int16_t *position){ in VolumeGetStereoPosition() 2024 if (*pValueSize != sizeof(int16_t)){ in BassBoost_getParameter() 2028 *pValueSize = sizeof(int16_t); in BassBoost_getParameter() [all …]
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 117 int16_t *inBuf; // input buffer used when resampling 121 int16_t *outBuf; // output buffer used when resampling 131 int16_t *revBuf; // reverse channel input buffer 306 if (*pValueSize < sizeof(int16_t)) { in AgcGetParameter() 332 *(int16_t *) pValue = (int16_t)(agc->target_level_dbfs() * -100); in AgcGetParameter() 333 ALOGV("AgcGetParameter() target level %d milliBels", *(int16_t *) pValue); in AgcGetParameter() 336 *(int16_t *) pValue = (int16_t)(agc->compression_gain_db() * 100); in AgcGetParameter() 337 ALOGV("AgcGetParameter() comp gain %d milliBels", *(int16_t *) pValue); in AgcGetParameter() 342 (*(int16_t *) pValue != 0) ? "true" : "false"); in AgcGetParameter() 345 pProperties->targetLevel = (int16_t)(agc->target_level_dbfs() * -100); in AgcGetParameter() [all …]
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 80 uint32_t frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount; in AudioSource() 209 int32_t stopFrame = startFrame + bytes / sizeof(int16_t); in rampVolume() 210 int16_t *frame = (int16_t *) data; in rampVolume() 276 (int16_t *) buffer->data(), buffer->range_length() >> 1); in read() 399 void AudioSource::trackMaxAmplitude(int16_t *data, int nSamples) { in trackMaxAmplitude() 401 int16_t value = *data++; in trackMaxAmplitude() 411 int16_t AudioSource::getMaxAmplitude() { in getMaxAmplitude() 416 int16_t value = mMaxAmplitude; in getMaxAmplitude()
|