[TensorFilter] Add Add a callback of tensor filter for model update in runtime
authorDongju Chae <dongju.chae@samsung.com>
Mon, 9 Dec 2019 11:17:11 +0000 (20:17 +0900)
committerGeunsik Lim <leemgs@users.noreply.github.com>
Tue, 10 Dec 2019 11:24:20 +0000 (20:24 +0900)
commit51a4e71a5d8802103ae971021dd48fa3b3ee715c
tree8acf30d7143d6f1fafd4eccfcd2cfb3f7bf63da3
parent945ee3249aa2f7764846748fe495d6877118cd6e
[TensorFilter] Add Add a callback of tensor filter for model update in runtime

This commit adds a callback, reloadModel(), of tensor filter for model
update in runtime. When the model property is updated, this callback
will be called if is-updatable is TRUE.

Also, it adds an event handler to update a model in the same pipeline.
On receiving a model update event, it calls set_property() of PROP_MODEL.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
gst/nnstreamer/nnstreamer_plugin_api_filter.h
gst/nnstreamer/tensor_filter/tensor_filter.c
gst/nnstreamer/tensor_filter/tensor_filter_common.c
gst/nnstreamer/tensor_filter/tensor_filter_common.h