Home
last modified time | relevance | path

Searched refs:int16_t (Results 1 – 25 of 207) sorted by relevance

123456789

/frameworks/av/media/libeffects/testlibs/
DEffectReverb.h128 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 …]
DAudioCommon.h68 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()
DEffectEqualizer.cpp379 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/libaudioprocessing/
DAudioMixerOps.h54 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) {
59 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) {
64 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) {
74 inline float MixMul<float, float, int16_t>(float value, int16_t volume) {
86 inline int16_t MixMul<int16_t, float, int16_t>(float value, int16_t volume) {
87 return clamp16_from_float(MixMul<float, float, int16_t>(value, volume));
91 inline int16_t MixMul<int16_t, float, int32_t>(float value, int32_t volume) {
96 inline float MixMul<float, int16_t, int16_t>(int16_t value, int16_t volume) {
102 inline float MixMul<float, int16_t, int32_t>(int16_t value, int32_t volume) {
108 inline int16_t MixMul<int16_t, int16_t, int16_t>(int16_t value, int16_t volume) {
[all …]
DAudioResamplerFirOps.h83 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);
DAudioResamplerSinc.h55 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;
DAudioResamplerFirProcessNeon.h76 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 …]
DAudioResamplerSinc.cpp165 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 …]
DAudioMixerBase.cpp246 int16_t *pIntSetVolume, int32_t *pIntPrevVolume, int32_t *pIntVolumeInc, in setVolumeRampVariables()
840 const int16_t vl = volume[0]; in volumeStereo()
841 const int16_t vr = volume[1]; in volumeStereo()
844 const int16_t va = auxLevel; in volumeStereo()
846 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo()
847 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo()
849 int16_t a = (int16_t)(((int32_t)l + r) >> 1); in volumeStereo()
857 int16_t l = (int16_t)(*temp++ >> 12); in volumeStereo()
858 int16_t r = (int16_t)(*temp++ >> 12); in volumeStereo()
870 const int16_t *in = static_cast<const int16_t *>(mIn); in track__16BitsStereo()
[all …]
/frameworks/av/media/libeffects/preprocessing/tests/
Dcorrelation.cpp35 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()
97 int16_t enableCrossCorr = (4 == argc) ? atoi(argv[3]) : 1; in main()
110 size_t numFrames = fileSize1 / sizeof(int16_t); in main()
111 std::unique_ptr<int16_t[]> inBuffer1(new int16_t[numFrames]()); in main()
112 std::unique_ptr<int16_t[]> inBuffer2(new int16_t[numFrames]()); in main()
114 if (numFrames != fread(inBuffer1.get(), sizeof(int16_t), numFrames, fInput1.get())) { in main()
119 if (numFrames != fread(inBuffer2.get(), sizeof(int16_t), numFrames, fInput2.get())) { in main()
DEffectPreprocessingTest.cpp194 std::vector<int16_t> input(mTotalFrameCount * mChannelCount); in TEST_P()
195 std::vector<int16_t> output(mTotalFrameCount * mChannelCount); in TEST_P()
196 std::vector<int16_t> farInput(mTotalFrameCount * mChannelCount); in TEST_P()
198 std::uniform_int_distribution<int16_t> dis(INT16_MIN, INT16_MAX); in TEST_P()
247 std::vector<int16_t> monoInput(mTotalFrameCount); in TEST_P()
248 std::vector<int16_t> monoFarInput(mTotalFrameCount); in TEST_P()
251 std::uniform_int_distribution<int16_t> dis(INT16_MIN, INT16_MAX); in TEST_P()
268 std::vector<int16_t> monoOutput(mTotalFrameCount); in TEST_P()
285 std::vector<int16_t> testInput(mTotalFrameCount * channelCount); in TEST_P()
286 std::vector<int16_t> testFarInput(mTotalFrameCount * channelCount); in TEST_P()
[all …]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp146 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/
DG711Codec.cpp41 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()
DAmrCodec.cpp54 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()
DGsmCodec.cpp44 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/codecs/amrwb/dec/test/
Damrwbdec_test.cpp47 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()
DAmrwbDecoderTest.cpp37 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/cmds/stagefright/
DSineSource.cpp73 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/codecs/amrwb/dec/fuzzer/
Damrwb_dec_fuzzer.cpp29 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/media/libaudioclient/include/media/
DToneGenerator.h334 void getSamples(int16_t *outBuffer, unsigned int count,
338 static const int16_t GEN_AMP = 32000; // amplitude of generator
339 static const int16_t S_Q14 = 14; // shift for Q14
340 static const int16_t S_Q15 = 15; // shift for Q15
342 int16_t mA1_Q14; // Q14 coefficient
345 int16_t mS2_0; // saved value for reinitialisation
346 int16_t mAmplitude_Q15; // Q15 amplitude
/frameworks/wilhelm/src/android/
Dandroid_GenericPlayer.h76 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/native/services/inputflinger/reader/
DTouchVideoDevice.cpp41 const std::array<const int16_t*, NUM_BUFFERS>& readLocations) in TouchVideoDevice() argument
117 std::array<const int16_t*, NUM_BUFFERS> readLocations; in create()
125 if (buf.length != height * width * sizeof(int16_t)) { in create()
131 readLocations[i] = static_cast<const int16_t*>( in create()
204 std::vector<int16_t> data(mHeight * mWidth); in readFrame()
205 const int16_t* readFrom = mReadLocations[buf.index]; in readFrame()
239 for (const int16_t* buffer : mReadLocations) { in ~TouchVideoDevice()
240 void* bufferAddress = static_cast<void*>(const_cast<int16_t*>(buffer)); in ~TouchVideoDevice()
241 result = munmap(bufferAddress, mHeight * mWidth * sizeof(int16_t)); in ~TouchVideoDevice()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp1584 int VolumeSetVolumeLevel(EffectContext* pContext, int16_t level) { in VolumeSetVolumeLevel()
1610 int VolumeGetVolumeLevel(EffectContext* pContext, int16_t* level) { in VolumeGetVolumeLevel()
1674 int16_t VolumeConvertStereoPosition(int16_t position) { in VolumeConvertStereoPosition()
1675 int16_t convertedPosition = 0; in VolumeConvertStereoPosition()
1677 convertedPosition = (int16_t)(((float)position / 1000) * 96); in VolumeConvertStereoPosition()
1693 int VolumeSetStereoPosition(EffectContext* pContext, int16_t position) { in VolumeSetStereoPosition()
1755 int32_t VolumeGetStereoPosition(EffectContext* pContext, int16_t* position) { in VolumeGetStereoPosition()
1878 if (*pValueSize != sizeof(int16_t)) { // legacy: check equality here. in BassBoost_getParameter()
1885 *(int16_t*)pValue = BassGetStrength(pContext); in BassBoost_getParameter()
1886 ALOGVV("%s BASSBOOST_PARAM_STRENGTH %d", __func__, *(int16_t*)pValue); in BassBoost_getParameter()
[all …]
/frameworks/av/media/codecs/g711/fuzzer/
Dg711_dec_fuzzer.cpp34 size_t outputBufferSize = sizeof(int16_t) * size; in decodeFrames()
35 int16_t *out = new int16_t[outputBufferSize]; in decodeFrames()
/frameworks/native/include/input/
DTouchVideoFrame.h33 TouchVideoFrame(uint32_t height, uint32_t width, std::vector<int16_t> data,
52 const std::vector<int16_t>& getData() const;
67 std::vector<int16_t> mData;

123456789