Lines Matching refs:frames
286 void DownmixerBufferProvider::copyFrames(void *dst, const void *src, size_t frames) in copyFrames() argument
289 mInBuffer->setFrameCount(frames); in copyFrames()
290 mInBuffer->update(mInFrameSize * frames); in copyFrames()
291 mOutBuffer->setFrameCount(frames); in copyFrames()
296 mOutBuffer->update(mOutFrameSize * frames); in copyFrames()
301 mOutBuffer->commit(mOutFrameSize * frames); in copyFrames()
363 void RemixBufferProvider::copyFrames(void *dst, const void *src, size_t frames) in copyFrames() argument
366 src, mInputChannels, mIdxAry, mSampleSize, frames); in copyFrames()
386 void ChannelMixBufferProvider::copyFrames(void *dst, const void *src, size_t frames) in copyFrames() argument
390 frames, false /* accumulate */); in copyFrames()
412 void ReformatBufferProvider::copyFrames(void *dst, const void *src, size_t frames) in copyFrames() argument
414 memcpy_by_audio_format(dst, mOutputFormat, src, mInputFormat, frames * mChannelCount); in copyFrames()
427 void ClampFloatBufferProvider::copyFrames(void *dst, const void *src, size_t frames) in copyFrames() argument
430 frames * mChannelCount, in copyFrames()
706 void AdjustChannelsBufferProvider::copyFrames(void *dst, const void *src, size_t frames) in copyFrames() argument
712 mSampleSizeInBytes, frames * mInChannelCount * mSampleSizeInBytes); in copyFrames()
715 const size_t contractedIdx = frames * mOutChannelCount * mSampleSizeInBytes; in copyFrames()
726 mSampleSizeInBytes, frames * mContractedInChannelCount * mSampleSizeInBytes); in copyFrames()
728 buf, mContractedFormat, oriBuf, mFormat, mContractedOutChannelCount * frames); in copyFrames()
732 buf, mContractedFormat, oriBuf, mFormat, mContractedInChannelCount * frames); in copyFrames()
738 mContractedSampleSizeInBytes, mContractedInputFrameSize * frames); in copyFrames()
740 mContractedWrittenFrames += frames; in copyFrames()
750 void TeeBufferProvider::copyFrames(void *dst, const void *src, size_t frames) { in copyFrames() argument
751 memcpy(dst, src, frames * mInputFrameSize); in copyFrames()
752 if (int teeBufferFrameLeft = mTeeBufferFrameCount - mFrameCopied; teeBufferFrameLeft < frames) { in copyFrames()
754 (int)frames - teeBufferFrameLeft); in copyFrames()
755 frames = teeBufferFrameLeft; in copyFrames()
757 memcpy(mTeeBuffer + mFrameCopied * mInputFrameSize, src, frames * mInputFrameSize); in copyFrames()
758 mFrameCopied += frames; in copyFrames()