Home
last modified time | relevance | path

Searched refs:numSamples (Results 1 – 21 of 21) sorted by relevance

/frameworks/av/media/libeffects/testlibs/
DAudioFormatAdapter.h74 void process(const void * pIn, void * pOut, uint32_t numSamples) { in process() argument
75 while (numSamples > 0) { in process()
76 uint32_t numSamplesIter = min(numSamples, mMaxSamplesPerCall); in process()
102 numSamples -= numSamplesIter; in process()
128 void ConvertInput(const void *& pIn, uint32_t numSamples) { in ConvertInput() argument
132 while (numSamples-- > 0) { in ConvertInput()
146 void ConvertOutput(void *& pOut, uint32_t numSamples) { in ConvertOutput() argument
151 while (numSamples-- > 0) { in ConvertOutput()
155 while (numSamples-- > 0) { in ConvertOutput()
172 void MixOutput(void *& pOut, uint32_t numSamples) { in MixOutput() argument
[all …]
DEffectReverb.c245 size_t numSamples = outBuffer->frameCount; in Reverb_Process() local
246 while (numSamples) { in Reverb_Process()
248 if (numSamples > (uint32_t) pReverb->m_nUpdatePeriodInSamples) { in Reverb_Process()
251 processedSamples = numSamples; in Reverb_Process()
266 numSamples -= processedSamples; in Reverb_Process()
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp464 bool SoftAAC2::outputDelayRingBufferPutSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferPutSamples() argument
465 if (numSamples == 0) { in outputDelayRingBufferPutSamples()
468 if (outputDelayRingBufferSpaceLeft() < numSamples) { in outputDelayRingBufferPutSamples()
472 if (mOutputDelayRingBufferWritePos + numSamples <= mOutputDelayRingBufferSize in outputDelayRingBufferPutSamples()
474 … || mOutputDelayRingBufferReadPos > mOutputDelayRingBufferWritePos + numSamples)) { in outputDelayRingBufferPutSamples()
476 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
486 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
494 mOutputDelayRingBufferFilled += numSamples; in outputDelayRingBufferPutSamples()
498 int32_t SoftAAC2::outputDelayRingBufferGetSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferGetSamples() argument
500 if (numSamples > mOutputDelayRingBufferFilled) { in outputDelayRingBufferGetSamples()
[all …]
DSoftAAC2.h88 bool outputDelayRingBufferPutSamples(INT_PCM *samples, int numSamples);
89 int32_t outputDelayRingBufferGetSamples(INT_PCM *samples, int numSamples);
/frameworks/av/media/libstagefright/
DDataConverter.cpp63 size_t numSamples = targetSize / mTargetSampleSize; in sourceSize() local
64 if (numSamples > SIZE_MAX / mSourceSampleSize) { in sourceSize()
69 return numSamples * mSourceSampleSize; in sourceSize()
74 size_t numSamples = divUp(sourceSize, (size_t)mSourceSampleSize); in targetSize() local
75 if (numSamples > SIZE_MAX / mTargetSampleSize) { in targetSize()
80 return numSamples * mTargetSampleSize; in targetSize()
DWAVExtractor.cpp497 const size_t numSamples = n / 3; in read() local
499 … memcpy_to_i16_from_p24((int16_t *)buffer->data(), (const uint8_t *)buffer->data(), numSamples); in read()
500 buffer->set_range(0, 2 * numSamples); in read()
503 const size_t numSamples = n / 4; in read() local
505 … memcpy_to_i16_from_i32((int16_t *)buffer->data(), (const int32_t *)buffer->data(), numSamples); in read()
506 buffer->set_range(0, 2 * numSamples); in read()
511 const size_t numSamples = n / 4; in read() local
513 … memcpy_to_i16_from_float((int16_t *)buffer->data(), (const float *)buffer->data(), numSamples); in read()
514 buffer->set_range(0, 2 * numSamples); in read()
DAVIExtractor.cpp340 int numSamples; in read() local
342 header, &frameSize, &sampleRate, NULL, NULL, &numSamples)) { in read()
354 mNumSamplesRead += numSamples; in read()
1201 ssize_t numSamples = track.mSamples.size(); in getSampleIndexAtTime() local
1205 } else if (closestSampleIndex >= numSamples) { in getSampleIndexAtTime()
1206 closestSampleIndex = numSamples - 1; in getSampleIndexAtTime()
1228 while (nextSyncSampleIndex < numSamples) { in getSampleIndexAtTime()
1251 return nextSyncSampleIndex < numSamples ? OK : UNKNOWN_ERROR; in getSampleIndexAtTime()
1256 if (prevSyncSampleIndex < 0 && nextSyncSampleIndex >= numSamples) { in getSampleIndexAtTime()
1265 if (nextSyncSampleIndex >= numSamples) { in getSampleIndexAtTime()
DOggExtractor.cpp572 uint32_t numSamples = 0; in readNextPacket() local
584 numSamples += getNumSamplesInPacket(mBuf); in readNextPacket()
589 if (curGranulePosition > numSamples) { in readNextPacket()
590 mStartGranulePosition = curGranulePosition - numSamples; in readNextPacket()
664 uint32_t numSamples = frameSizeUs * numFrames * kOpusSampleRate / 1000000; in getNumSamplesInPacket() local
665 return numSamples; in getNumSamplesInPacket()
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_QPD_Process.c59 LVM_INT16 numSamples, in LVPSA_QPD_Process() argument
84 LVM_INT16 ii = numSamples; in LVPSA_QPD_Process()
142 pLVPSA_Inst->LocalSamplesCount = (LVM_UINT16)(numSamples - ii); in LVPSA_QPD_Process()
DLVPSA_QPD.h62 LVM_INT16 numSamples,
/frameworks/av/include/media/stagefright/
DVideoFrameScheduler.h79 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples,
81 void prime(size_t numSamples);
/frameworks/native/libs/input/
DInput.cpp350 size_t numSamples = mSamplePointerCoords.size(); in scale() local
351 for (size_t i = 0; i < numSamples; i++) { in scale()
408 size_t numSamples = mSamplePointerCoords.size(); in transform() local
409 for (size_t i = 0; i < numSamples; i++) { in transform()
DInputTransport.cpp971 size_t numSamples = batch.samples.size(); in findSampleNoLaterThan() local
973 while (index < numSamples in findSampleNoLaterThan()
/frameworks/rs/driver/
DrsdGL.cpp179 uint32_t numSamples) { in getConfigData() argument
222 if (numSamples > 1) { in getConfigData()
226 configAttribsPtr[3] = numSamples; in getConfigData()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationUsageStats.java955 long numSamples; field in NotificationUsageStats.Aggregate
963 numSamples++; in addSample()
964 final double n = numSamples; in addSample()
968 final double divisor = numSamples == 1 ? 1.0 : n - 1.0; in addSample()
975 "numSamples=" + numSamples + in toString()
/frameworks/base/docs/html/ndk/guides/audio/
Doutput-latency.jd301 int numSamples = frames * CHANNELS;
302 silenceBuffer = malloc(sizeof(*silenceBuffer) * numSamples);
303 for (i = 0; i < numSamples; i++) {
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp945 int samplingRate, numChannels, bitrate, numSamples; in dequeueAccessUnitMPEGAudio() local
948 &bitrate, &numSamples)) { in dequeueAccessUnitMPEGAudio()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp1990 int64_t numSamples = 0ll; in extractAndQueueAccessUnits() local
2036 int64_t unitTimeUs = timeUs + numSamples * 1000000ll / sampleRate; in extractAndQueueAccessUnits()
2040 numSamples += 1024; in extractAndQueueAccessUnits()
/frameworks/av/services/audioflinger/
DEffects.cpp1502 size_t numSamples = thread->frameCount(); in addEffect_l() local
1503 int32_t *buffer = new int32_t[numSamples]; in addEffect_l()
1504 memset(buffer, 0, numSamples * sizeof(int32_t)); in addEffect_l()
DThreads.cpp2694 size_t numSamples = mNormalFrameCount * mChannelCount; in addEffectChain_l() local
2695 buffer = new int16_t[numSamples]; in addEffectChain_l()
2696 memset(buffer, 0, numSamples * sizeof(int16_t)); in addEffectChain_l()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java4381 int numSamples = 0; in onLoadSoundEffects() local
4397 numSamples++; in onLoadSoundEffects()
4405 if (numSamples > 0) { in onLoadSoundEffects()