[Common] tensor format in struct
authorJaeyun <jy1210.jung@samsung.com>
Mon, 24 Oct 2022 06:58:16 +0000 (15:58 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 2 Nov 2022 07:13:34 +0000 (16:13 +0900)
commitb55d44cdb8faa080f9067b99486a6026143412f2
tree7a058d70d110692d16e1fb10fcbba88734fbc4fa
parent878460243020c40889761793deb449a6ea9b2a1f
[Common] tensor format in struct

Move enum flag - tensor_format into tensors-info struct.

To pass flexible tensors to filter sub-plugins, we should indicate tensor format in tensors-info struct, not tensors-config.
Internally tensors-config struct is used for caps negotiation.

TODO: need discussion, should we separate format in each tensor info, so that each mem chunk can express its format. (then, nnstreamer will combine memories: static+flexible in gst-buffer.)

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
18 files changed:
ext/nnstreamer/extra/nnstreamer_grpc_flatbuf.cc
ext/nnstreamer/extra/nnstreamer_protobuf.cc
ext/nnstreamer/tensor_converter/tensor_converter_flatbuf.cc
ext/nnstreamer/tensor_converter/tensor_converter_flexbuf.cc
ext/nnstreamer/tensor_decoder/tensordec-flatbuf.cc
ext/nnstreamer/tensor_decoder/tensordec-flexbuf.cc
gst/nnstreamer/elements/gsttensor_converter.c
gst/nnstreamer/elements/gsttensor_crop.c
gst/nnstreamer/elements/gsttensor_demux.c
gst/nnstreamer/elements/gsttensor_transform.c
gst/nnstreamer/include/nnstreamer_plugin_api_util.h
gst/nnstreamer/include/tensor_typedef.h
gst/nnstreamer/nnstreamer_plugin_api_impl.c
gst/nnstreamer/nnstreamer_plugin_api_util_impl.c
gst/nnstreamer/tensor_filter/tensor_filter_common.c
tests/common/unittest_common.cc
tests/nnstreamer_decoder/unittest_decoder.cc
tests/nnstreamer_plugins/unittest_plugins.cc