Searched refs:CHANNELS (Results 1 - 6 of 6) sorted by last modified time

/frameworks/av/services/audioflinger/
H A DAudioResamplerDyn.cpp82 void AudioResamplerDyn<TC, TI, TO>::InBuffer::resize(int CHANNELS, int halfNumCoefs) argument
85 size_t stateCount = halfNumCoefs * CHANNELS * 2 * kStateSizeMultipleOfFilterLength;
90 && mRingFull-mState == (ssize_t) (mStateCount-halfNumCoefs*CHANNELS)) {
101 TI* srcLo = mImpulse - halfNumCoefs*CHANNELS;
102 TI* srcHi = mImpulse + halfNumCoefs*CHANNELS;
119 mImpulse = state + halfNumCoefs*CHANNELS; // actually one sample greater than needed
120 mRingFull = state + mStateCount - halfNumCoefs*CHANNELS;
125 template<int CHANNELS>
129 TI* head = impulse + halfNumCoefs*CHANNELS;
130 for (size_t i=0 ; i<CHANNELS ;
[all...]
H A DAudioResamplerDyn.h80 void resize(int CHANNELS, int halfNumCoefs);
91 template<int CHANNELS>
95 template<int CHANNELS>
103 // in general, mRingFull = mState + mStateSize - halfNumCoefs*CHANNELS.
113 template<int CHANNELS, bool LOCKED, int STRIDE>
H A DAudioResamplerFirProcess.h79 template<int CHANNELS, typename TO>
80 class Accumulator : public Accumulator<CHANNELS-1, TO> // recursive
85 Accumulator<CHANNELS-1, TO>::clear();
90 Accumulator<CHANNELS-1, TO>::acc(coef, data);
94 Accumulator<CHANNELS-1, TO>::volume(out, gain);
177 template <int CHANNELS, int STRIDE, typename TFUNC, typename TC, typename TI, typename TO, typename TINTERP>
188 COMPILE_TIME_ASSERT_FUNCTION_SCOPE(CHANNELS > 0)
190 if (CHANNELS > 2) {
191 // TO accum[CHANNELS];
192 Accumulator<CHANNELS, T
[all...]
H A DAudioResamplerFirProcessNeon.h61 const int CHANNELS = 1; // template specialization does not preserve params local
63 sP -= CHANNELS*((STRIDE>>1)-1);
113 const int CHANNELS = 2; // template specialization does not preserve params local
115 sP -= CHANNELS*((STRIDE>>1)-1);
174 const int CHANNELS = 1; // template specialization does not preserve params local
176 sP -= CHANNELS*((STRIDE>>1)-1);
244 const int CHANNELS = 2; // template specialization does not preserve params local
246 sP -= CHANNELS*((STRIDE>>1)-1);
317 const int CHANNELS = 1; // template specialization does not preserve params local
319 sP -= CHANNELS*((STRID
378 const int CHANNELS = 2; // template specialization does not preserve params local
461 const int CHANNELS = 1; // template specialization does not preserve params local
546 const int CHANNELS = 2; // template specialization does not preserve params local
647 const int CHANNELS = 1; // template specialization does not preserve params local
697 const int CHANNELS = 2; // template specialization does not preserve params local
753 const int CHANNELS = 1; // template specialization does not preserve params local
821 const int CHANNELS = 2; // template specialization does not preserve params local
889 const int CHANNELS = 1; // template specialization does not preserve params local
943 const int CHANNELS = 2; // template specialization does not preserve params local
1008 const int CHANNELS = 1; // template specialization does not preserve params local
1080 const int CHANNELS = 2; // template specialization does not preserve params local
[all...]
H A DAudioResamplerSinc.cpp536 template<int CHANNELS>
541 const size_t headOffset = c.halfNumCoefs*CHANNELS;
563 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex);
566 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex);
572 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex);
581 for (size_t i=0 ; i<CHANNELS ; i++) {
582 head[i] = in[inputIndex*CHANNELS + i];
587 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL);
597 read<CHANNELS>(impulse, phaseFraction, in, inputIndex);
614 template<int CHANNELS>
[all...]
H A DAudioResamplerSinc.h49 template<int CHANNELS>
53 template<int CHANNELS>
57 template<int CHANNELS>
63 template<int CHANNELS>

Completed in 691 milliseconds