[TensorDec] Add install properties in tensor decoder init
authorjinhyuck-park <jinhyuck83.park@samsung.com>
Thu, 4 Oct 2018 06:18:13 +0000 (15:18 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Fri, 5 Oct 2018 05:29:00 +0000 (14:29 +0900)
Add install properties mode and mode-option-1 for tensor decoder
processing image labeling

Signed-off-by: jinhyuck-park <jinhyuck83.park@samsung.com>
gst/tensor_decoder/tensordec.c

index a8fbe9d..efcd001 100644 (file)
@@ -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",