[TensorSplit] Update the plugin information and its testcase
authorSangjung woo <sangjung.woo@samsung.com>
Thu, 20 Sep 2018 06:30:10 +0000 (15:30 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 20 Sep 2018 22:27:30 +0000 (07:27 +0900)
This patch updates the plugin information such as Name, Description when
getting by gst-inspect tool. Moreover, this updates its test case since
the name is changed.

Signed-off-by: Sangjung woo <sangjung.woo@samsung.com>
gst/tensor_split/gsttensorsplit.c
tests/nnstreamer_split/runTest.sh

index 472fe09..c31d683 100644 (file)
@@ -38,7 +38,7 @@
  * <title>Example launch line</title>
  * |[
  * gst-launch -v -m filesrc location=testcase_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw,format=RGB,width=100,height=100,framerate=0/1 ! tensor_converter
- * ! tensorsplit name=split tensorseg=1:100:100:2,1:100:100:1 split.src_0 ! queue ! filesink location=src0.log
+ * ! tensor_split name=split tensorseg=1:100:100:2,1:100:100:1 split.src_0 ! queue ! filesink location=src0.log
  * split.src_1 ! queue ! filesink location=src1.log
  * ]|
  *
@@ -140,7 +140,7 @@ gst_tensor_split_class_init (GstTensorSplitClass * klass)
       gst_static_pad_template_get (&src_templ));
 
   gst_element_class_set_details_simple (gstelement_class,
-      "tensorsplit",
+      "TensorSplit",
       "Split other/tensor stream",
       "Split tensor stream to other/tensor stream",
       "Jijoong Moon <jijoong.moon@samsung.com>");
