From: jinhyuck-park Date: Thu, 4 Oct 2018 06:18:13 +0000 (+0900) Subject: [TensorDec] Add install properties in tensor decoder init X-Git-Tag: v0.0.2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f9b429940f4efd9f39dec580b4404455d1a3ada;p=platform%2Fupstream%2Fnnstreamer.git [TensorDec] Add install properties in tensor decoder init Add install properties mode and mode-option-1 for tensor decoder processing image labeling Signed-off-by: jinhyuck-park --- diff --git a/gst/tensor_decoder/tensordec.c b/gst/tensor_decoder/tensordec.c index a8fbe9d..efcd001 100644 --- a/gst/tensor_decoder/tensordec.c +++ b/gst/tensor_decoder/tensordec.c @@ -438,6 +438,15 @@ gst_tensordec_class_init (GstTensorDecClass * klass) g_param_spec_boolean ("silent", "Silent", "Produce verbose output", DEFAULT_SILENT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + g_object_class_install_property (gobject_class, PROP_MODE, + g_param_spec_string ("mode", "Mode", "Decoder mode", "", + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + + g_object_class_install_property (gobject_class, PROP_MODE_OPTION1, + g_param_spec_string ("mode-option-1", "Mode option 1", + "Mode option like file path to the image label", "", + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + gst_element_class_set_details_simple (gstelement_class, "TensorDecoder", "Converter/Tensor",