Home
last modified time | relevance | path

Searched refs:inputIndex (Results 1 – 18 of 18) 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.cpp134 const TI* const in, const size_t inputIndex) in readAgain() argument
138 head[i] = in[inputIndex*CHANNELS + i]; in readAgain()
146 const TI* const in, const size_t inputIndex) in readAdvance() argument
155 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in readAdvance()
631 size_t inputIndex = 0; in resample() local
659 ALOG_ASSERT(inputIndex <= mBuffer.frameCount, "inputIndex%zu > frameCount%zu", in resample()
660 inputIndex, mBuffer.frameCount); in resample()
676 reinterpret_cast<TI*>(mBuffer.raw), inputIndex); in resample()
677 inputIndex++; in resample()
680 if (inputIndex >= mBuffer.frameCount) { in resample()
[all …]
DAudioResamplerSinc.cpp302 size_t inputIndex = mInputIndex; in resample() local
320 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
323 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
324 inputIndex++; in resample()
325 if (inputIndex >= mBuffer.frameCount) { in resample()
326 inputIndex -= mBuffer.frameCount; in resample()
329 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
339 head[i] = in[inputIndex*CHANNELS + i]; in resample()
350 inputIndex++; in resample()
351 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/ml/nn/common/operations/
DGather.cpp52 const auto inputIndex = static_cast<uint32_t>(indicesData[outputIndex]); in eval() local
53 NN_RET_CHECK_LE(0u, inputIndex); in eval()
54 NN_RET_CHECK_LT(inputIndex, axisSize); in eval()
56 inputData + (outer * axisSize + inputIndex) * innerSize, in eval()
DGroupedConv2D.cpp81 uint32_t inputIndex = hInput * inputWidth * inputDepth + in groupedConvFloat32() local
83 sum += filterBase[filterIndex] * inputBase[inputIndex]; in groupedConvFloat32()
153 uint32_t inputIndex = hInput * inputWidth * inputDepth + in groupedConvQuant8() local
157 (static_cast<int32_t>(inputBase[inputIndex]) + in groupedConvQuant8()
257 uint32_t inputIndex = hInput * inputWidth * inputDepth + in groupedConvQuant8PerChannel() local
260 (static_cast<int32_t>(inputBase[inputIndex]) + in groupedConvQuant8PerChannel()
DSlice.cpp60 std::vector<uint32_t> inputIndex(getNumberOfDimensions(inputShape)); in evalGeneric() local
71 addVectors(outputIndex, beginIndex, &inputIndex); in evalGeneric()
74 NN_RET_CHECK(indexedInput.indexToFlatIndex(inputIndex, &inputOffset)); in evalGeneric()
DUnidirectionalSequenceRNN.cpp57 const uint32_t inputIndex = f * secondDimSize * inputSize + s * inputSize + i; in transposeFirstTwoDims() local
59 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
DBidirectionalSequenceRNN.cpp74 const uint32_t inputIndex = f * secondDimSize * inputSize + s * inputSize + i; in transposeFirstTwoDims() local
76 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
DDepthwiseConv2D.cpp344 uint32_t inputIndex = hInput * inputWidth * inputDepth + in depthwiseConvQuant8PerChannelNhwc() local
347 (static_cast<int32_t>(inputBase[inputIndex]) + in depthwiseConvQuant8PerChannelNhwc()
DConv2D.cpp418 uint32_t inputIndex = hInput * inputWidth * inputDepth + in convQuant8PerChannelNhwc() local
421 (static_cast<int32_t>(inputBase[inputIndex]) + in convQuant8PerChannelNhwc()
/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/ml/nn/runtime/
DExecutionBuilder.h257 int setInputFromMemory(uint32_t inputIndex, const Memory* memory, uint32_t offset) { in setInputFromMemory() argument
258 return setInputOrOutputFromMemory(mModel->getInputOperand(inputIndex), memory, offset, in setInputFromMemory()
259 &mInputs.at(inputIndex)); in setInputFromMemory()
/frameworks/ml/nn/runtime/test/
DTestPartitioningRandom.cpp382 unsigned inputIndex) { in makeEluSpecialInput() argument
383 if (inputIndex != 1) { in makeEluSpecialInput()
395 int makeRnnSpecialInput(unsigned problemSize, TestModel* model, unsigned inputIndex) { in makeRnnSpecialInput() argument
396 if (inputIndex != 3) { in makeRnnSpecialInput()
413 unsigned inputIndex) { in makeTransposeSpecialInput() argument
414 if (inputIndex != 1) { in makeTransposeSpecialInput()
1306 uint32_t inputIndex = 0, outputIndex = 0; in TEST_P() local
1310 const size_t inputOffset = inputIndex * problemSize * problemSize; in TEST_P()
1314 e->setInput(inputIndex++, desc.mVector.data(), in TEST_P()
1329 const size_t inputOffset = inputIndex * problemSize * problemSize; in TEST_P()
[all …]
/frameworks/av/media/codec2/components/opus/
DC2SoftOpusEnc.cpp365 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process() local
488 inputIndex, work, in process()
514 inputIndex, work, in process()
/frameworks/av/media/codec2/components/aac/
DC2SoftAacEnc.cpp394 uint64_t inputIndex = work->input.ordinal.frameIndex.peeku(); in process() local
593 inputIndex, in process()