/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 | 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 | 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 …]
|
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/ |
D | AidlConversionEnvReverb.cpp | 106 SET_AIDL_PARAMETER(param, int32_t, int16_t, roomLevelMb); in setParameter() 110 SET_AIDL_PARAMETER(param, int32_t, int16_t, roomHfLevelMb); in setParameter() 118 SET_AIDL_PARAMETER(param, int32_t, int16_t, decayHfRatioPm); in setParameter() 122 SET_AIDL_PARAMETER(param, int32_t, int16_t, reflectionsLevelMb); in setParameter() 130 SET_AIDL_PARAMETER(param, int32_t, int16_t, levelMb); in setParameter() 138 SET_AIDL_PARAMETER(param, int32_t, int16_t, diffusionPm); in setParameter() 142 SET_AIDL_PARAMETER(param, int32_t, int16_t, densityPm); in setParameter() 156 SET_AIDL_PARAMETER(param, int32_t, int16_t, roomLevelMb); in setParameter() 157 SET_AIDL_PARAMETER(param, int32_t, int16_t, roomHfLevelMb); in setParameter() 159 SET_AIDL_PARAMETER(param, int32_t, int16_t, decayHfRatioPm); in setParameter() [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixerOps.h | 56 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) { 61 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) { 66 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) { 76 inline float MixMul<float, float, int16_t>(float value, int16_t volume) { 88 inline int16_t MixMul<int16_t, float, int16_t>(float value, int16_t volume) { 89 return clamp16_from_float(MixMul<float, float, int16_t>(value, volume)); 93 inline int16_t MixMul<int16_t, float, int32_t>(float value, int32_t volume) { 98 inline float MixMul<float, int16_t, int16_t>(int16_t value, int16_t volume) { 104 inline float MixMul<float, int16_t, int32_t>(int16_t value, int32_t volume) { 110 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 | 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 | AudioMixerBase.cpp | 250 int16_t *pIntSetVolume, int32_t *pIntPrevVolume, int32_t *pIntVolumeInc, in setVolumeRampVariables() 858 const int16_t vl = volume[0]; in volumeStereo() 859 const int16_t vr = volume[1]; in volumeStereo() 862 const int16_t va = auxLevel; in volumeStereo() 864 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 865 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 867 int16_t a = (int16_t)(((int32_t)l + r) >> 1); in volumeStereo() 875 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo() 876 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo() 888 const int16_t *in = static_cast<const int16_t *>(mIn); in track__16BitsStereo() [all …]
|
/frameworks/av/media/libeffects/preprocessing/tests/ |
D | correlation.cpp | 35 static std::pair<std::vector<int>, std::vector<float>> correlation(const int16_t* sigX, in correlation() 36 const int16_t* sigY, int len, in correlation() 37 int16_t enableCrossCorr) { in correlation() 96 int16_t enableCrossCorr = (4 == argc) ? atoi(argv[3]) : 1; in main() 109 size_t numFrames = fileSize1 / sizeof(int16_t); in main() 110 std::unique_ptr<int16_t[]> inBuffer1(new int16_t[numFrames]()); in main() 111 std::unique_ptr<int16_t[]> inBuffer2(new int16_t[numFrames]()); in main() 113 if (numFrames != fread(inBuffer1.get(), sizeof(int16_t), numFrames, fInput1.get())) { in main() 118 if (numFrames != fread(inBuffer2.get(), sizeof(int16_t), numFrames, fInput2.get())) { in main()
|
D | EffectPreprocessingTest.cpp | 190 std::vector<int16_t> input(mTotalFrameCount * mChannelCount); in TEST_P() 191 std::vector<int16_t> output(mTotalFrameCount * mChannelCount); in TEST_P() 192 std::vector<int16_t> farInput(mTotalFrameCount * mChannelCount); in TEST_P() 194 std::uniform_int_distribution<int16_t> dis(INT16_MIN, INT16_MAX); in TEST_P() 243 std::vector<int16_t> monoInput(mTotalFrameCount); in TEST_P() 244 std::vector<int16_t> monoFarInput(mTotalFrameCount); in TEST_P() 247 std::uniform_int_distribution<int16_t> dis(INT16_MIN, INT16_MAX); in TEST_P() 264 std::vector<int16_t> monoOutput(mTotalFrameCount); in TEST_P() 281 std::vector<int16_t> testInput(mTotalFrameCount * channelCount); in TEST_P() 282 std::vector<int16_t> testFarInput(mTotalFrameCount * channelCount); in TEST_P() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 146 int16_t SavedRoomLevel; 147 int16_t SavedHfLevel; 148 int16_t SavedDecayTime; 149 int16_t SavedDecayHfRatio; 150 int16_t SavedReverbLevel; 151 int16_t SavedDiffusion; 152 int16_t SavedDensity; 739 int16_t ReverbConvertLevel(int16_t level) { in ReverbConvertLevel() 740 static int16_t LevelArray[101] = { in ReverbConvertLevel() 750 int16_t i; 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 | 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/native/services/inputflinger/tests/ |
D | UinputDevice.h | 54 const int16_t mProductId; 56 explicit UinputDevice(const char* name, int16_t productId); 76 static constexpr int16_t PRODUCT_ID = 42; 89 explicit UinputKeyboard(const char* name, int16_t productId = PRODUCT_ID, 104 static constexpr int16_t PRODUCT_ID = 43; 122 static constexpr int16_t PRODUCT_ID = 44; 137 static constexpr int16_t PRODUCT_ID = 45; 152 static constexpr int16_t PRODUCT_ID = 46; 174 static constexpr int16_t PRODUCT_ID = 47; 191 static constexpr int16_t PRODUCT_ID = 48;
|
/frameworks/libs/binary_translation/intrinsics/riscv64/ |
D | intrinsics_test.cc | 82 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{0})), int16_t{-1}); in TEST() 83 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{-1})), int16_t{-32768}); in TEST() 84 ASSERT_EQ(std::get<0>(Div<int16_t>(int16_t{-32768}, int16_t{-2})), int16_t{16384}); in TEST() 121 ASSERT_EQ(std::get<0>(Roundoff<int16_t>(RNU, int16_t{-250}, uint16_t{2})), int16_t{-62}); in TEST()
|
/frameworks/av/media/module/codecs/amrwb/dec/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 | 38 constexpr int32_t kMaxSourceDataUnitSize = KAMRWB_NB_BITS_MAX * sizeof(int16_t); 59 int32_t DecodeFrames(int16_t *decoderCookie, void *decoderBuf, SNDFILE *outFileHandle, 73 int32_t AmrwbDecoderTest::DecodeFrames(int16_t *decoderCookie, void *decoderBuf, in DecodeFrames() 76 int16_t inputSampleBuf[kMaxSourceDataUnitSize]; in DecodeFrames() 77 int16_t outputBuf[kOutputBufferSize]; in DecodeFrames() 105 int16_t numSamplesOutput; in DecodeFrames() 131 int16_t *decoderCookie; in TEST_F() 146 int16_t *decoderCookie; in TEST_P() 172 int16_t *decoderCookie; in TEST_P()
|
/frameworks/av/media/module/codecs/amrwb/dec/fuzzer/ |
D | amrwb_dec_fuzzer.cpp | 29 constexpr int32_t kMaxSourceDataUnitSize = KAMRWB_NB_BITS_MAX * sizeof(int16_t); 44 int16_t *mDecoderCookie = nullptr; 76 int16_t inputSampleBuf[kMaxSourceDataUnitSize]; in decodeFrames() 87 int16_t numSamplesOutput; in decodeFrames() 88 int16_t outputBuf[kOutputBufferSize]; in decodeFrames()
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 76 size_t frameSize = mNumChannels * sizeof(int16_t); in read() 79 int16_t *ptr = (int16_t *)buffer->data(); in read() 85 int16_t amplitude = (int16_t)(32767.0 * sin(x)); in read()
|
/frameworks/libs/binary_translation/intrinsics/riscv64_to_x86_64/include/berberis/intrinsics/ |
D | macro_assembler_constants_pool.h | 34 extern const int32_t kVectorConst<int16_t{-0x8000}>; 36 extern const int32_t kVectorConst<int16_t{0x7fff}>; 62 inline const int32_t& kVectorConst<int16_t{0x0000}> = kVectorConst<uint64_t{0x0000'0000'0000'0000}>; 71 inline const int32_t& kVectorConst<uint16_t{0x7fff}> = kVectorConst<int16_t{0x7fff}>; 73 inline const int32_t& kVectorConst<uint16_t{0x8000}> = kVectorConst<int16_t{-0x8000}>; 146 inline const int32_t& kConst<int16_t{0x0000}> = kVectorConst<uint64_t{0x0000'0000'0000'0000}>; 168 inline const int32_t& kConst<int16_t{-1}> = kVectorConst<uint64_t{0xffff'ffff'ffff'ffff}>;
|
/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/libaudioclient/include/media/ |
D | ToneGenerator.h | 346 void getSamples(int16_t *outBuffer, unsigned int count, 350 static const int16_t GEN_AMP = 32000; // amplitude of generator 351 static const int16_t S_Q14 = 14; // shift for Q14 352 static const int16_t S_Q15 = 15; // shift for Q15 354 int16_t mA1_Q14; // Q14 coefficient 357 int16_t mS2_0; // saved value for reinitialisation 358 int16_t mAmplitude_Q15; // Q15 amplitude
|