@@ -683,7 +683,7 @@ gst_tensor_split_get_property (GObject * object, guint prop_id,
  * compile this code. GST_PLUGIN_DEFINE needs PACKAGE to be defined.
  */
 #ifndef PACKAGE
-#define PACKAGE "tensorsplit"
+#define PACKAGE "tensor_split"
 #endif
 
 /**
@@ -697,9 +697,9 @@ gst_tensor_split_plugin_init (GstPlugin * tensorsplit)
   /** debug category for fltering log messages
    * exchange the string 'Template tensor_split' with your description
    */
-  GST_DEBUG_CATEGORY_INIT (gst_tensor_split_debug, "tensorsplit", 0,
+  GST_DEBUG_CATEGORY_INIT (gst_tensor_split_debug, "tensor_split", 0,
       "Tensor Spliter");
-  return gst_element_register (tensorsplit, "tensorsplit",
+  return gst_element_register (tensorsplit, "tensor_split",
       GST_RANK_NONE, GST_TYPE_TENSOR_SPLIT);
 }
 
@@ -708,7 +708,7 @@ gst_tensor_split_plugin_init (GstPlugin * tensorsplit)
  */
 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
     GST_VERSION_MINOR,
-    tensorsplit,
-    "tensorsplit",
+    tensor_split,
+    "tensor split plugin",
     gst_tensor_split_plugin_init, VERSION, "LGPL", "GStreamer",
     "http://gstreamer.net/");
index d08124a..069bfa6 100755 (executable)
@@ -12,31 +12,31 @@ else
 fi
 convertBMP2PNG
 
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensordsplit:5 filesrc location=testcase_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw, format = RGB, width=100, height=100, framerate=0/1 ! tensor_converter ! tensorsplit name=split tensorseg=1:100:100:3 split. ! queue ! filesink location=split00.log" 1
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensor_split:5 filesrc location=testcase_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw, format = RGB, width=100, height=100, framerate=0/1 ! tensor_converter ! tensor_split name=split tensorseg=1:100:100:3 split. ! queue ! filesink location=split00.log" 1
 
 compareAllSizeLimit testcase_0_0.golden split00.log 1
 
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensordsplit:5 filesrc location=testcase_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw, format = RGB, width=100, height=100, framerate=0/1 ! tensor_converter ! tensorsplit name=split tensorseg=1:100:100:1,1:100:100:2 split. ! queue ! filesink location=split01_0.log split. ! queue ! filesink location=split01_1.log" 2
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensor_split:5 filesrc location=testcase_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw, format = RGB, width=100, height=100, framerate=0/1 ! tensor_converter ! tensor_split name=split tensorseg=1:100:100:1,1:100:100:2 split. ! queue ! filesink location=split01_0.log split. ! queue ! filesink location=split01_1.log" 2
 
 compareAllSizeLimit testcase_1_0.golden split01_0.log 2_0
 compareAllSizeLimit testcase_1_1.golden split01_1.log 2_1
 
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensordsplit:5 filesrc location=testcase_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw, format = RGB, width=100, height=100, framerate=0/1 ! tensor_converter ! tensorsplit name=split tensorseg=1:100:100:1,1:100:100:1,1:100:100:1 split. ! queue ! filesink location=split02_0.log split. ! queue ! filesink location=split02_1.log split. ! queue ! filesink location=split02_2.log" 3
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensor_split:5 filesrc location=testcase_RGB_100x100.png ! pngdec ! videoscale ! imagefreeze ! videoconvert ! video/x-raw, format = RGB, width=100, height=100, framerate=0/1 ! tensor_converter ! tensor_split name=split tensorseg=1:100:100:1,1:100:100:1,1:100:100:1 split. ! queue ! filesink location=split02_0.log split. ! queue ! filesink location=split02_1.log split. ! queue ! filesink location=split02_2.log" 3
 
 compareAllSizeLimit testcase_2_0.golden split02_0.log 3_0
 compareAllSizeLimit testcase_2_1.golden split02_1.log 3_1
 compareAllSizeLimit testcase_2_2.golden split02_2.log 3_2
 
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensordsplit:5 multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png, framerate=(fraction)30/1\" ! pngdec ! tensor_converter ! tensorsplit name=split tensorseg=1:16:16:3 split. ! queue ! filesink location=split03.log" 4
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensor_split:5 multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png, framerate=(fraction)30/1\" ! pngdec ! tensor_converter ! tensor_split name=split tensorseg=1:16:16:3 split. ! queue ! filesink location=split03.log" 4
 
 compareAllSizeLimit testcase_stream.golden split03.log 4
 
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensordsplit:5 multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png, framerate=(fraction)30/1\" ! pngdec ! tensor_converter ! tensorsplit name=split tensorseg=1:16:16:1,1:16:16:2 split. ! queue ! filesink location=split04_0.log split. ! queue ! filesink location=split04_1.log" 5
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensor_split:5 multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png, framerate=(fraction)30/1\" ! pngdec ! tensor_converter ! tensor_split name=split tensorseg=1:16:16:1,1:16:16:2 split. ! queue ! filesink location=split04_0.log split. ! queue ! filesink location=split04_1.log" 5
 
 compareAllSizeLimit testcase_stream_1_0.golden split04_0.log 5_0
 compareAllSizeLimit testcase_stream_1_1.golden split04_1.log 5_1
 
-gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensordsplit:5 multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png, framerate=(fraction)30/1\" ! pngdec ! tensor_converter ! tensorsplit name=split tensorseg=1:16:16:1,1:16:16:1,1:16:16:1 split. ! queue ! filesink location=split05_0.log split. ! queue ! filesink location=split05_1.log split. ! queue ! filesink location=split05_2.log" 6
+gstTest "--gst-plugin-path=${PATH_TO_PLUGIN} --gst-debug=tensor_split:5 multifilesrc location=\"testsequence_%1d.png\" index=0 caps=\"image/png, framerate=(fraction)30/1\" ! pngdec ! tensor_converter ! tensor_split name=split tensorseg=1:16:16:1,1:16:16:1,1:16:16:1 split. ! queue ! filesink location=split05_0.log split. ! queue ! filesink location=split05_1.log split. ! queue ! filesink location=split05_2.log" 6
 
 compareAllSizeLimit testcase_stream_2_0.golden split05_0.log 6_0
 compareAllSizeLimit testcase_stream_2_1.golden split05_1.log 6_1