Home
last modified time | relevance | path

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

12

/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 …]
/frameworks/av/media/libaaudio/src/flowgraph/
DSinkI32.cpp42 int32_t numSamples = framesRead * channelCount; in read() local
44 memcpy_to_i32_from_float(intData, signal, numSamples); in read()
45 intData += numSamples; in read()
46 signal += numSamples; in read()
48 for (int i = 0; i < numSamples; i++) { in read()
DSinkI8_24.cpp42 int32_t numSamples = framesRead * channelCount; in read() local
44 memcpy_to_q8_23_from_float_with_clamp(intData, signal, numSamples); in read()
45 intData += numSamples; in read()
46 signal += numSamples; in read()
48 for (int i = 0; i < numSamples; i++) { in read()
DSinkI16.cpp43 int32_t numSamples = framesRead * channelCount; in read() local
45 memcpy_to_i16_from_float(shortData, signal, numSamples); in read()
46 shortData += numSamples; in read()
47 signal += numSamples; in read()
49 for (int i = 0; i < numSamples; i++) { in read()
DSinkI24.cpp45 int32_t numSamples = framesRead * channelCount; in read() local
47 memcpy_to_p24_from_float(byteData, floatData, numSamples); in read()
49 byteData += numSamples * kBytesPerI24Packed; in read()
50 floatData += numSamples; in read()
54 for (int i = 0; i < numSamples; i++) { in read()
DSinkFloat.cpp40 int32_t numSamples = framesPulled * channelCount; in read() local
41 memcpy(floatData, signal, numSamples * sizeof(float)); in read()
42 floatData += numSamples; in read()
DSourceI16.cpp39 int32_t numSamples = framesToProcess * channelCount; in onProcess() local
45 memcpy_to_float_from_i16(floatData, shortData, numSamples); in onProcess()
47 for (int i = 0; i < numSamples; i++) { in onProcess()
DSourceI32.cpp39 const int32_t numSamples = framesToProcess * channelCount; in onProcess() local
45 memcpy_to_float_from_i32(floatData, intData, numSamples); in onProcess()
47 for (int i = 0; i < numSamples; i++) { in onProcess()
DSourceI8_24.cpp39 const int32_t numSamples = framesToProcess * channelCount; in onProcess() local
45 memcpy_to_float_from_q8_23(floatData, intData, numSamples); in onProcess()
47 for (int i = 0; i < numSamples; i++) { in onProcess()
DSourceI24.cpp41 int32_t numSamples = framesToProcess * channelCount; in onProcess() local
47 memcpy_to_float_from_p24(floatData, byteData, numSamples); in onProcess()
50 for (int i = 0; i < numSamples; i++) { in onProcess()
DClipToRange.cpp32 int32_t numSamples = numFrames * output.getSamplesPerFrame(); in onProcess() local
33 for (int32_t i = 0; i < numSamples; i++) { in onProcess()
DSourceFloat.cpp34 const int32_t numSamples = framesToProcess * channelCount; in onProcess() local
38 memcpy(outputBuffer, floatData, numSamples * sizeof(float)); in onProcess()
DLimiter.cpp33 int32_t numSamples = numFrames * output.getSamplesPerFrame(); in onProcess() local
38 for (int32_t i = 0; i < numSamples; i++) { in onProcess()
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp580 bool SoftAAC2::outputDelayRingBufferPutSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferPutSamples() argument
581 if (numSamples == 0) { in outputDelayRingBufferPutSamples()
584 if (outputDelayRingBufferSpaceLeft() < numSamples) { in outputDelayRingBufferPutSamples()
588 if (mOutputDelayRingBufferWritePos + numSamples <= mOutputDelayRingBufferSize in outputDelayRingBufferPutSamples()
590 … || mOutputDelayRingBufferReadPos > mOutputDelayRingBufferWritePos + numSamples)) { in outputDelayRingBufferPutSamples()
592 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
602 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
610 mOutputDelayRingBufferFilled += numSamples; in outputDelayRingBufferPutSamples()
614 int32_t SoftAAC2::outputDelayRingBufferGetSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferGetSamples() argument
616 if (numSamples > mOutputDelayRingBufferFilled) { in outputDelayRingBufferGetSamples()
[all …]
/frameworks/av/media/module/extractors/wav/
DWAVExtractor.cpp519 const size_t numSamples = numFrames * mNumChannels; in read() local
522 buffer->set_range(0, 4 * numSamples); in read()
525 memcpy_to_float_from_u8(fdest, (const uint8_t *)buffer->data(), numSamples); in read()
528 memcpy_to_float_from_i16(fdest, (const int16_t *)buffer->data(), numSamples); in read()
531 memcpy_to_float_from_p24(fdest, (const uint8_t *)buffer->data(), numSamples); in read()
534 memcpy_to_float_from_i32(fdest, (const int32_t *)buffer->data(), numSamples); in read()
539 buffer->set_range(0, 2 * numSamples); in read()
542 memcpy_to_i16_from_u8(idest, (const uint8_t *)buffer->data(), numSamples); in read()
548 memcpy_to_i16_from_p24(idest, (const uint8_t *)buffer->data(), numSamples); in read()
551 memcpy_to_i16_from_i32(idest, (const int32_t *)buffer->data(), numSamples); in read()
[all …]
/frameworks/av/media/libstagefright/
DDataConverter.cpp68 size_t numSamples = targetSize / mTargetSampleSize; in sourceSize() local
69 if (numSamples > SIZE_MAX / mSourceSampleSize) { in sourceSize()
74 return numSamples * mSourceSampleSize; in sourceSize()
79 size_t numSamples = divUp(sourceSize, (size_t)mSourceSampleSize); in targetSize() local
80 if (numSamples > SIZE_MAX / mTargetSampleSize) { in targetSize()
85 return numSamples * mTargetSampleSize; in targetSize()
/frameworks/av/media/codec2/components/aac/
DC2SoftAacDec.cpp413 bool C2SoftAacDec::outputDelayRingBufferPutSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferPutSamples() argument
414 if (numSamples == 0) { in outputDelayRingBufferPutSamples()
417 if (outputDelayRingBufferSpaceLeft() < numSamples) { in outputDelayRingBufferPutSamples()
421 if (mOutputDelayRingBufferWritePos + numSamples <= mOutputDelayRingBufferSize in outputDelayRingBufferPutSamples()
423 … || mOutputDelayRingBufferReadPos > mOutputDelayRingBufferWritePos + numSamples)) { in outputDelayRingBufferPutSamples()
425 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
435 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples()
443 mOutputDelayRingBufferFilled += numSamples; in outputDelayRingBufferPutSamples()
447 int32_t C2SoftAacDec::outputDelayRingBufferGetSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferGetSamples() argument
449 if (numSamples > mOutputDelayRingBufferFilled) { in outputDelayRingBufferGetSamples()
[all …]
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusDec.cpp394 int numSamples = opus_multistream_decode(mDecoder, in process() local
400 if (numSamples < 0) { in process()
401 ALOGE("opus_multistream_decode returned numSamples %d", numSamples); in process()
402 numSamples = 0; in process()
410 if (mSamplesToDiscard > numSamples) { in process()
411 mSamplesToDiscard -= numSamples; in process()
412 numSamples = 0; in process()
414 numSamples -= mSamplesToDiscard; in process()
420 if (numSamples) { in process()
421 int outSize = numSamples * sizeof(int16_t) * mHeader.channels; in process()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp243 int32_t numSamples = mFormatConversionBufferSizeInFrames * getSamplesPerFrame(); in open() local
244 mFormatConversionBufferFloat = std::make_unique<float[]>(numSamples); in open()
249 int32_t numSamples = mFormatConversionBufferSizeInFrames * getSamplesPerFrame(); in open() local
250 mFormatConversionBufferI16 = std::make_unique<int16_t[]>(numSamples); in open()
327 int32_t numSamples = numFrames * getSamplesPerFrame(); in maybeConvertDeviceData() local
332 numSamples); in maybeConvertDeviceData()
441 size_t numSamples = framesToConvert * getSamplesPerFrame(); in read() local
445 numSamples); in read()
446 floatBuffer += numSamples; in read()
/frameworks/av/media/libaaudio/tests/
Dtest_interference.cpp38 int32_t numSamples = AAudioStream_getChannelCount(stream) * numFrames; in MyDataCallbackProc() local
41 memset(audioData, 0, numSamples * sizeof(int16_t)); in MyDataCallbackProc()
43 memset(audioData, 0, numSamples * sizeof(float)); in MyDataCallbackProc()
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_QPD.h69 void LVPSA_QPD_Process(void* hInstance, LVM_INT16* pInSamps, LVM_INT16 numSamples,
72 void LVPSA_QPD_Process_Float(void* hInstance, LVM_FLOAT* pInSamps, LVM_INT16 numSamples,
DLVPSA_QPD_Process.cpp55 void LVPSA_QPD_Process_Float(void* hInstance, LVM_FLOAT* pInSamps, LVM_INT16 numSamples, in LVPSA_QPD_Process_Float() argument
78 LVM_INT16 ii = numSamples; in LVPSA_QPD_Process_Float()
132 pLVPSA_Inst->LocalSamplesCount = (LVM_UINT16)(numSamples - ii); in LVPSA_QPD_Process_Float()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderEndToEndTest.java114 Runnable work, String tag, int numSamples) throws InterruptedException { in getAverageWorkTime() argument
116 final CountDownLatch workFinishedLatch = new CountDownLatch(numSamples); in getAverageWorkTime()
122 for (int i = 0; i < numSamples; i++) { in getAverageWorkTime()
153 numSamples, threadCpuUsages.size()); in getAverageWorkTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DGestureDescriptionTest.java65 int numSamples = 5; in testSwipe_shouldContainEvenlySpacedPoints() local
69 PointF end = new PointF(10 + numSamples * stepX, 20 + numSamples * stepY); in testSwipe_shouldContainEvenlySpacedPoints()
72 createSwipe(start.x, start.y, end.x, end.y, numSamples * samplePeriod); in testSwipe_shouldContainEvenlySpacedPoints()
75 assertEquals(numSamples + 1, swipeGestureSteps.size()); in testSwipe_shouldContainEvenlySpacedPoints()
79 assertThat(swipeGestureSteps.get(numSamples), allOf(numTouchPointsIs(1), in testSwipe_shouldContainEvenlySpacedPoints()
82 for (int i = 1; i < numSamples; ++i) { in testSwipe_shouldContainEvenlySpacedPoints()
200 int numSamples = 2; in testMaxTouchpoints_shouldHaveValidCoords() local
206 maxPointBuilder.addStroke(new StrokeDescription(path, 0, samplePeriod * numSamples)); in testMaxTouchpoints_shouldHaveValidCoords()
/frameworks/av/media/libstagefright/include/media/stagefright/
DVideoFrameSchedulerBase.h84 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples,
86 void prime(size_t numSamples);

12