Searched refs:phaseFraction (Results 1 – 5 of 5) sorted by relevance
/frameworks/av/services/audioflinger/ |
D | AudioResamplerCubic.cpp | 59 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() 117 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 | 64 uint32_t &phaseFraction, uint32_t phaseIncrement); 67 uint32_t &phaseFraction, uint32_t phaseIncrement); 359 uint32_t phaseFraction = mPhaseFraction; in resampleStereo16() local 394 out[outputIndex++] += vl * Interp(mX0L, in[0], phaseFraction); in resampleStereo16() 395 out[outputIndex++] += vr * Interp(mX0R, in[1], phaseFraction); in resampleStereo16() 396 Advance(&inputIndex, &phaseFraction, phaseIncrement); in resampleStereo16() 413 phaseFraction, phaseIncrement); in resampleStereo16() 419 in[inputIndex*2], phaseFraction); in resampleStereo16() 421 in[inputIndex*2+1], phaseFraction); in resampleStereo16() 422 Advance(&inputIndex, &phaseFraction, phaseIncrement); in resampleStereo16() [all …]
|
D | AudioResamplerDyn.cpp | 497 uint32_t phaseFraction = mPhaseFraction; in resample() local 502 size_t inFrameCount = (phaseIncrement * (uint64_t)outFrameCount + phaseFraction) in resample() 536 if (phaseFraction >= phaseWrapLimit) { // read in data in resample() 541 phaseFraction -= phaseWrapLimit; in resample() 542 while (phaseFraction >= phaseWrapLimit) { in resample() 552 phaseFraction -= phaseWrapLimit; in resample() 573 ALOG_ASSERT(phaseFraction < phaseWrapLimit); in resample() 576 phaseFraction, phaseWrapLimit, in resample() 582 phaseFraction += phaseIncrement; in resample() 583 while (phaseFraction >= phaseWrapLimit) { in resample() [all …]
|
D | AudioResamplerSinc.cpp | 545 uint32_t phaseFraction = mPhaseFraction; in resample() local 560 const uint32_t phaseIndex = phaseFraction >> kNumPhaseBits; in resample() 563 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 566 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 572 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample() 587 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL); in resample() 590 phaseFraction += phaseIncrement; in resample() 591 const size_t phaseIndex = phaseFraction >> kNumPhaseBits; in resample() 597 read<CHANNELS>(impulse, phaseFraction, in, inputIndex); in resample() 611 mPhaseFraction = phaseFraction; in resample() [all …]
|
D | AudioResamplerSinc.h | 64 inline void read(int16_t*& impulse, uint32_t& phaseFraction,
|