/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 | 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 …]
|
/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 | 149 int16_t SavedRoomLevel; 150 int16_t SavedHfLevel; 151 int16_t SavedDecayTime; 152 int16_t SavedDecayHfRatio; 153 int16_t SavedReverbLevel; 154 int16_t SavedDiffusion; 155 int16_t SavedDensity; 922 int16_t ReverbConvertLevel(int16_t level){ in ReverbConvertLevel() 923 static int16_t LevelArray[101] = in ReverbConvertLevel() 937 int16_t i; 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 | 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/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/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/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/ml/nn/common/operations/ |
D | QuantizedLSTM.cpp | 55 const Dims<4>& bias_dims, const int16_t* prevCellState_data_int16, in quantizedLstmStep() 56 const Dims<4>& prevCellState_dims, int16_t* output_state_data_int16, in quantizedLstmStep() 59 const Dims<4>& concat_temp_dims, int16_t* activ_temp_data_int16, in quantizedLstmStep() 107 int16_t input_val = concat_temp_data_uint8[b * fc_accum_depth + d] - 128; in quantizedLstmStep() 108 int16_t weights_val = in quantizedLstmStep() 136 using F0 = gemmlowp::FixedPoint<std::int16_t, 0>; in quantizedLstmStep() 140 using F3 = gemmlowp::FixedPoint<std::int16_t, 3>; in quantizedLstmStep() 145 using FS = gemmlowp::FixedPoint<std::int16_t, StateIntegerBits>; in quantizedLstmStep() 189 int16_t rescaled_output_activ = in quantizedLstmStep() 191 int16_t clamped_output_activ = in quantizedLstmStep() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 1928 int VolumeSetVolumeLevel(EffectContext *pContext, int16_t level){ in Effect_setConfig() 1955 int VolumeGetVolumeLevel(EffectContext *pContext, int16_t *level){ in Effect_setConfig() 2020 int16_t VolumeConvertStereoPosition(int16_t position){ in Effect_setConfig() 2021 int16_t convertedPosition = 0; in Effect_setConfig() 2023 convertedPosition = (int16_t)(((float)position/1000)*96); in Effect_setConfig() 2040 int VolumeSetStereoPosition(EffectContext *pContext, int16_t position){ in Effect_setConfig() 2105 int32_t VolumeGetStereoPosition(EffectContext *pContext, int16_t *position){ in Effect_setConfig() 2231 if (*pValueSize != sizeof(int16_t)) { // legacy: check equality here. in Effect_setConfig() 2239 *(int16_t *)pValue = BassGetStrength(pContext); in Effect_setConfig() 2240 ALOGVV("%s BASSBOOST_PARAM_STRENGTH %d", __func__, *(int16_t *)pValue); in Effect_setConfig() [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/native/services/inputflinger/ |
D | TouchVideoDevice.cpp | 41 const std::array<const int16_t*, NUM_BUFFERS>& readLocations) : in TouchVideoDevice() argument 114 std::array<const int16_t*, NUM_BUFFERS> readLocations; in create() 122 if (buf.length != height * width * sizeof(int16_t)) { in create() 128 readLocations[i] = static_cast<const int16_t*>(mmap(nullptr /* start anywhere */, in create() 199 std::vector<int16_t> data(mHeight * mWidth); in readFrame() 200 const int16_t* readFrom = mReadLocations[buf.index]; in readFrame() 234 for (const int16_t* buffer : mReadLocations) { in ~TouchVideoDevice() 235 void* bufferAddress = static_cast<void*>(const_cast<int16_t*>(buffer)); in ~TouchVideoDevice() 236 result = munmap(bufferAddress, mHeight * mWidth * sizeof(int16_t)); in ~TouchVideoDevice()
|
/frameworks/native/include/input/ |
D | TouchVideoFrame.h | 34 TouchVideoFrame(uint32_t height, uint32_t width, std::vector<int16_t> data, 53 const std::vector<int16_t>& getData() const; 68 std::vector<int16_t> mData;
|