Home
last modified time | relevance | path

Searched refs:dstFrames (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp561 void TimestretchBufferProvider::processFrames(void *dstBuffer, size_t *dstFrames, in processFrames() argument
564 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()
573 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames()
575 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
579 if (*dstFrames > 0) { in processFrames()
582 if (*dstFrames <= *srcFrames) { in processFrames()
583 size_t copySize = mFrameSize * *dstFrames; in processFrames()
587 for (size_t count = 0; count < *dstFrames; count += *srcFrames) { in processFrames()
588 size_t remaining = std::min(*srcFrames, *dstFrames - count); in processFrames()
596 memset(dstBuffer,0, mFrameSize * *dstFrames); in processFrames()
[all …]
/frameworks/av/include/media/
DAudioResamplerPublic.h150 uint64_t dstFrames = (uint64_t)srcFrames * dstSampleRate / srcSampleRate; in destinationFramesPossible() local
151 return dstFrames > 2 ? dstFrames - 2 : 0; in destinationFramesPossible()
/frameworks/av/media/libaudioprocessing/include/media/
DAudioResamplerPublic.h150 uint64_t dstFrames = (uint64_t)srcFrames * dstSampleRate / srcSampleRate; in destinationFramesPossible() local
151 return dstFrames > 2 ? dstFrames - 2 : 0; in destinationFramesPossible()
/frameworks/av/media/libmedia/include/media/
DBufferProviders.h199 virtual void processFrames(void *dstBuffer, size_t *dstFrames,