Searched refs:phaseFraction (Results 1 – 5 of 5) sorted by relevance
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerCubic.cpp | 60 uint32_t phaseFraction = mPhaseFraction; in resampleStereo16() local 81 x = phaseFraction >> kPreInterpShift; in resampleStereo16() 87 phaseFraction += phaseIncrement; in resampleStereo16() 88 uint32_t indexIncrement = (phaseFraction >> kNumPhaseBits); in resampleStereo16() 89 phaseFraction &= kPhaseMask; in resampleStereo16() 116 mPhaseFraction = phaseFraction; in resampleStereo16() 127 uint32_t phaseFraction = mPhaseFraction; in resampleMono16() local 149 x = phaseFraction >> kPreInterpShift; in resampleMono16() 155 phaseFraction += phaseIncrement; in resampleMono16() 156 uint32_t indexIncrement = (phaseFraction >> kNumPhaseBits); in resampleMono16() [all …]
|
D | AudioResampler.cpp | 65 uint32_t &phaseFraction, uint32_t phaseIncrement); 68 uint32_t &phaseFraction, uint32_t phaseIncrement); 344 uint32_t phaseFraction = mPhaseFraction; in resampleStereo16() local 378 out[outputIndex++] += vl * Interp(mX0L, in[0], phaseFraction); in resampleStereo16() 379 out[outputIndex++] += vr * Interp(mX0R, in[1], phaseFraction); in resampleStereo16() 380 Advance(&inputIndex, &phaseFraction, phaseIncrement); in resampleStereo16() 397 phaseFraction, phaseIncrement); in resampleStereo16() 403 in[inputIndex*2], phaseFraction); in resampleStereo16() 405 in[inputIndex*2+1], phaseFraction); in resampleStereo16() 406 Advance(&inputIndex, &phaseFraction, phaseIncrement); in resampleStereo16() [all …]
|
D | AudioResamplerDyn.cpp | 632 uint32_t phaseFraction = mPhaseFraction; in resample() local 637 size_t inFrameCount = (phaseIncrement * (uint64_t)outFrameCount + phaseFraction) in resample() 673 if (phaseFraction >= phaseWrapLimit) { // read in data in resample() 678 phaseFraction -= phaseWrapLimit; in resample() 679 while (phaseFraction >= phaseWrapLimit) { in resample() 689 phaseFraction -= phaseWrapLimit; in resample() 710 ALOG_ASSERT(phaseFraction < phaseWrapLimit); in resample() 713 phaseFraction, phaseWrapLimit, in resample() 719 phaseFraction += phaseIncrement; in resample() 720 while (phaseFraction >= phaseWrapLimit) { in resample() [all …]
|
D | AudioResamplerSinc.cpp | 303 uint32_t phaseFraction = mPhaseFraction; in resample() local 317 const uint32_t phaseIndex = phaseFraction >> kNumPhaseBits; in resample() 320 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 323 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 329 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 344 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL); in resample() 347 phaseFraction += phaseIncrement; in resample() 348 const size_t phaseIndex = phaseFraction >> kNumPhaseBits; in resample() 354 read<CHANNELS>(impulse, phaseFraction, in, inputIndex); in resample() 368 mPhaseFraction = phaseFraction; in resample() [all …]
|
D | AudioResamplerSinc.h | 64 inline void read(int16_t*& impulse, uint32_t& phaseFraction,
|