Home
last modified time | relevance | path

Searched refs:outputIndex (Results 1 – 12 of 12) 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,
346 size_t outputIndex = 0; in resampleStereo16() local
353 while (outputIndex < outputSampleCount) { in resampleStereo16()
378 out[outputIndex++] += vl * Interp(mX0L, in[0], phaseFraction); in resampleStereo16()
379 out[outputIndex++] += vr * Interp(mX0R, in[1], phaseFraction); in resampleStereo16()
381 if (outputIndex == outputSampleCount) { in resampleStereo16()
396 AsmStereo16Loop(in, maxOutPt, maxInIdx, outputIndex, out, inputIndex, vl, vr, in resampleStereo16()
401 while (outputIndex < outputSampleCount && inputIndex < mBuffer.frameCount) { in resampleStereo16()
402 out[outputIndex++] += vl * Interp(in[inputIndex*2-2], in resampleStereo16()
[all …]
DAudioResamplerCubic.cpp62 size_t outputIndex = 0; in resampleStereo16() local
77 while (outputIndex < outputSampleCount) { in resampleStereo16()
82 out[outputIndex++] += vl * interp(&left, x); in resampleStereo16()
83 out[outputIndex++] += vr * interp(&right, x); in resampleStereo16()
117 return outputIndex / 2 /* channels for stereo */; in resampleStereo16()
129 size_t outputIndex = 0; in resampleMono16() local
144 while (outputIndex < outputSampleCount) { in resampleMono16()
151 out[outputIndex++] += vl * sample; in resampleMono16()
152 out[outputIndex++] += vr * sample; in resampleMono16()
184 return outputIndex; in resampleMono16()
DAudioResamplerSinc.cpp305 size_t outputIndex = 0; in resample() local
309 while (outputIndex < outputSampleCount) { in resample()
343 while (CC_LIKELY(outputIndex < outputSampleCount)) { in resample()
344 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL); in resample()
345 outputIndex += 2; in resample()
369 return outputIndex / CHANNELS; in resample()
DAudioResamplerDyn.cpp634 size_t outputIndex = 0; in resample() local
653 while (outputIndex < outputSampleCount) { in resample()
700 while (CC_LIKELY(outputIndex < outputSampleCount)) { in resample()
712 &out[outputIndex], in resample()
717 outputIndex += OUTPUT_CHANNELS; in resample()
750 return outputIndex / OUTPUT_CHANNELS; in resample()
/frameworks/ml/nn/common/operations/
DGather.cpp49 for (uint32_t outputIndex = 0; outputIndex < indicesCount; ++outputIndex) { in eval() local
50 const auto inputIndex = static_cast<uint32_t>(indicesData[outputIndex]); in eval()
53 std::memcpy(outputData + (outer * indicesCount + outputIndex) * innerSize, in eval()
DSlice.cpp52 std::vector<uint32_t> outputIndex(getNumberOfDimensions(outputShape), 0); in evalGeneric() local
65 addVectors(outputIndex, beginIndex, &inputIndex); in evalGeneric()
67 NN_RET_CHECK(indexedOutput.indexToFlatIndex(outputIndex, &outputOffset)); in evalGeneric()
71 NN_RET_CHECK(indexedOutput.nextIndexInplace(&outputIndex, &lastIndex)); in evalGeneric()
DTransposeConv2D.cpp144 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
146 outputBase[outputIndex] += inputBase[d] * filterBase[d]; in transposeConvNhwc()
232 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
234 outputBase[outputIndex] += in transposeConvNhwc()
373 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvQuant8PerChannelNhwc() local
375 outputBase[outputIndex] += in transposeConvQuant8PerChannelNhwc()
DUnidirectionalSequenceRNN.cpp49 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
50 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
DBidirectionalSequenceRNN.cpp61 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
62 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
DBackDropperFilter.java715 int outputIndex = mPingPong ? 1 : 0; in process() local
760 copyShaderProgram.process(mMask, mMaskVerify[outputIndex]); in process()
772 mMaskVerifyProgram.process(maskVerifyInputs, mMaskVerify[outputIndex]); in process()
773 mMaskVerify[outputIndex].generateMipMap(); in process()
774 mMaskVerify[outputIndex].setTextureParameter(GLES20.GL_TEXTURE_MIN_FILTER, in process()
781 copyShaderProgram.process(mMaskVerify[outputIndex], mMaskAverage); in process()
813 mBgUpdateMeanProgram.process(meanUpdateInputs, mBgMean[outputIndex]); in process()
814 mBgMean[outputIndex].generateMipMap(); in process()
815 mBgMean[outputIndex].setTextureParameter(GLES20.GL_TEXTURE_MIN_FILTER, in process()
821 mBgUpdateVarianceProgram.process(varianceUpdateInputs, mBgVariance[outputIndex]); in process()
[all …]
/frameworks/ml/nn/runtime/test/
DTestPartitioningRandom.cpp1250 uint32_t inputIndex = 0, outputIndex = 0; in TEST_P() local
1264 e->setOutput(outputIndex++, desc.mVector.data(), in TEST_P()
1285 e->setOutputFromMemory(outputIndex++, memory, offset, length, in TEST_P()
1291 CHECK(outputIndex == model.outputCount()); in TEST_P()
1302 uint32_t outputIndex = 0; in TEST_P() local
1307 const size_t outputOffset = outputIndex * problemSize * problemSize; in TEST_P()
1320 std::cout << "nonpartitioned output[" << outputIndex << "] = "; in TEST_P()
1325 outputIndex++; in TEST_P()
1337 uint32_t outputIndex = 0; in TEST_P() local
1342 SCOPED_TRACE(outputIndex); in TEST_P()
[all …]
/frameworks/ml/nn/runtime/
DExecutionBuilder.h212 int setOutputFromTemporaryMemory(uint32_t outputIndex, const Memory* memory, uint32_t offset) { in setOutputFromTemporaryMemory() argument
213 return setInputOrOutputFromTemporaryMemory(mModel->getOutputOperand(outputIndex), in setOutputFromTemporaryMemory()
215 &mOutputs.at(outputIndex)); in setOutputFromTemporaryMemory()