Home
last modified time | relevance | path

Searched refs:outputIndex (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/frameworks/av/media/libaudioprocessing/
H A DAudioResampler.cpp346 size_t outputIndex = 0; in resampleStereo16() local
353 while (outputIndex < outputSampleCount) { in resampleStereo16()
444 size_t outputIndex = 0; in resampleMono16() local
450 while (outputIndex < outputSampleCount) { in resampleMono16()
474 out[outputIndex++] += vl * sample; in resampleMono16()
475 out[outputIndex++] += vr * sample; in resampleMono16()
500 out[outputIndex++] += vl * sample; in resampleMono16()
501 out[outputIndex++] += vr * sample; in resampleMono16()
528 return outputIndex; in resampleMono16()
561 (void)outputIndex; in AsmMono16Loop()
[all …]
H A 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()
H A DAudioResamplerDyn.cpp645 size_t outputIndex = 0; in resample() local
664 while (outputIndex < outputSampleCount) { in resample()
711 while (CC_LIKELY(outputIndex < outputSampleCount)) { in resample()
723 &out[outputIndex], in resample()
728 outputIndex += OUTPUT_CHANNELS; in resample()
761 return outputIndex / OUTPUT_CHANNELS; in resample()
H A 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()
/aosp12/frameworks/av/media/codec2/sfplugin/tests/
H A DFrameReassembler_test.cpp68 size_t inputIndex = 0, outputIndex = 0; in testPushSameSize() local
90 outputIndex * 1000000 / sampleRate / channelCount / BytesPerSample(encoding); in testPushSameSize()
96 << " output index: " << outputIndex; in testPushSameSize()
106 for (size_t j = 0; j < view.capacity(); ++j, ++outputIndex) { in testPushSameSize()
107 ASSERT_TRUE(outputIndex < inputIndex in testPushSameSize()
109 uint8_t expected = outputIndex < inputIndex ? (outputIndex & 0xFF) : 0; in testPushSameSize()
112 EXPECT_EQ(expected, view.data()[j]) << "output index = " << outputIndex; in testPushSameSize()
121 ASSERT_EQ(0, outputIndex % encoderFrameSizeInBytes) in testPushSameSize()
122 << "output size must be multiple of frame size: output size = " << outputIndex in testPushSameSize()
124 ASSERT_EQ(expectedOutputSize, outputIndex) in testPushSameSize()
[all …]
/aosp12/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
H A Dsuggestion_results.cpp27 int outputIndex = 0; in outputSuggestions() local
31 const int start = outputIndex * MAX_WORD_LENGTH; in outputSuggestions()
35 JniDataUtils::putIntToArray(env, outScoresArray, outputIndex, suggestedWord.getScore()); in outputSuggestions()
36 JniDataUtils::putIntToArray(env, outSpaceIndicesArray, outputIndex, in outputSuggestions()
38 JniDataUtils::putIntToArray(env, outTypesArray, outputIndex, suggestedWord.getType()); in outputSuggestions()
43 ++outputIndex; in outputSuggestions()
46 JniDataUtils::putIntToArray(env, outSuggestionCount, 0 /* index */, outputIndex); in outputSuggestions()
/aosp12/packages/modules/NeuralNetworks/common/operations/
H A DGather.cpp48 for (uint32_t outputIndex = 0; outputIndex < indicesCount; ++outputIndex) { in eval() local
49 const auto inputIndex = static_cast<uint32_t>(indicesData[outputIndex]); in eval()
52 std::memcpy(outputData + (outer * indicesCount + outputIndex) * innerSize, in eval()
H A DSlice.cpp59 std::vector<uint32_t> outputIndex(getNumberOfDimensions(outputShape), 0); in evalGeneric() local
72 addVectors(outputIndex, beginIndex, &inputIndex); in evalGeneric()
74 NN_RET_CHECK(indexedOutput.indexToFlatIndex(outputIndex, &outputOffset)); in evalGeneric()
78 NN_RET_CHECK(indexedOutput.nextIndexInplace(&outputIndex, &lastIndex)); in evalGeneric()
H A DTransposeConv2D.cpp155 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
157 outputBase[outputIndex] += inputBase[d] * filterBase[d]; in transposeConvNhwc()
243 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvNhwc() local
245 outputBase[outputIndex] += in transposeConvNhwc()
385 uint32_t outputIndex = hOutput * outputWidth * outputDepth + in transposeConvQuant8PerChannelNhwc() local
387 outputBase[outputIndex] += in transposeConvQuant8PerChannelNhwc()
H A DUnidirectionalSequenceRNN.cpp57 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
58 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
H A DBidirectionalSequenceRNN.cpp73 const uint32_t outputIndex = s * firstDimSize * inputSize + f * inputSize + i; in transposeFirstTwoDims() local
74 output[outputIndex] = input[inputIndex]; in transposeFirstTwoDims()
/aosp12/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
H A 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()
822 mBgVariance[outputIndex].generateMipMap(); in process()
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestPartitioningRandom.cpp1336 uint32_t inputIndex = 0, outputIndex = 0; in TEST_P() local
1349 e->setOutput(outputIndex++, desc.mVector.data(), in TEST_P()
1372 CHECK(outputIndex == model.outputCount()); in TEST_P()
1383 uint32_t outputIndex = 0; in TEST_P() local
1399 std::cout << "nonpartitioned output[" << outputIndex << "] = "; in TEST_P()
1404 outputIndex++; in TEST_P()
1416 uint32_t outputIndex = 0; in TEST_P() local
1421 SCOPED_TRACE(outputIndex); in TEST_P()
1425 std::cout << " partitioned output[" << outputIndex << "] = "; in TEST_P()
1433 std::cout << "part output[" << outputIndex << "] = "; in TEST_P()
[all …]
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
H A DTestHarness.cpp200 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()
/aosp12/packages/modules/NeuralNetworks/runtime/
H A DExecutionBuilder.h374 int setOutputFromMemory(uint32_t outputIndex, const RuntimeMemory* memory, uint32_t offset,
376 return setInputOrOutputFromMemory(mModel->getOutputOperand(outputIndex), memory, offset,
377 length, dimensions, &mOutputs.at(outputIndex));
H A DExecutionBuilder.cpp75 for (uint32_t outputIndex = 0, outputCount = shapes.size(); outputIndex < outputCount; in validateOutputShapesFromDriver() local
76 ++outputIndex) { in validateOutputShapesFromDriver()
77 const Operand& outputOperand = model->getOutputOperand(outputIndex); in validateOutputShapesFromDriver()
79 (shapes[outputIndex].dimensions.size() != 0)) in validateOutputShapesFromDriver()
81 << outputIndex << " shape unexpectedly has zero rank"; in validateOutputShapesFromDriver()
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
H A DMpegTsDefaultAudioTrackRenderer.java489 int outputIndex = in feedInputBuffer() local
491 if (outputIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in feedInputBuffer()
494 } else if (outputIndex < 0) { in feedInputBuffer()
/aosp12/hardware/interfaces/neuralnetworks/1.2/vts/functional/
H A DGeneratedTestHarness.cpp170 static void makeOutputInsufficientSize(uint32_t outputIndex, Request* request) { in makeOutputInsufficientSize() argument
171 auto& length = request->outputs[outputIndex].location.length; in makeOutputInsufficientSize()
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DMemoryDomainTests.cpp137 const uint32_t outputIndex = inputIndex + operands.size() - 1; in createConvModel() local
142 .outputs = {outputIndex}}); in createConvModel()
144 model.main.outputIndexes.push_back(outputIndex); in createConvModel()
H A DGeneratedTestHarness.cpp324 static void makeOutputInsufficientSize(uint32_t outputIndex, Request* request) { in makeOutputInsufficientSize() argument
325 auto& length = request->outputs[outputIndex].location.length; in makeOutputInsufficientSize()
H A DCompilationCachingTests.cpp160 const uint32_t outputIndex = secondInputIndex + 1; in createLargeTestModelImpl() local
192 .outputs = {outputIndex}, in createLargeTestModelImpl()
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DMemoryDomainTests.cpp139 const uint32_t outputIndex = inputIndex + operands.size() - 1; in createConvModel() local
144 .outputs = {outputIndex}}); in createConvModel()
146 model.main.outputIndexes.push_back(outputIndex); in createConvModel()
H A DGeneratedTestHarness.cpp302 static void makeOutputInsufficientSize(uint32_t outputIndex, Request* request) { in makeOutputInsufficientSize() argument
303 auto& loc = request->outputs[outputIndex].location; in makeOutputInsufficientSize()
H A DCompilationCachingTests.cpp155 const uint32_t outputIndex = secondInputIndex + 1; in createLargeTestModelImpl() local
187 .outputs = {outputIndex}, in createLargeTestModelImpl()
/aosp12/packages/modules/NeuralNetworks/runtime/test/fuzzing/
H A DTestRandomGraph.cpp272 auto outputIndex = mTestModel.main.outputIndexes[i]; in computeGoldenResults() local
273 mTestModel.main.operands[outputIndex].data = outputs[i]; in computeGoldenResults()

12