/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 | 379 if (*pValueSize < sizeof(int16_t)) { in Equalizer_getParameter() 382 *pValueSize = sizeof(int16_t); in Equalizer_getParameter() 386 if (*pValueSize < 2 * sizeof(int16_t)) { in Equalizer_getParameter() 389 *pValueSize = 2 * sizeof(int16_t); in Equalizer_getParameter() 423 ALOGV("Equalizer_getParameter() EQ_PARAM_NUM_BANDS %d", *(int16_t *)pValue); in Equalizer_getParameter() 427 *(int16_t *)pValue = -9600; in Equalizer_getParameter() 428 *((int16_t *)pValue + 1) = 4800; in Equalizer_getParameter() 439 *(int16_t *)pValue = (int16_t)pEqualizer->getGain(param2); in Equalizer_getParameter() 480 ALOGV("Equalizer_getParameter() EQ_PARAM_GET_NUM_OF_PRESETS %d", *(int16_t *)pValue); in Equalizer_getParameter() 498 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 | 96 int16_t Effects_MillibelsToLinear16 (int32_t nGain) in Effects_MillibelsToLinear16() 103 return (int16_t)exp2; in Effects_MillibelsToLinear16() 107 int16_t Effects_Linear16ToMillibels (int32_t nGain) in Effects_Linear16ToMillibels() 109 return (int16_t)(((MB_TO_LIN_K2*Effects_log2(nGain))>>15)-MB_TO_LIN_K1); in Effects_Linear16ToMillibels()
|
/frameworks/av/media/libaudioprocessing/ |
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 | 76 int16_t v = left ? static_cast<int16_t>(vRL) : static_cast<int16_t>(vRL>>16); 82 int32_t mulAdd(int16_t in, int16_t v, int32_t a) 97 int32_t mulAdd(int16_t in, int32_t v, int32_t a) 127 int32_t mulAddRL(int left, uint32_t inRL, int16_t v, int32_t a) 144 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_t>(inRL>>16); 167 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_t>(inRL>>16);
|
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 | 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.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 | AudioMixer.cpp | 509 int16_t *pIntSetVolume, int32_t *pIntPrevVolume, int32_t *pIntVolumeInc, in setVolumeRampVariables() 1164 const int16_t vl = t->volume[0]; in volumeStereo() 1165 const int16_t vr = t->volume[1]; in volumeStereo() 1168 const int16_t va = t->auxLevel; in volumeStereo() 1170 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 1171 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 1173 int16_t a = (int16_t)(((int32_t)l + r) >> 1); in volumeStereo() 1181 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 1182 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 1194 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 | 107 void Downmix_foldFromQuad(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate); 108 void Downmix_foldFrom5Point1(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate); 109 void Downmix_foldFrom7Point1(int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate); 111 uint32_t mask, int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate);
|
/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/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 142 int16_t SavedRoomLevel; 143 int16_t SavedHfLevel; 144 int16_t SavedDecayTime; 145 int16_t SavedDecayHfRatio; 146 int16_t SavedReverbLevel; 147 int16_t SavedDiffusion; 148 int16_t SavedDensity; 448 static inline int16_t clamp16(int32_t sample) in clamp16() 1001 int16_t ReverbConvertLevel(int16_t level){ in ReverbConvertLevel() 1002 static int16_t LevelArray[101] = in ReverbConvertLevel() [all …]
|
/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/libaaudio/src/utility/ |
D | AAudioUtilities.h | 49 int16_t *destination, 67 int16_t *destination, 90 void AAudioConvert_pcm16ToFloat(const int16_t *source, 108 void AAudioConvert_pcm16ToFloat(const int16_t *source, 148 void AAudio_linearRamp(const int16_t *source, 149 int16_t *destination,
|
D | AAudioUtilities.cpp | 42 size = sizeof(int16_t); in AAudioConvert_formatToSizeInBytes() 55 static inline int16_t clamp16_from_float(float f) { in clamp16_from_float() 83 static inline int16_t floatToInt16(float f) { in floatToInt16() 104 int16_t *destination, in AAudioConvert_floatToPcm16() 115 int16_t *destination, in AAudioConvert_floatToPcm16() 134 void AAudioConvert_pcm16ToFloat(const int16_t *source, in AAudioConvert_pcm16ToFloat() 145 void AAudioConvert_pcm16ToFloat(const int16_t *source, in AAudioConvert_pcm16ToFloat() 185 void AAudio_linearRamp(const int16_t *source, in AAudio_linearRamp() 186 int16_t *destination, in AAudio_linearRamp()
|
/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 | 67 static inline int16_t clamp16(int32_t sample) in clamp16() 1930 int VolumeSetVolumeLevel(EffectContext *pContext, int16_t level){ in VolumeSetVolumeLevel() 1957 int VolumeGetVolumeLevel(EffectContext *pContext, int16_t *level){ in VolumeGetVolumeLevel() 2022 int16_t VolumeConvertStereoPosition(int16_t position){ in VolumeConvertStereoPosition() 2023 int16_t convertedPosition = 0; in VolumeConvertStereoPosition() 2025 convertedPosition = (int16_t)(((float)position/1000)*96); in VolumeConvertStereoPosition() 2042 int VolumeSetStereoPosition(EffectContext *pContext, int16_t position){ in VolumeSetStereoPosition() 2107 int32_t VolumeGetStereoPosition(EffectContext *pContext, int16_t *position){ in VolumeGetStereoPosition() 2233 if (*pValueSize != sizeof(int16_t)) { // legacy: check equality here. in BassBoost_getParameter() 2241 *(int16_t *)pValue = BassGetStrength(pContext); in BassBoost_getParameter() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/ |
D | SoftAMR.cpp | 110 * sizeof(int16_t); in initPorts() 389 if (outHeader->nAllocLen < kNumSamplesPerFrameNB * sizeof(int16_t)) { in onQueueFilled() 391 kNumSamplesPerFrameNB * sizeof(int16_t), outHeader->nAllocLen); in onQueueFilled() 413 reinterpret_cast<int16_t *>(outHeader->pBuffer), in onQueueFilled() 436 if (outHeader->nAllocLen < kNumSamplesPerFrameWB * sizeof(int16_t)) { in onQueueFilled() 438 kNumSamplesPerFrameWB * sizeof(int16_t), outHeader->nAllocLen); in onQueueFilled() 465 int16_t *outPtr = (int16_t *)outHeader->pBuffer; in onQueueFilled() 470 memset(outPtr, 0, kNumSamplesPerFrameWB * sizeof(int16_t)); in onQueueFilled() 479 int16_t numSamplesOutput; in onQueueFilled() 504 outHeader->nFilledLen = kNumSamplesPerFrameNB * sizeof(int16_t); in onQueueFilled() [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/libaudioprocessing/tests/ |
D | test-resampler.cpp | 230 input_size = channels * sizeof(int16_t) * input_frames; in main() 232 int16_t* in = (int16_t*)input_vaddr; in main() 236 int16_t yi = floor(y * 32767.0 + 0.5); in main() 242 size_t input_framesize = channels * sizeof(int16_t); in main() 253 reinterpret_cast<int16_t*>(input_vaddr), input_frames * channels); in main() 476 int16_t* convert = (int16_t*) malloc(output_frames * channels * sizeof(int16_t)); in main() 496 convert[i * channels + j] = int16_t(s); in main()
|