Searched refs:numSamples (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/av/media/libeffects/testlibs/
H A DAudioFormatAdapter.h73 // numSamples The number of multi-channel samples to process.
74 void process(const void * pIn, void * pOut, uint32_t numSamples) { argument
75 while (numSamples > 0) {
76 uint32_t numSamplesIter = min(numSamples, mMaxSamplesPerCall);
102 numSamples -= numSamplesIter;
127 // numSamples The number of single-channel samples to process.
128 void ConvertInput(const void *& pIn, uint32_t numSamples) { argument
132 while (numSamples-- > 0) {
145 // numSamples The number of single-channel samples to process.
146 void ConvertOutput(void *& pOut, uint32_t numSamples) { argument
172 MixOutput(void *& pOut, uint32_t numSamples) argument
[all...]
H A DEffectReverb.c248 size_t numSamples = outBuffer->frameCount; local
249 while (numSamples) {
251 if (numSamples > (uint32_t) pReverb->m_nUpdatePeriodInSamples) {
254 processedSamples = numSamples;
269 numSamples -= processedSamples;
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
H A DLVPSA_QPD.h89 LVM_INT16 numSamples,
95 LVM_INT16 numSamples,
H A DLVPSA_QPD_Process.c64 LVM_INT16 numSamples,
89 LVM_INT16 ii = numSamples;
147 pLVPSA_Inst->LocalSamplesCount = (LVM_UINT16)(numSamples - ii);
184 LVM_INT16 numSamples,
209 LVM_INT16 ii = numSamples;
270 pLVPSA_Inst->LocalSamplesCount = (LVM_UINT16)(numSamples - ii);
62 LVPSA_QPD_Process( void *hInstance, LVM_INT16 *pInSamps, LVM_INT16 numSamples, LVM_INT16 BandIndex) argument
182 LVPSA_QPD_Process_Float( void *hInstance, LVM_FLOAT *pInSamps, LVM_INT16 numSamples, LVM_INT16 BandIndex) argument
/frameworks/av/media/libstagefright/
H A DDataConverter.cpp64 size_t numSamples = targetSize / mTargetSampleSize; local
65 if (numSamples > SIZE_MAX / mSourceSampleSize) {
70 return numSamples * mSourceSampleSize;
75 size_t numSamples = divUp(sourceSize, (size_t)mSourceSampleSize); local
76 if (numSamples > SIZE_MAX / mTargetSampleSize) {
81 return numSamples * mTargetSampleSize;
/frameworks/av/media/libaaudio/tests/
H A Dtest_interference.cpp38 int32_t numSamples = AAudioStream_getChannelCount(stream) * numFrames; local
41 memset(audioData, 0, numSamples * sizeof(int16_t));
43 memset(audioData, 0, numSamples * sizeof(float));
/frameworks/av/include/media/stagefright/
H A DVideoFrameScheduler.h79 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples,
81 void prime(size_t numSamples);
/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.h88 bool outputDelayRingBufferPutSamples(INT_PCM *samples, int numSamples);
89 int32_t outputDelayRingBufferGetSamples(INT_PCM *samples, int numSamples);
H A DSoftAAC2.cpp528 bool SoftAAC2::outputDelayRingBufferPutSamples(INT_PCM *samples, int32_t numSamples) { argument
529 if (numSamples == 0) {
532 if (outputDelayRingBufferSpaceLeft() < numSamples) {
536 if (mOutputDelayRingBufferWritePos + numSamples <= mOutputDelayRingBufferSize
538 || mOutputDelayRingBufferReadPos > mOutputDelayRingBufferWritePos + numSamples)) {
540 for (int32_t i = 0; i < numSamples; i++) {
550 for (int32_t i = 0; i < numSamples; i++) {
558 mOutputDelayRingBufferFilled += numSamples;
562 int32_t SoftAAC2::outputDelayRingBufferGetSamples(INT_PCM *samples, int32_t numSamples) { argument
564 if (numSamples > mOutputDelayRingBufferFille
969 int numSamples = outHeader->nAllocLen / sizeof(int16_t); local
[all...]
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DVideoFrameScheduler.h79 bool fit(nsecs_t phase, nsecs_t period, size_t numSamples,
81 void prime(size_t numSamples);
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamRecord.cpp226 int32_t numSamples = mFormatConversionBufferSizeInFrames * getSamplesPerFrame(); local
227 mFormatConversionBufferFloat = std::make_unique<float[]>(numSamples);
232 int32_t numSamples = mFormatConversionBufferSizeInFrames * getSamplesPerFrame(); local
233 mFormatConversionBufferI16 = std::make_unique<int16_t[]>(numSamples);
292 int32_t numSamples = numFrames * getSamplesPerFrame(); local
297 numSamples);
423 size_t numSamples = framesToConvert * getSamplesPerFrame(); local
427 numSamples);
428 floatBuffer += numSamples;
/frameworks/av/services/oboeservice/
H A DAAudioMixer.cpp112 int32_t numSamples = numFrames * mSamplesPerFrame; local
114 for (int sampleIndex = 0; sampleIndex < numSamples; sampleIndex++) {
/frameworks/av/media/extractors/wav/
H A DWAVExtractor.cpp504 const size_t numSamples = n / 3; local
506 memcpy_to_i16_from_p24((int16_t *)buffer->data(), (const uint8_t *)buffer->data(), numSamples);
507 buffer->set_range(0, 2 * numSamples);
510 const size_t numSamples = n / 4; local
512 memcpy_to_i16_from_i32((int16_t *)buffer->data(), (const int32_t *)buffer->data(), numSamples);
513 buffer->set_range(0, 2 * numSamples);
518 const size_t numSamples = n / 4; local
520 memcpy_to_i16_from_float((int16_t *)buffer->data(), (const float *)buffer->data(), numSamples);
521 buffer->set_range(0, 2 * numSamples);
/frameworks/av/media/libaaudio/src/client/
H A DAudioStreamInternalCapture.cpp176 int32_t numSamples = framesToProcess * getSamplesPerFrame(); local
186 numSamples,
193 numSamples,
/frameworks/native/libs/input/tests/
H A DVelocityTracker_test.cpp71 MotionEvent* createSimpleMotionEvent(const Position* positions, size_t numSamples) { argument
77 if (numSamples < 1) {
79 " Received numSamples=%zu", numSamples));
95 for (size_t i = 1; i < numSamples; i++) {
103 static void computeAndCheckVelocity(const Position* positions, size_t numSamples, argument
108 MotionEvent* event = createSimpleMotionEvent(positions, numSamples);
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DGestureDescriptionTest.java65 int numSamples = 5;
69 PointF end = new PointF(10 + numSamples * stepX, 20 + numSamples * stepY);
72 createSwipe(start.x, start.y, end.x, end.y, numSamples * samplePeriod);
75 assertEquals(numSamples + 1, swipeGestureSteps.size());
79 assertThat(swipeGestureSteps.get(numSamples), allOf(numTouchPointsIs(1),
82 for (int i = 1; i < numSamples; ++i) {
200 int numSamples = 2;
206 maxPointBuilder.addStroke(new StrokeDescription(path, 0, samplePeriod * numSamples));
/frameworks/av/media/libaaudio/src/utility/
H A DAAudioUtilities.h52 * @param numSamples number of values in the array
57 int32_t numSamples,
84 * @param numSamples
86 //void AAudioConvert_pcm16ToFloat(const int16_t *source, int32_t numSamples,
94 * @param numSamples
99 int32_t numSamples,
H A DAAudioUtilities.cpp79 int32_t numSamples,
82 for (int i = 0; i < numSamples; i++) {
110 int32_t numSamples,
113 for (int i = 0; i < numSamples; i++) {
366 const int32_t numSamples = numFrames * source.channelCount; local
392 numSamples,
410 numSamples,
77 AAudioConvert_floatToPcm16(const float *source, int16_t *destination, int32_t numSamples, float amplitude) argument
108 AAudioConvert_pcm16ToFloat(const int16_t *source, float *destination, int32_t numSamples, float amplitude) argument
/frameworks/av/media/libaaudio/examples/loopback/src/
H A Dloopback.cpp79 int32_t numSamples) {
81 for (int i = 0; i < numSamples; i++) {
199 int32_t numSamples = actualFramesRead * myData->actualInputChannelCount; local
202 convertPcm16ToFloat(myData->inputShortData, myData->inputFloatData, numSamples);
299 void printAudioGraph(AudioRecording &recording, int numSamples) { argument
301 int32_t end = start + numSamples;
77 convertPcm16ToFloat(const int16_t *source, float *destination, int32_t numSamples) argument
H A DLoopbackAnalyzer.h528 int numSamples; variable
535 numSamples = numFrames * outputChannelCount;
536 for (int i = 0; i < numSamples; i++) {
572 numSamples = numFrames * outputChannelCount;
573 for (int i = 0; i < numSamples; i++) {
/frameworks/native/libs/input/
H A DInput.cpp350 size_t numSamples = mSamplePointerCoords.size(); local
351 for (size_t i = 0; i < numSamples; i++) {
408 size_t numSamples = mSamplePointerCoords.size(); local
409 for (size_t i = 0; i < numSamples; i++) {
H A DInputTransport.cpp998 size_t numSamples = batch.samples.size(); local
1000 while (index < numSamples
/frameworks/av/media/extractors/ogg/
H A DOggExtractor.cpp575 uint32_t numSamples = 0; local
591 numSamples += getNumSamplesInPacket(mBuf);
596 if (curGranulePosition > numSamples) {
597 mStartGranulePosition = curGranulePosition - numSamples;
671 uint32_t numSamples = frameSizeUs * numFrames * kOpusSampleRate / 1000000; local
672 return numSamples;
/frameworks/rs/driver/
H A DrsdGL.cpp175 uint32_t numSamples) {
212 if (numSamples > 1) {
216 configAttribsPtr[3] = numSamples;
173 getConfigData(const Context *rsc, EGLint *configAttribs, size_t configAttribsLen, uint32_t numSamples) argument
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationUsageStats.java986 long numSamples; field in class:NotificationUsageStats.Aggregate
994 numSamples++;
995 final double n = numSamples;
999 final double divisor = numSamples == 1 ? 1.0 : n - 1.0;
1006 "numSamples=" + numSamples +

Completed in 157 milliseconds

12