/frameworks/av/media/libeffects/testlibs/ |
D | AudioFormatAdapter.h | 74 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/ |
D | SinkI16.cpp | 44 int32_t numSamples = framesRead * channelCount; in read() local 46 memcpy_to_i16_from_float(shortData, signal, numSamples); in read() 47 shortData += numSamples; in read() 48 signal += numSamples; in read() 50 for (int i = 0; i < numSamples; i++) { in read()
|
D | SinkI24.cpp | 45 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()
|
D | SinkFloat.cpp | 40 int32_t numSamples = framesRead * channelCount; in read() local 41 memcpy(floatData, signal, numSamples * sizeof(float)); in read() 42 floatData += numSamples; in read()
|
D | SourceI16.cpp | 39 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()
|
D | SourceI24.cpp | 41 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()
|
D | ClipToRange.cpp | 34 int32_t numSamples = framesToProcess * output.getSamplesPerFrame(); in onProcess() local 35 for (int32_t i = 0; i < numSamples; i++) { in onProcess()
|
D | SourceFloat.cpp | 35 int32_t numSamples = framesToProcess * channelCount; in onProcess() local 39 memcpy(outputBuffer, floatData, numSamples * sizeof(float)); in onProcess()
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacDec.cpp | 346 bool C2SoftAacDec::outputDelayRingBufferPutSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferPutSamples() argument 347 if (numSamples == 0) { in outputDelayRingBufferPutSamples() 350 if (outputDelayRingBufferSpaceLeft() < numSamples) { in outputDelayRingBufferPutSamples() 354 if (mOutputDelayRingBufferWritePos + numSamples <= mOutputDelayRingBufferSize in outputDelayRingBufferPutSamples() 356 … || mOutputDelayRingBufferReadPos > mOutputDelayRingBufferWritePos + numSamples)) { in outputDelayRingBufferPutSamples() 358 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples() 368 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples() 376 mOutputDelayRingBufferFilled += numSamples; in outputDelayRingBufferPutSamples() 380 int32_t C2SoftAacDec::outputDelayRingBufferGetSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferGetSamples() argument 382 if (numSamples > mOutputDelayRingBufferFilled) { in outputDelayRingBufferGetSamples() [all …]
|
D | C2SoftAacDec.h | 99 bool outputDelayRingBufferPutSamples(INT_PCM *samples, int numSamples); 100 int32_t outputDelayRingBufferGetSamples(INT_PCM *samples, int numSamples);
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
D | SoftAAC2.cpp | 528 bool SoftAAC2::outputDelayRingBufferPutSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferPutSamples() argument 529 if (numSamples == 0) { in outputDelayRingBufferPutSamples() 532 if (outputDelayRingBufferSpaceLeft() < numSamples) { in outputDelayRingBufferPutSamples() 536 if (mOutputDelayRingBufferWritePos + numSamples <= mOutputDelayRingBufferSize in outputDelayRingBufferPutSamples() 538 … || mOutputDelayRingBufferReadPos > mOutputDelayRingBufferWritePos + numSamples)) { in outputDelayRingBufferPutSamples() 540 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples() 550 for (int32_t i = 0; i < numSamples; i++) { in outputDelayRingBufferPutSamples() 558 mOutputDelayRingBufferFilled += numSamples; in outputDelayRingBufferPutSamples() 562 int32_t SoftAAC2::outputDelayRingBufferGetSamples(INT_PCM *samples, int32_t numSamples) { in outputDelayRingBufferGetSamples() argument 564 if (numSamples > mOutputDelayRingBufferFilled) { in outputDelayRingBufferGetSamples() [all …]
|
D | SoftAAC2.h | 88 bool outputDelayRingBufferPutSamples(INT_PCM *samples, int numSamples); 89 int32_t outputDelayRingBufferGetSamples(INT_PCM *samples, int numSamples);
|
/frameworks/av/media/libstagefright/ |
D | DataConverter.cpp | 64 size_t numSamples = targetSize / mTargetSampleSize; in sourceSize() local 65 if (numSamples > SIZE_MAX / mSourceSampleSize) { in sourceSize() 70 return numSamples * mSourceSampleSize; in sourceSize() 75 size_t numSamples = divUp(sourceSize, (size_t)mSourceSampleSize); in targetSize() local 76 if (numSamples > SIZE_MAX / mTargetSampleSize) { in targetSize() 81 return numSamples * mTargetSampleSize; in targetSize()
|
/frameworks/av/media/extractors/wav/ |
D | WAVExtractor.cpp | 510 const size_t numSamples = numFrames * mNumChannels; in read() local 513 buffer->set_range(0, 4 * numSamples); in read() 516 memcpy_to_float_from_u8(fdest, (const uint8_t *)buffer->data(), numSamples); in read() 519 memcpy_to_float_from_i16(fdest, (const int16_t *)buffer->data(), numSamples); in read() 522 memcpy_to_float_from_p24(fdest, (const uint8_t *)buffer->data(), numSamples); in read() 525 memcpy_to_float_from_i32(fdest, (const int32_t *)buffer->data(), numSamples); in read() 530 buffer->set_range(0, 2 * numSamples); in read() 533 memcpy_to_i16_from_u8(idest, (const uint8_t *)buffer->data(), numSamples); in read() 539 memcpy_to_i16_from_p24(idest, (const uint8_t *)buffer->data(), numSamples); in read() 542 memcpy_to_i16_from_i32(idest, (const int32_t *)buffer->data(), numSamples); in read() [all …]
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamRecord.cpp | 231 int32_t numSamples = mFormatConversionBufferSizeInFrames * getSamplesPerFrame(); in open() local 232 mFormatConversionBufferFloat = std::make_unique<float[]>(numSamples); in open() 237 int32_t numSamples = mFormatConversionBufferSizeInFrames * getSamplesPerFrame(); in open() local 238 mFormatConversionBufferI16 = std::make_unique<int16_t[]>(numSamples); in open() 297 int32_t numSamples = numFrames * getSamplesPerFrame(); in maybeConvertDeviceData() local 302 numSamples); in maybeConvertDeviceData() 425 size_t numSamples = framesToConvert * getSamplesPerFrame(); in read() local 429 numSamples); in read() 430 floatBuffer += numSamples; in read()
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusDec.cpp | 394 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/tests/ |
D | test_interference.cpp | 38 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/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuThreadReaderEndToEndTest.java | 108 Runnable work, String tag, int numSamples) throws InterruptedException { in getAverageWorkTime() argument 110 final CountDownLatch workFinishedLatch = new CountDownLatch(numSamples); in getAverageWorkTime() 116 for (int i = 0; i < numSamples; i++) { in getAverageWorkTime() 147 numSamples, threadCpuUsages.size()); in getAverageWorkTime()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | GestureDescriptionTest.java | 65 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/libeffects/lvm/lib/SpectrumAnalyzer/src/ |
D | LVPSA_QPD.h | 77 LVM_INT16 numSamples, 82 LVM_INT16 numSamples,
|
D | LVPSA_QPD_Process.cpp | 61 LVM_INT16 numSamples, in LVPSA_QPD_Process_Float() argument 86 LVM_INT16 ii = numSamples; in LVPSA_QPD_Process_Float() 146 pLVPSA_Inst->LocalSamplesCount = (LVM_UINT16)(numSamples - ii); in LVPSA_QPD_Process_Float()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | VideoFrameSchedulerBase.h | 84 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples, 86 void prime(size_t numSamples);
|
/frameworks/av/media/libaaudio/src/client/ |
D | AudioStreamInternalCapture.cpp | 181 const int32_t numSamples = framesToProcess * getSamplesPerFrame(); in readNowWithConversion() local 193 numSamples); in readNowWithConversion() 199 numSamples); in readNowWithConversion()
|
/frameworks/av/services/oboeservice/ |
D | AAudioMixer.cpp | 112 int32_t numSamples = numFrames * mSamplesPerFrame; in mixPart() local 114 for (int sampleIndex = 0; sampleIndex < numSamples; sampleIndex++) { in mixPart()
|
/frameworks/av/media/libaaudio/examples/loopback/src/ |
D | LoopbackAnalyzer.h | 278 int32_t numSamples = std::min(numCorrelations, peakIndex * 2); in measureLatencyFromEchos() local 279 if (numSamples <= 0) { in measureLatencyFromEchos() 283 for (int i = 0; i < numSamples; i++) { in measureLatencyFromEchos() 286 const double average = sum / numSamples; in measureLatencyFromEchos() 653 int numSamples; in process() local 660 numSamples = numFrames * outputChannelCount; in process() 661 for (int i = 0; i < numSamples; i++) { in process() 700 numSamples = numFrames * outputChannelCount; in process() 701 for (int i = 0; i < numSamples; i++) { in process()
|