Common: refactor silent_debug() and make it common
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 15 Jul 2021 07:44:28 +0000 (16:44 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 27 Jul 2021 05:24:17 +0000 (14:24 +0900)
commitb7b2602cbd31a25e72094cdbb5dd0f77376c7da3
tree60f8d95c311a5cd4ce926f93442b88344278e78d
parentb748820622c6fb7aed3f01d2d577148c6a6e293c
Common: refactor silent_debug() and make it common

1. Provide common macro of silent_debug and silent_debug_caps,
 which had been repeatedly defined in each plugin.
2. Refactor the two macros to get "object" as an argument
 so that it wouldn't use implicit argument exceot for "DBG".

The same macros are not touched in /ext directory
because they are not supposed to include "tensor_common.h",
which is an internal header.

@todo There are a few subplugins in /ext (not tensor-filter)
that uses "tensor_common.h". They should be refactored not to
use internal headers so that we can separate them to
independent repo anytime. Although we don't have such plans,
we need to keep them as appropriate examples for users.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
12 files changed:
gst/nnstreamer/tensor_aggregator/tensor_aggregator.c
gst/nnstreamer/tensor_common.h
gst/nnstreamer/tensor_converter/tensor_converter.c
gst/nnstreamer/tensor_decoder/tensordec.c
gst/nnstreamer/tensor_filter/tensor_filter.c
gst/nnstreamer/tensor_if/gsttensorif.c
gst/nnstreamer/tensor_merge/gsttensormerge.c
gst/nnstreamer/tensor_mux/gsttensormux.c
gst/nnstreamer/tensor_rate/gsttensorrate.c
gst/nnstreamer/tensor_sink/tensor_sink.c
gst/nnstreamer/tensor_source/tensor_src_iio.c
gst/nnstreamer/tensor_transform/tensor_transform.c