/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()
|
/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 | 83 int16_t v = left ? static_cast<int16_t>(vRL) : static_cast<int16_t>(vRL>>16); 89 int32_t mulAdd(int16_t in, int16_t v, int32_t a) 104 int32_t mulAdd(int16_t in, int32_t v, int32_t a) 134 int32_t mulAddRL(int left, uint32_t inRL, int16_t v, int32_t a) 151 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_t>(inRL>>16); 174 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 | 165 int16_t v = left ? int16_t(vRL) : int16_t(vRL>>16); in mulRL() 171 int32_t mulAdd(int16_t in, int32_t v, int32_t a) in mulAdd() 203 int16_t s = left ? int16_t(inRL) : int16_t(inRL>>16); in mulAddRL() 254 mState = (int16_t*)memalign(32, stateSize*sizeof(int16_t)); in init() 255 memset(mState, 0, sizeof(int16_t)*stateSize); in init() 300 int16_t* impulse = mImpulse; in resample() 333 int16_t const * const in = mBuffer.i16; in resample() 337 int16_t* head = impulse + headOffset; in resample() 381 int16_t*& impulse, uint32_t& phaseFraction, in read() 382 const int16_t* in, size_t inputIndex) in read() [all …]
|
D | AudioMixerBase.cpp | 245 int16_t *pIntSetVolume, int32_t *pIntPrevVolume, int32_t *pIntVolumeInc, in setVolumeRampVariables() 820 const int16_t vl = volume[0]; in volumeStereo() 821 const int16_t vr = volume[1]; in volumeStereo() 824 const int16_t va = auxLevel; in volumeStereo() 826 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 827 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 829 int16_t a = (int16_t)(((int32_t)l + r) >> 1); in volumeStereo() 837 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 838 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 850 const int16_t *in = static_cast<const int16_t *>(mIn); in track__16BitsStereo() [all …]
|
/frameworks/ml/nn/common/ |
D | QuantUtils.h | 34 const int16_t output_max = std::numeric_limits<T>::max(); in MatrixBatchVectorMultiplyAccumulate() 35 const int16_t output_min = std::numeric_limits<T>::min(); in MatrixBatchVectorMultiplyAccumulate() 136 void ApplyLayerNorm(const int16_t* input, const int16_t* layer_norm_weights, const int32_t* bias, 138 int n_batch, int n_input, int16_t* output); 147 void ApplySigmoid(const int16_t* input, int32_t n_batch, int32_t n_input, int16_t* output); 150 void ApplyTanh(const int16_t* input, int32_t n_batch, int32_t n_input, int16_t* output) { in ApplyTanh() 151 using FX = gemmlowp::FixedPoint<std::int16_t, IntegerBits>; in ApplyTanh() 152 using F0 = gemmlowp::FixedPoint<std::int16_t, 0>; in ApplyTanh() 163 inline void ApplyTanh(int32_t integer_bits, const int16_t* input, int32_t n_batch, int32_t n_input, in ApplyTanh() 164 int16_t* output) { in ApplyTanh() [all …]
|
D | QuantUtils.cpp | 10 void ApplyLayerNorm(const int16_t* input, const int16_t* layer_norm_weights, const int32_t* bias, in ApplyLayerNorm() 12 int n_batch, int n_input, int16_t* output) { in ApplyLayerNorm() 48 output[index] = static_cast<int16_t>(val5); in ApplyLayerNorm() 86 void ApplySigmoid(const int16_t* input, int32_t n_batch, int32_t n_input, int16_t* output) { in ApplySigmoid() 89 using F3 = gemmlowp::FixedPoint<std::int16_t, 3>; in ApplySigmoid() 90 using F0 = gemmlowp::FixedPoint<std::int16_t, 0>; in ApplySigmoid() 99 void CwiseMul(const int16_t* input_1, const int16_t* input_2, int n_batch, int n_input, int shift, in CwiseMul() 100 int16_t* output) { in CwiseMul() 104 const int16_t a = input_1[index]; in CwiseMul() 105 const int16_t b = input_2[index]; in CwiseMul() [all …]
|
/frameworks/native/opengl/libagl/ |
D | matrix.h | 178 int16_t b0 = b1b0 & 0xffff; in mla3a16() 179 int16_t b1 = (b1b0 >> 16) & 0xffff; in mla3a16() 180 accum = int64_t(a0)*int16_t(b0) >> 16; in mla3a16() 181 accum += int64_t(a1)*int16_t(b1) >> 16; in mla3a16() 182 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16() 219 int16_t b0 = b1b0 & 0xffff; in mla3a16_btb() 220 int16_t b1 = (b1b0 >> 16) & 0xffff; in mla3a16_btb() 221 int16_t b2 = xxb2 & 0xffff; in mla3a16_btb() 222 accum = int64_t(a0)*int16_t(b0) >> 16; in mla3a16_btb() 223 accum += int64_t(a1)*int16_t(b1) >> 16; in mla3a16_btb() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 144 int16_t SavedRoomLevel; 145 int16_t SavedHfLevel; 146 int16_t SavedDecayTime; 147 int16_t SavedDecayHfRatio; 148 int16_t SavedReverbLevel; 149 int16_t SavedDiffusion; 150 int16_t SavedDensity; 799 int16_t ReverbConvertLevel(int16_t level){ in ReverbConvertLevel() 800 static int16_t LevelArray[101] = in ReverbConvertLevel() 814 int16_t i; in ReverbConvertLevel() [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 | 44 int encode(void *payload, int16_t *samples); 45 int decode(int16_t *samples, int count, void *payload, int length); 52 int GsmCodec::encode(void *payload, int16_t *samples) in encode() 58 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()
|
D | AmrwbDecoderTest.cpp | 37 constexpr int32_t kMaxSourceDataUnitSize = KAMRWB_NB_BITS_MAX * sizeof(int16_t); 58 int32_t DecodeFrames(int16_t *decoderCookie, void *decoderBuf, SNDFILE *outFileHandle, 72 int32_t AmrwbDecoderTest::DecodeFrames(int16_t *decoderCookie, void *decoderBuf, in DecodeFrames() 75 int16_t inputSampleBuf[kMaxSourceDataUnitSize]; in DecodeFrames() 76 int16_t outputBuf[kOutputBufferSize]; in DecodeFrames() 104 int16_t numSamplesOutput; in DecodeFrames() 130 int16_t *decoderCookie; in TEST_F() 149 int16_t *decoderCookie; in TEST_P() 179 int16_t *decoderCookie; in TEST_P()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | ToneGenerator.h | 328 void getSamples(int16_t *outBuffer, unsigned int count, 332 static const int16_t GEN_AMP = 32000; // amplitude of generator 333 static const int16_t S_Q14 = 14; // shift for Q14 334 static const int16_t S_Q15 = 15; // shift for Q15 336 int16_t mA1_Q14; // Q14 coefficient 339 int16_t mS2_0; // saved value for reinitialisation 340 int16_t mAmplitude_Q15; // Q15 amplitude
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 73 size_t frameSize = mNumChannels * sizeof(int16_t); in read() 76 int16_t *ptr = (int16_t *)buffer->data(); in read() 82 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read()
|
/frameworks/av/media/libstagefright/codecs/amrwb/fuzzer/ |
D | amrwb_dec_fuzzer.cpp | 29 constexpr int32_t kMaxSourceDataUnitSize = KAMRWB_NB_BITS_MAX * sizeof(int16_t); 44 int16_t *mDecoderCookie = nullptr; 75 int16_t inputSampleBuf[kMaxSourceDataUnitSize]; in decodeFrames() 87 int16_t numSamplesOutput; in decodeFrames() 88 int16_t outputBuf[kOutputBufferSize]; in decodeFrames()
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_3/ |
D | qlstm_projection.example.cpp | 108 .data = TestBuffer::createFromVector<int16_t>({}), in get_test_model() 118 .data = TestBuffer::createFromVector<int16_t>({}), in get_test_model() 128 .data = TestBuffer::createFromVector<int16_t>({}), in get_test_model() 208 .data = TestBuffer::createFromVector<int16_t>({0, 0, 0, 0, 0, 0, 0, 0}), in get_test_model() 218 … .data = TestBuffer::createFromVector<int16_t>({3277, 6553, 9830, 16384}), in get_test_model() 228 … .data = TestBuffer::createFromVector<int16_t>({6553, 6553, 13107, 9830}), in get_test_model() 238 … .data = TestBuffer::createFromVector<int16_t>({22937, 6553, 9830, 26214}), in get_test_model() 248 … .data = TestBuffer::createFromVector<int16_t>({19660, 6553, 6553, 16384}), in get_test_model() 348 ….data = TestBuffer::createFromVector<int16_t>({-14650, 8939, 5771, 6715, -11843, 7847, 1508, 12939… in get_test_model() 485 .data = TestBuffer::createFromVector<int16_t>({}), in get_test_model_all_inputs_as_internal() [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 | 1770 int VolumeSetVolumeLevel(EffectContext *pContext, int16_t level){ in Effect_setConfig() 1797 int VolumeGetVolumeLevel(EffectContext *pContext, int16_t *level){ in Effect_setConfig() 1862 int16_t VolumeConvertStereoPosition(int16_t position){ in Effect_setConfig() 1863 int16_t convertedPosition = 0; in Effect_setConfig() 1865 convertedPosition = (int16_t)(((float)position/1000)*96); in Effect_setConfig() 1882 int VolumeSetStereoPosition(EffectContext *pContext, int16_t position){ in Effect_setConfig() 1944 int32_t VolumeGetStereoPosition(EffectContext *pContext, int16_t *position){ in Effect_setConfig() 2070 if (*pValueSize != sizeof(int16_t)) { // legacy: check equality here. in Effect_setConfig() 2078 *(int16_t *)pValue = BassGetStrength(pContext); in Effect_setConfig() 2079 ALOGVV("%s BASSBOOST_PARAM_STRENGTH %d", __func__, *(int16_t *)pValue); in Effect_setConfig() [all …]
|