[Filter] Allow to allocate outbuf in invoke().
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 5 Jul 2018 11:21:20 +0000 (20:21 +0900)
committer함명주/동작제어Lab(SR)/Principal Engineer/삼성전자 <myungjoo.ham@samsung.com>
Tue, 10 Jul 2018 01:18:23 +0000 (10:18 +0900)
commitf50651655398c6c0247934572649a0d231eaf63c
tree2123604857b8b5ea5989b9df15489d78c2dfe1e6
parent377d9bd6e37600b98861d7e5fc7c1b9c116a3b2c
[Filter] Allow to allocate outbuf in invoke().

Because tensorflow allocated output buffer in the tensorflow context,
allocating output buffer in gstreamer side incurs additional memcpy.

Thus, allow to generate GstBuf of Sink-Pad from the memory allocated
by filter's "invoke" method.

Fixes #161

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/tensor_filter/tensor_filter.c
gst/tensor_filter/tensor_filter.h
gst/tensor_filter/tensor_filter_custom.c
include/tensor_filter_custom.h
nnstreamer_example/custom_example_scaler/CMakeLists.txt
nnstreamer_example/custom_example_scaler/nnstreamer_customfilter_example_scaler_allocator.c [new file with mode: 0644]
tests/nnstreamer_filter_custom/runTest.sh