Searched refs:phaseFraction (Results 1 – 5 of 5) sorted by relevance
/frameworks/av/services/audioflinger/ |
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 | 62 uint32_t &phaseFraction, uint32_t phaseIncrement); 65 uint32_t &phaseFraction, uint32_t phaseIncrement); 341 uint32_t phaseFraction = mPhaseFraction; in resampleStereo16() local 375 out[outputIndex++] += vl * Interp(mX0L, in[0], phaseFraction); in resampleStereo16() 376 out[outputIndex++] += vr * Interp(mX0R, in[1], phaseFraction); in resampleStereo16() 377 Advance(&inputIndex, &phaseFraction, phaseIncrement); in resampleStereo16() 394 phaseFraction, phaseIncrement); in resampleStereo16() 400 in[inputIndex*2], phaseFraction); in resampleStereo16() 402 in[inputIndex*2+1], phaseFraction); in resampleStereo16() 403 Advance(&inputIndex, &phaseFraction, phaseIncrement); in resampleStereo16() [all …]
|
D | AudioResamplerDyn.cpp | 496 uint32_t phaseFraction = mPhaseFraction; in resample() local 501 size_t inFrameCount = (phaseIncrement * (uint64_t)outFrameCount + phaseFraction) in resample() 534 if (phaseFraction >= phaseWrapLimit) { // read in data in resample() 539 phaseFraction -= phaseWrapLimit; in resample() 540 while (phaseFraction >= phaseWrapLimit) { in resample() 550 phaseFraction -= phaseWrapLimit; in resample() 571 ALOG_ASSERT(phaseFraction < phaseWrapLimit); in resample() 574 phaseFraction, phaseWrapLimit, in resample() 580 phaseFraction += phaseIncrement; in resample() 581 while (phaseFraction >= phaseWrapLimit) { in resample() [all …]
|
D | AudioResamplerSinc.cpp | 302 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 …]
|
D | AudioResamplerSinc.h | 64 inline void read(int16_t*& impulse, uint32_t& phaseFraction,
|