[Common] util function to handle tensors
authorJaeyun <jy1210.jung@samsung.com>
Wed, 3 Nov 2021 04:42:51 +0000 (13:42 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 10 Nov 2021 08:00:46 +0000 (17:00 +0900)
commit837beb710be246ce2c0cc0fc0b0c51af864289e5
tree66247a793996668eabd046170f6f191925ba6185
parent1a3ef66e4479b740236c076c87e213af0fb2917e
[Common] util function to handle tensors

With gstreamer plugins, nnstreamer element may receive gst-buffer with invalid memory chunks.
nnstreamer internally checks the number of tensors using the mem blocks in gst-buffer.

To handle multi tensors, add util function to separate memories in gst-buffer.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
gst/nnstreamer/tensor_common.h
gst/nnstreamer/tensor_common_pipeline.c
tests/common/unittest_common.cc