[MachineLearning.Inference] Pipeline class to execute neural network stream (#1404)
authorjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 30 Mar 2020 08:35:01 +0000 (17:35 +0900)
committerGitHub <noreply@github.com>
Mon, 30 Mar 2020 08:35:01 +0000 (17:35 +0900)
commit558e3c29e7431e5cbfbd90d3b6a9833c505f6fd9
treedf04054bdfd31185ea377e9404eb2ed7aaf16393
parent0b3f49bed00381ae67543b201449ec254466f836
[MachineLearning.Inference] Pipeline class to execute neural network stream (#1404)

* [MachineLearning.Inference] sync to C-API change

1. Add enum for NNFWType and HWType with C-API update.
2. Add enum for newly added in C-API (out-of-mem and permission-denied)
3. Code clean, remove duplicated code and typo correction.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
* [MachineLearning.Inference] Pipeline class to execute neural network stream

This patch newly provides interfaces to create and execute stream pipeline with neural network.
Pipeline and its related classes support the following functionalities:
- Create a stream pipeline with NNStreamer plugins and GStreamer plugins.
- Interfaces to start/stop/destroy the pipeline.
- Interfaces to get the state of the pipeline and register callback method.
- Interfaces to push data to the pipeline from the application.
- Interfaces to pull data from the pipeline to the application.
- Interfaces to control the stream of the pipeline using switches and valves.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
src/Tizen.MachineLearning.Inference/Interop/Interop.Nnstreamer.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Commons.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/DataReceivedEventArgs.cs [new file with mode: 0644]
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/Pipeline.cs [new file with mode: 0644]
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/SingleShot.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/StateChangedEventArgs.cs [new file with mode: 0644]
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsData.cs
src/Tizen.MachineLearning.Inference/Tizen.MachineLearning.Inference/TensorsInfo.cs