[tensor_filter] Support data layout for tensor
authorParichay Kapoor <pk.kapoor@samsung.com>
Wed, 8 Jan 2020 05:51:10 +0000 (14:51 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 4 Feb 2020 10:01:22 +0000 (02:01 -0800)
commitaf17c06fe1dc09493f72281d03b07f6d4c0cadcd
treecb76773c57c3c24b87e6bc60d48ef0606ff34f6c
parent221b3bbef7b43d00ec6b551bf1072cc06c68caa0
[tensor_filter] Support data layout for tensor

Data layout added for tensor_filter in GstTensorFilterProperties
Four data layouts are supported
- ANY - unknown does not matter
- NHWC - referred as channels last
- NCHW - referred as channels first
- none - doesnt fit with above options
These data layouts can be different for each other/tensor in other/tensors
Layout is taken input as a string, and then parsed for each tensor
This layout is stored in tensor_filter element itself to be used by its subplugins, and not passed to other elements in the pipeline

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
gst/nnstreamer/nnstreamer_plugin_api_filter.h
gst/nnstreamer/tensor_filter/tensor_filter_common.c