[subplugin/ext] Extensions not update their functions
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 24 Dec 2019 08:31:26 +0000 (17:31 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 14 Feb 2020 06:09:48 +0000 (22:09 -0800)
commitba3172e86d7b1b47f3b0d3e4ca4eec30ca51e4eb
tree337e631395d97c9809fc12fdab0adea492a4e83d
parentd4fb4c17271917f25e9139d2479f111be0f2051b
[subplugin/ext] Extensions not update their functions

NNStreamer extensions for tensor filter update their functions based on the model file
However, this behavior is not thread-safe.
Updated for extensions to not update their functions for allocate_in_invoke

For allocate_in_invoke, tensor_filter needs to know based on the model if the allocate_in_invoke is supported or not
So added another interface in GstTensorFilterFramework - allocateInInvoke

V2:
Added allocate_in_invoke to be set properly in single API implementation of tensor_filter
Also added some minor updates in comment
Added minor bugfix in python extension

Related Issue: #2034

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
api/capi/src/tensor_filter_single.c
ext/nnstreamer/tensor_filter/tensor_filter_caffe2.cc
ext/nnstreamer/tensor_filter/tensor_filter_python.cc
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow.cc
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
gst/nnstreamer/tensor_filter/tensor_filter_custom.c