/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | neural_network_runtime_compat.cpp | 46 uint32_t inputIndex, const OH_NN_Tensor *tensor, const void *dataBuffer, size_t length) in OH_NNExecutor_SetInput() 66 return executorImpl->SetInput(inputIndex, *tensor, dataBuffer, length); in OH_NNExecutor_SetInput() 100 NNRT_API OH_NN_Memory *OH_NNExecutor_AllocateInputMemory(OH_NNExecutor *executor, uint32_t inputIndex, size_t length) in OH_NNExecutor_AllocateInputMemory() argument 113 OH_NN_ReturnCode ret = executorImpl->CreateInputMemory(inputIndex, length, &nnMemory); in OH_NNExecutor_AllocateInputMemory() 144 NNRT_API void OH_NNExecutor_DestroyInputMemory(OH_NNExecutor *executor, uint32_t inputIndex, OH_NN_Memory **memory) in OH_NNExecutor_DestroyInputMemory() argument 160 OH_NN_ReturnCode ret = executorImpl->DestroyInputMemory(inputIndex, memory); in OH_NNExecutor_DestroyInputMemory() 195 uint32_t inputIndex, const OH_NN_Tensor *tensor, const OH_NN_Memory *memory) in OH_NNExecutor_SetInputWithMemory() 211 return executorImpl->SetInputFromMemory(inputIndex, *tensor, *memory); in OH_NNExecutor_SetInputWithMemory() 45 OH_NNExecutor_SetInput(OH_NNExecutor *executor, uint32_t inputIndex, const OH_NN_Tensor *tensor, const void *dataBuffer, size_t length) OH_NNExecutor_SetInput() argument 194 OH_NNExecutor_SetInputWithMemory(OH_NNExecutor *executor, uint32_t inputIndex, const OH_NN_Tensor *tensor, const OH_NN_Memory *memory) OH_NNExecutor_SetInputWithMemory() argument
|
H A D | nnexecutor.cpp | 72 size_t inputIndex, size_t** minInputDims, size_t** maxInputDims, size_t* shapeNum) const in GetInputDimRange() 95 if (inputIndex >= m_minInputDimsVec.size()) { in GetInputDimRange() 96 LOGE("NNExecutor::GetInputDimRange failed, inputIndex[%{public}zu] is out of range.", inputIndex); in GetInputDimRange() 100 *shapeNum = m_minInputDimsVec[inputIndex].size(); in GetInputDimRange() 101 if (*shapeNum != m_maxInputDimsVec[inputIndex].size()) { in GetInputDimRange() 103 " dims of the %{public}zuth input.", inputIndex); in GetInputDimRange() 106 *minInputDims = m_minInputDimsVec[inputIndex].data(); in GetInputDimRange() 107 *maxInputDims = m_maxInputDimsVec[inputIndex].data(); in GetInputDimRange() 71 GetInputDimRange( size_t inputIndex, size_t** minInputDims, size_t** maxInputDims, size_t* shapeNum) const GetInputDimRange() argument
|
H A D | nnexecutor.h | 35 OH_NN_ReturnCode GetInputDimRange(size_t inputIndex,
|
H A D | lite_graph_to_hdi_model_v2_0.cpp | 1029 tmp.inputIndex = node->input_indices_; in LiteGraph_To_HDIModel() 1081 retModel->inputIndex = liteGraph->input_indices_; in LiteGraph_To_HDIModel()
|
/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/ |
H A D | neural_network_runtime.h | 391 * memory of the underlying device. <b>inputIndex</b> specifies the input to be set and <b>tensor</b> sets information 407 * @param inputIndex Input index value, which is in the same sequence of the data input when 424 uint32_t inputIndex, 490 * @param inputIndex Input index value, which is in the same sequence of the data input when 502 OH_NN_Memory *OH_NNExecutor_AllocateInputMemory(OH_NNExecutor *executor, uint32_t inputIndex, size_t length); 532 * The mapping between <b>inputIndex</b> and <b>memory</b> must be the same as that in memory instance creation.\n 538 * @param inputIndex Input index value, which is in the same sequence of the data input when 550 void OH_NNExecutor_DestroyInputMemory(OH_NNExecutor *executor, uint32_t inputIndex, OH_NN_Memory **memory); 587 * @param inputIndex Input index value, which is in the same sequence of the data input when 604 uint32_t inputIndex, [all...] |
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/nnrt/ |
H A D | nnrt_implementation.h | 63 OH_NN_ReturnCode (*OH_NNExecutor_SetInput)(OH_NNExecutor* executor, uint32_t inputIndex, 70 OH_NN_Memory* (*OH_NNExecutor_AllocateInputMemory)(OH_NNExecutor* executor, uint32_t inputIndex, size_t length); 73 void (*OH_NNExecutor_DestroyInputMemory)(OH_NNExecutor* executor, uint32_t inputIndex, OH_NN_Memory** memory); 74 OH_NN_ReturnCode (*OH_NNExecutor_SetInputWithMemory)(OH_NNExecutor* executor, uint32_t inputIndex,
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/ |
H A D | nnrt_device_service.cpp | 257 if (model.inputIndex.empty()) { in ValidateModel() 268 auto inputIt = std::find_if(model.inputIndex.begin(), model.inputIndex.end(), [tensorSize](size_t inputIndex) { in ValidateModel() 269 return inputIndex > tensorSize; in ValidateModel() 271 if (inputIt != model.inputIndex.end()) { in ValidateModel() 302 metaGraph->inputIndex = model.inputIndex; in TransModelToGraph() 374 cnode->inputIndex = node.inputIndex; in TransNode() [all...] |
H A D | prepared_model_service.cpp | 191 for (auto i : graph->inputIndex) { in Compile()
|
/foundation/multimedia/av_codec/services/engine/codec/audio/ |
H A D | audio_codec_worker.cpp | 281 uint32_t inputIndex; in HandInputBuffer() local 284 inputIndex = inBufIndexQue_.front(); in HandInputBuffer() 287 AVCODEC_LOGD_LIMIT(LOGD_FREQUENCY, "handle input buffer. index:%{public}u", inputIndex); in HandInputBuffer() 288 auto inputBuffer = GetInputBufferInfo(inputIndex); in HandInputBuffer() 291 inputBuffer_->ReleaseBuffer(inputIndex); in HandInputBuffer() 294 inBufAvaIndexQue_.push(inputIndex); in HandInputBuffer()
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/ |
H A D | nnrt_device_service.cpp | 292 if (model.inputIndex.empty()) { in ValidateModel() 303 auto inputIt = std::find_if(model.inputIndex.begin(), model.inputIndex.end(), [tensorSize](size_t inputIndex) { in ValidateModel() 304 return inputIndex > tensorSize; in ValidateModel() 306 if (inputIt != model.inputIndex.end()) { in ValidateModel() 338 metaGraph->inputIndex = model.inputIndex; in TransModelToGraph() 420 cnode->inputIndex = node.inputIndex; in TransNode() [all...] |
H A D | prepared_model_service.cpp | 231 for (auto i : graph->inputIndex) { in Compile()
|
/foundation/CastEngine/castengine_wifi_display/services/codec/src/ |
H A D | video_sink_decoder.cpp | 213 auto inputIndex = inQueue_.front(); in DecodeVideoData() local 214 MEDIA_LOGD("inQueue front: %{public}d.", inputIndex); in DecodeVideoData() 238 ret = videoDecoder_->QueueInputBuffer(inputIndex, bufferInfo, MediaAVCodec::AVCODEC_BUFFER_FLAG_CODEC_DATA); in DecodeVideoData() 241 ret = videoDecoder_->QueueInputBuffer(inputIndex, bufferInfo, MediaAVCodec::AVCODEC_BUFFER_FLAG_NONE); in DecodeVideoData()
|
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 1132 uint32_t inputIndex = 0; in HWTEST_F() local 1133 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nullptr, inputIndex, &m_tensor, buffer, length)); in HWTEST_F() 1150 uint32_t inputIndex = 0; in HWTEST_F() local 1154 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nnExecutor, inputIndex, nullptr, buffer, length)); in HWTEST_F() 1173 uint32_t inputIndex = 0; in HWTEST_F() local 1176 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nnExecutor, inputIndex, &m_tensor, buffer, length)); in HWTEST_F() 1193 uint32_t inputIndex = 0; in HWTEST_F() local 1199 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nnExecutor, inputIndex, &m_tensor, buffer, length)); in HWTEST_F() 1216 uint32_t inputIndex = 0; in HWTEST_F() local 1223 OH_NN_ReturnCode ret = OH_NNExecutor_SetInput(nnExecutor, inputIndex, in HWTEST_F() 1608 uint32_t inputIndex = 0; HWTEST_F() local 1631 uint32_t inputIndex = 0; HWTEST_F() local 1651 uint32_t inputIndex = 0; HWTEST_F() local 1672 uint32_t inputIndex = 6; HWTEST_F() local 1695 uint32_t inputIndex = 0; HWTEST_F() local 1819 uint32_t inputIndex = 0; HWTEST_F() local 1844 uint32_t inputIndex = 0; HWTEST_F() local 1869 uint32_t inputIndex = 0; HWTEST_F() local 1889 uint32_t inputIndex = 0; HWTEST_F() local [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 1185 uint32_t inputIndex = 0; in HWTEST_F() local 1186 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nullptr, inputIndex, &m_tensor, buffer, length)); in HWTEST_F() 1203 uint32_t inputIndex = 0; in HWTEST_F() local 1207 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nnExecutor, inputIndex, nullptr, buffer, length)); in HWTEST_F() 1226 uint32_t inputIndex = 0; in HWTEST_F() local 1229 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nnExecutor, inputIndex, &m_tensor, buffer, length)); in HWTEST_F() 1246 uint32_t inputIndex = 0; in HWTEST_F() local 1252 EXPECT_EQ(OH_NN_INVALID_PARAMETER, OH_NNExecutor_SetInput(nnExecutor, inputIndex, &m_tensor, buffer, length)); in HWTEST_F() 1269 uint32_t inputIndex = 0; in HWTEST_F() local 1276 OH_NN_ReturnCode ret = OH_NNExecutor_SetInput(nnExecutor, inputIndex, in HWTEST_F() 1299 uint32_t inputIndex = 0; HWTEST_F() local 1331 uint32_t inputIndex = 0; HWTEST_F() local 1361 uint32_t inputIndex = 0; HWTEST_F() local 1391 uint32_t inputIndex = 0; HWTEST_F() local 2092 uint32_t inputIndex = 0; HWTEST_F() local 2120 uint32_t inputIndex = 0; HWTEST_F() local 2147 uint32_t inputIndex = 0; HWTEST_F() local 2175 uint32_t inputIndex = 6; HWTEST_F() local 2329 uint32_t inputIndex = 0; HWTEST_F() local 2359 uint32_t inputIndex = 0; HWTEST_F() local 2391 uint32_t inputIndex = 0; HWTEST_F() local 2418 uint32_t inputIndex = 0; HWTEST_F() local [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/ |
H A D | HeifDecoderImpl.cpp | 665 size_t inputIndex = 0; in HwDecodeGrids() local 671 parser_->GetItemData(tileImage->GetItemId(), &inputs[inputIndex], heif_only_header); in HwDecodeGrids() 672 ProcessChunkHead(inputs[inputIndex].data(), inputs[inputIndex].size()); in HwDecodeGrids() 673 ++inputIndex; in HwDecodeGrids() 675 if (inputs[inputIndex].size() >= MAX_INPUT_BUFFER_SIZE) { in HwDecodeGrids() 676 ProcessChunkHead(inputs[inputIndex].data(), inputs[inputIndex].size()); in HwDecodeGrids() 677 ++inputIndex; in HwDecodeGrids() 680 parser_->GetItemData(tileImage->GetItemId(), &inputs[inputIndex], heif_no_heade in HwDecodeGrids() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 77 int32_t inputIndex = decoderDemo->NativeGetInputIndex(); in inputFunc() local 86 cout << "index is: " << inputIndex << endl; in inputFunc() 88 OH_AVErrCode ret = decoderDemo->NativePushInputData(handle, inputIndex, info); in inputFunc() 356 int32_t inputIndex = decoderDemo->NativeGetInputIndex(); in HWTEST_F() local 363 ret = decoderDemo->NativePushInputData(handle, inputIndex, info); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
H A D | NativeFuzzTest.cpp | 78 int32_t inputIndex = encoderDemo->NativeGetInputIndex(); in inputFunc() local 88 cout << "index is: " << inputIndex << endl; in inputFunc() 90 OH_AVErrCode ret = encoderDemo->NativePushInputData(handle, inputIndex, info); in inputFunc() 370 int32_t inputIndex = encoderDemo->NativeGetInputIndex(); in HWTEST_F() local 377 ret = encoderDemo->NativePushInputData(handle, inputIndex, info); in HWTEST_F()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/ |
H A D | heif_hw_decoder.cpp | 451 int32_t HeifHardwareDecoder::PrepareInputCodecBuffer(const vector<vector<uint8_t>>& inputs, size_t inputIndex, in PrepareInputCodecBuffer() argument 456 if (inputIndex >= inputs.size()) { in PrepareInputCodecBuffer() 460 const vector<uint8_t>& one = inputs[inputIndex]; in PrepareInputCodecBuffer() 462 LOGW("inputs[%{public}zu] is empty", inputIndex); in PrepareInputCodecBuffer() 470 uint32_t flag = inputIndex == 0 ? OMX_BUFFERFLAG_CODECCONFIG : 0; in PrepareInputCodecBuffer() 493 size_t inputIndex = 0; in SendInputBufferLoop() local 513 int32_t size = PrepareInputCodecBuffer(inputs, inputIndex, buffer); in SendInputBufferLoop() 520 ++inputIndex; in SendInputBufferLoop()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/ |
H A D | executor.h | 36 virtual OH_NN_ReturnCode GetInputDimRange(size_t inputIndex,
|
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/Common/src/ |
H A D | AudioEncoderDemoCommon.cpp | 228 uint32_t inputIndex = signal_->inQueue_.front(); in updateInputData() local 229 inIndexQueue_.push(inputIndex); in updateInputData() 235 cout << "input index is " << inputIndex << endl; in updateInputData() 265 uint32_t inputIndex = inIndexQueue_.front(); in NativeGetInputIndex() local 267 return inputIndex; in NativeGetInputIndex() 1393 uint32_t inputIndex = inIndexQueue_.front(); in InnerGetInputIndex() local 1395 return inputIndex; in InnerGetInputIndex() 1420 uint32_t inputIndex = innersignal_->inQueue_.front(); in InnerUpdateInputData() local 1421 inIndexQueue_.push(inputIndex); in InnerUpdateInputData() 1423 cout << "input index is " << inputIndex << end in InnerUpdateInputData() [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/ |
H A D | heif_hw_decoder.h | 64 int32_t PrepareInputCodecBuffer(const std::vector<std::vector<uint8_t>>& inputs, size_t inputIndex,
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/grid/ |
H A D | render_grid_scroll.cpp | 1363 auto inputIndex = GetItemMainIndex(index); in CalculateScrollLength() local 1365 if (inputIndex >= endIndex_) { in CalculateScrollLength() 1366 // when inputIndex >= endIndex_, grid items need to move forward (i.e. jump backward) in CalculateScrollLength() 1378 for (int32_t i = endIndex_; i < inputIndex; ++i) { in CalculateScrollLength() 1380 if (i != inputIndex) { in CalculateScrollLength() 1388 if (inputIndex <= startIndex_) { in CalculateScrollLength() 1389 // when inputIndex <= startIndex_, grid items need to move backward (i.e. jump forward) in CalculateScrollLength() 1391 for (int32_t i = startIndex_; i >= inputIndex; --i) { in CalculateScrollLength() 1392 SupplyItems(i, index, i != inputIndex); in CalculateScrollLength() 1393 if (i != inputIndex) { in CalculateScrollLength() [all...] |
/foundation/multimedia/av_codec/test/moduletest/audio_decoder/Common/src/ |
H A D | AudioDecoderDemoCommon.cpp | 236 uint32_t inputIndex = signal_->inQueue_.front(); in updateInputData() local 237 inIndexQueue_.push(inputIndex); in updateInputData() 243 cout << "input index is " << inputIndex << endl; in updateInputData() 280 uint32_t inputIndex = innersignal_->inQueue_.front(); in InnerUpdateInputData() local 281 inIndexQueue_.push(inputIndex); in InnerUpdateInputData() 283 cout << "input index is " << inputIndex << endl; in InnerUpdateInputData() 312 uint32_t inputIndex = inIndexQueue_.front(); in NativeGetInputIndex() local 314 return inputIndex; in NativeGetInputIndex()
|
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/delegates/nnrt_delegate/ |
H A D | nnrt_delegate_kernel.cpp | 274 const auto inputIndex = node->inputs->data[inputPos]; in AddOpsAndTensors() local 275 TF_LITE_ENSURE_STATUS(builder.AddTensorInput(inputIndex, reg->builtin_code, inputTensorFlags)); in AddOpsAndTensors()
|
H A D | nnrt_op_builder.cpp | 195 int32_t inputIndex = mappingArgs.node->inputs->data[0]; in AddQuantizeParams() local 196 m_pTensorMapping->ConvertType(m_context, inputIndex, 0, nnType); in AddQuantizeParams()
|