* <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
* ]|
*
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>");
* compile this code. GST_PLUGIN_DEFINE needs PACKAGE to be defined.
*/
#ifndef PACKAGE
-#define PACKAGE "tensorsplit"
+#define PACKAGE "tensor_split"
#endif
/**
/** 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);
}
*/
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/");
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