Home | History | Annotate | Download | only in audioflinger

Lines Matching refs:CHANNELS

82 void AudioResamplerDyn<TC, TI, TO>::InBuffer::resize(int CHANNELS, int halfNumCoefs)
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 ; i++) {
131 head[i] = in[inputIndex*CHANNELS + i];
137 template<int CHANNELS>
141 impulse += CHANNELS;
144 const size_t shiftDown = mRingFull - mState - halfNumCoefs*CHANNELS;
145 memcpy(mState, mState+shiftDown, halfNumCoefs*CHANNELS*2*sizeof(TI));
148 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex);
414 "Resampler channels(%d) must be between 1 to 8", mChannelCount);
472 printf("channels:%d %s stride:%d %s coef:%d shift:%d\n",
486 template<int CHANNELS, bool LOCKED, int STRIDE>
491 const int OUTPUT_CHANNELS = (CHANNELS < 2) ? 2 : CHANNELS;
535 mInBuffer.template readAdvance<CHANNELS>(
546 mInBuffer.template readAdvance<CHANNELS>(
572 fir<CHANNELS, LOCKED, STRIDE>(
585 mInBuffer.template readAdvance<CHANNELS>(impulse, halfNumCoefs, in, inputIndex);