Home
last modified time | relevance | path

Searched refs:phaseFraction (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libaudioprocessing/
DAudioResamplerCubic.cpp60 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 …]
DAudioResampler.cpp65 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 …]
DAudioResamplerDyn.cpp643 uint32_t phaseFraction = mPhaseFraction; in resample() local
648 size_t inFrameCount = (phaseIncrement * (uint64_t)outFrameCount + phaseFraction) in resample()
684 if (phaseFraction >= phaseWrapLimit) { // read in data in resample()
689 phaseFraction -= phaseWrapLimit; in resample()
690 while (phaseFraction >= phaseWrapLimit) { in resample()
700 phaseFraction -= phaseWrapLimit; in resample()
721 ALOG_ASSERT(phaseFraction < phaseWrapLimit); in resample()
724 phaseFraction, phaseWrapLimit, in resample()
730 phaseFraction += phaseIncrement; in resample()
731 while (phaseFraction >= phaseWrapLimit) { in resample()
[all …]
DAudioResamplerSinc.cpp302 uint32_t phaseFraction = mPhaseFraction; in resample() local
316 const uint32_t phaseIndex = phaseFraction >> kNumPhaseBits; in resample()
319 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
322 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
328 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
343 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL); in resample()
346 phaseFraction += phaseIncrement; in resample()
347 const size_t phaseIndex = phaseFraction >> kNumPhaseBits; in resample()
353 read<CHANNELS>(impulse, phaseFraction, in, inputIndex); in resample()
367 mPhaseFraction = phaseFraction; in resample()
[all …]
DAudioResamplerSinc.h64 inline void read(int16_t*& impulse, uint32_t& phaseFraction,