/frameworks/av/media/libaudioprocessing/ |
D | AudioResampler.cpp | 64 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 …]
|
D | AudioResamplerCubic.cpp | 62 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()
|
D | AudioResamplerDyn.cpp | 634 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()
|
D | AudioResamplerSinc.cpp | 305 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()
|
/frameworks/ml/nn/common/operations/ |
D | Gather.cpp | 51 for (uint32_t outputIndex = 0; outputIndex < indicesCount; ++outputIndex) { in eval() local 52 const auto inputIndex = static_cast<uint32_t>(indicesData[outputIndex]); in eval() 55 std::memcpy(outputData + (outer * indicesCount + outputIndex) * innerSize, in eval()
|
D | Slice.cpp | 58 std::vector<uint32_t> outputIndex(getNumberOfDimensions(outputShape), 0); in evalGeneric() local 71 addVectors(outputIndex, beginIndex, &inputIndex); in evalGeneric() 73 NN_RET_CHECK(indexedOutput.indexToFlatIndex(outputIndex, &outputOffset)); in evalGeneric() 77 NN_RET_CHECK(indexedOutput.nextIndexInplace(&outputIndex, &lastIndex)); in evalGeneric()
|
D | TransposeConv2D.cpp | 154 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local 156 outputBase[outputIndex] += inputBase[d] * filterBase[d]; in transposeConvNhwc() 242 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local 244 outputBase[outputIndex] += in transposeConvNhwc() 384 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvQuant8PerChannelNhwc() local 386 outputBase[outputIndex] += in transposeConvQuant8PerChannelNhwc()
|
D | UnidirectionalSequenceRNN.cpp | 58 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local 59 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
|
D | BidirectionalSequenceRNN.cpp | 75 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local 76 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/ |
D | BackDropperFilter.java | 715 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/tools/test_generator/test_harness/ |
D | TestHarness.cpp | 200 const uint32_t outputIndex = model.main.outputIndexes[i]; in checkResults() local 202 << "When comparing output " << i << " (op" << outputIndex << ")"); in checkResults() 203 const auto& operand = model.main.operands[outputIndex]; in checkResults() 684 const uint32_t outputIndex = kTestModel.main.outputIndexes[i]; in dumpResults() local 685 const auto& operand = kTestModel.main.operands[outputIndex]; in dumpResults() 688 mOs << " # op" << outputIndex << ": "; in dumpResults() 692 mOs << " op" << outputIndex << ": "; in dumpResults() 819 uint32_t outputIndex = model->main.outputIndexes[i]; in setExpectedOutputsFromFloat32Results() local 820 auto& op = model->main.operands[outputIndex]; in setExpectedOutputsFromFloat32Results()
|
/frameworks/ml/nn/runtime/test/ |
D | TestPartitioningRandom.cpp | 1306 uint32_t inputIndex = 0, outputIndex = 0; in TEST_P() local 1319 e->setOutput(outputIndex++, desc.mVector.data(), in TEST_P() 1336 e->setOutputFromMemory(outputIndex++, memory, offset, length, in TEST_P() 1342 CHECK(outputIndex == model.outputCount()); in TEST_P() 1353 uint32_t outputIndex = 0; in TEST_P() local 1358 const size_t outputOffset = outputIndex * problemSize * problemSize; in TEST_P() 1369 std::cout << "nonpartitioned output[" << outputIndex << "] = "; in TEST_P() 1374 outputIndex++; in TEST_P() 1386 uint32_t outputIndex = 0; in TEST_P() local 1391 SCOPED_TRACE(outputIndex); in TEST_P() [all …]
|
/frameworks/ml/nn/runtime/ |
D | ExecutionBuilder.h | 261 int setOutputFromMemory(uint32_t outputIndex, const Memory* memory, uint32_t offset) { in setOutputFromMemory() argument 262 return setInputOrOutputFromMemory(mModel->getOutputOperand(outputIndex), memory, offset, in setOutputFromMemory() 263 &mOutputs.at(outputIndex)); in setOutputFromMemory()
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 274 auto outputIndex = mTestModel.main.outputIndexes[i]; in computeGoldenResults() local 275 mTestModel.main.operands[outputIndex].data = outputs[i]; in computeGoldenResults()
|