Home
last modified time | relevance | path

Searched refs:inputIndex (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/libaudioprocessing/
DAudioResampler.cpp64 size_t &outputIndex, int32_t* out, size_t &inputIndex, int32_t vl, int32_t vr,
67 size_t &outputIndex, int32_t* out, size_t &inputIndex, int32_t vl, int32_t vr,
343 size_t inputIndex = mInputIndex; in resampleStereo16() local
364 if (mBuffer.frameCount > inputIndex) break; in resampleStereo16()
366 inputIndex -= mBuffer.frameCount; in resampleStereo16()
376 while (inputIndex == 0) { in resampleStereo16()
380 Advance(&inputIndex, &phaseFraction, phaseIncrement); in resampleStereo16()
390 if (inputIndex + 2 < mBuffer.frameCount) { in resampleStereo16()
396 AsmStereo16Loop(in, maxOutPt, maxInIdx, outputIndex, out, inputIndex, vl, vr, in resampleStereo16()
401 while (outputIndex < outputSampleCount && inputIndex < mBuffer.frameCount) { in resampleStereo16()
[all …]
DAudioResamplerCubic.cpp59 size_t inputIndex = mInputIndex; in resampleStereo16() local
94 inputIndex++; in resampleStereo16()
95 if (inputIndex == mBuffer.frameCount) { in resampleStereo16()
96 inputIndex = 0; in resampleStereo16()
108 advance(&left, in[inputIndex*2]); in resampleStereo16()
109 advance(&right, in[inputIndex*2+1]); in resampleStereo16()
115 mInputIndex = inputIndex; in resampleStereo16()
126 size_t inputIndex = mInputIndex; in resampleMono16() local
162 inputIndex++; in resampleMono16()
163 if (inputIndex == mBuffer.frameCount) { in resampleMono16()
[all …]
DAudioResamplerDyn.cpp133 const TI* const in, const size_t inputIndex) in readAgain() argument
137 head[i] = in[inputIndex*CHANNELS + i]; in readAgain()
145 const TI* const in, const size_t inputIndex) in readAdvance() argument
154 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in readAdvance()
642 size_t inputIndex = 0; in resample() local
670 ALOG_ASSERT(inputIndex <= mBuffer.frameCount, "inputIndex%zu > frameCount%zu", in resample()
671 inputIndex, mBuffer.frameCount); in resample()
687 reinterpret_cast<TI*>(mBuffer.raw), inputIndex); in resample()
688 inputIndex++; in resample()
691 if (inputIndex >= mBuffer.frameCount) { in resample()
[all …]
DAudioResamplerSinc.cpp301 size_t inputIndex = mInputIndex; in resample() local
319 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
322 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
323 inputIndex++; in resample()
324 if (inputIndex >= mBuffer.frameCount) { in resample()
325 inputIndex -= mBuffer.frameCount; in resample()
328 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
338 head[i] = in[inputIndex*CHANNELS + i]; in resample()
349 inputIndex++; in resample()
350 if (inputIndex >= frameCount) { in resample()
[all …]
DAudioResamplerDyn.h131 const TI* const in, const size_t inputIndex);
135 const TI* const in, const size_t inputIndex);
DAudioResamplerSinc.h65 const int16_t* in, size_t inputIndex);
/frameworks/av/media/codec2/sfplugin/tests/
DFrameReassembler_test.cpp69 size_t inputIndex = 0, outputIndex = 0; in testPushSameSize() local
77 inputIndex * 1000000 / sampleRate / channelCount / BytesPerSample(encoding)); in testPushSameSize()
84 for (size_t j = 0; j < inputFrameSizeInBytes; ++j, ++inputIndex) { in testPushSameSize()
85 buffer->base()[j] = (inputIndex & 0xFF); in testPushSameSize()
112 ASSERT_TRUE(outputIndex < inputIndex in testPushSameSize()
113 || inputIndex == inputFrameSizeInBytes * count) in testPushSameSize()
114 << "inputIndex = " << inputIndex << " outputIndex = " << outputIndex; in testPushSameSize()
115 uint8_t expected = outputIndex < inputIndex ? (outputIndex & 0xFF) : 0; in testPushSameSize()
124 ASSERT_EQ(inputFrameSizeInBytes * count, inputIndex); in testPushSameSize()
133 << " input size = " << inputIndex << " frame size = " << encoderFrameSizeInBytes; in testPushSameSize()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
DBackDropperFilter.java714 int inputIndex = mPingPong ? 0 : 1; in process() local
736 copyShaderProgram.process(mVideoInput, mBgMean[inputIndex]); in process()
741 Frame[] distInputs = { mVideoInput, mBgMean[inputIndex], mBgVariance[inputIndex] }; in process()
771 Frame[] maskVerifyInputs = {mMaskVerify[inputIndex], mMask}; in process()
812 Frame[] meanUpdateInputs = { mVideoInput, mBgMean[inputIndex], mMask }; in process()
819 mVideoInput, mBgMean[inputIndex], mBgVariance[inputIndex], mMask in process()
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusEnc.cpp392 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process() local
515 inputIndex, work, in process()
541 inputIndex, work, in process()
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp424 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process() local
637 inputIndex, in process()