TestType test_type; /**< test pipeline */
tensor_type t_type; /**< tensor type */
char *tmpfile; /**< tmpfile to write */
+ gboolean need_sync; /**< sync on the clock */
} TestOption;
/**
g_strdup_printf
("videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=10/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_0 "
"videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=25/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_1 "
- "tensor_mux sync_mode=slowest name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink sync=true name=test_sink t. ! queue ! filesink location=%s",
+ "tensor_mux sync_mode=slowest name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink name=test_sink t. ! queue ! filesink location=%s",
option.num_buffers * 10, custom_dir ? custom_dir : "./tests", SO_EXT,
option.num_buffers * 25, custom_dir ? custom_dir : "./tests", SO_EXT,
custom_dir ? custom_dir : "./tests", SO_EXT, option.tmpfile);
g_strdup_printf
("videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=10/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_0 "
"videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=25/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_1 "
- "tensor_mux sync_mode=basepad sync_option=0:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink sync=true name=test_sink t. ! queue ! filesink location=%s",
+ "tensor_mux sync_mode=basepad sync_option=0:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink name=test_sink t. ! queue ! filesink location=%s",
option.num_buffers * 10, custom_dir ? custom_dir : "./tests", SO_EXT,
option.num_buffers * 25, custom_dir ? custom_dir : "./tests", SO_EXT,
custom_dir ? custom_dir : "./tests", SO_EXT, option.tmpfile);
g_strdup_printf
("videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=10/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_0 "
"videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=25/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_1 "
- "tensor_mux sync_mode=basepad sync_option=1:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink sync=true name=test_sink t. ! queue ! filesink location=%s",
+ "tensor_mux sync_mode=basepad sync_option=1:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink name=test_sink t. ! queue ! filesink location=%s",
option.num_buffers * 10, custom_dir ? custom_dir : "./tests", SO_EXT,
option.num_buffers * 25, custom_dir ? custom_dir : "./tests", SO_EXT,
custom_dir ? custom_dir : "./tests", SO_EXT, option.tmpfile);
g_strdup_printf
("videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=10/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_0 "
"videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=25/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_1 "
- "tensor_mux sync_mode=basepad sync_option=1:1000000000 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink sync=true name=test_sink t. ! queue ! filesink location=%s",
+ "tensor_mux sync_mode=basepad sync_option=1:1000000000 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink name=test_sink t. ! queue ! filesink location=%s",
option.num_buffers * 10, custom_dir ? custom_dir : "./tests", SO_EXT,
option.num_buffers * 25, custom_dir ? custom_dir : "./tests", SO_EXT,
custom_dir ? custom_dir : "./tests", SO_EXT, option.tmpfile);
g_strdup_printf
("videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=10/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_0 "
"videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=25/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_1 "
- "tensor_merge mode=linear option=3 sync_mode=slowest name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink sync=true name=test_sink t. ! queue ! filesink location=%s",
+ "tensor_merge mode=linear option=3 sync_mode=slowest name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink name=test_sink t. ! queue ! filesink location=%s",
option.num_buffers * 10, custom_dir ? custom_dir : "./tests", SO_EXT,
option.num_buffers * 25, custom_dir ? custom_dir : "./tests", SO_EXT,
custom_dir ? custom_dir : "./tests", SO_EXT, option.tmpfile);
g_strdup_printf
("videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=10/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_0 "
"videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=25/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_1 "
- "tensor_merge mode=linear option=3 sync_mode=basepad sync_option=0:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink sync=true name=test_sink t. ! queue ! filesink location=%s",
+ "tensor_merge mode=linear option=3 sync_mode=basepad sync_option=0:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink name=test_sink t. ! queue ! filesink location=%s",
option.num_buffers * 10, custom_dir ? custom_dir : "./tests", SO_EXT,
option.num_buffers * 25, custom_dir ? custom_dir : "./tests", SO_EXT,
custom_dir ? custom_dir : "./tests", SO_EXT, option.tmpfile);
g_strdup_printf
("videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=10/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_0 "
"videotestsrc pattern=snow num-buffers=%d ! video/x-raw,format=BGRx,height=4,width=4,framerate=25/1 ! tensor_converter ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! mux.sink_1 "
- "tensor_merge mode=linear option=3 sync_mode=basepad sync_option=1:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink sync=true name=test_sink t. ! queue ! filesink location=%s",
+ "tensor_merge mode=linear option=3 sync_mode=basepad sync_option=1:0 name=mux ! tensor_filter framework=custom model=%s/libnnscustom_framecounter.%s ! tee name=t ! queue ! tensor_sink name=test_sink t. ! queue ! filesink location=%s",
option.num_buffers * 10, custom_dir ? custom_dir : "./tests", SO_EXT,
option.num_buffers * 25, custom_dir ? custom_dir : "./tests", SO_EXT,
custom_dir ? custom_dir : "./tests", SO_EXT, option.tmpfile);
/** print logs */
g_object_set (g_test_data.sink, "silent", (gboolean) FALSE, NULL);
}
+ g_object_set (g_test_data.sink, "sync", (gboolean) option.need_sync, NULL);
/** signal for new data */
handle_id = g_signal_connect (g_test_data.sink, "new-data",
gboolean qos, res_qos;
TestOption option = { 1, TEST_TYPE_VIDEO_RGB };
+ option.need_sync = TRUE;
ASSERT_TRUE (_setup_pipeline (option));
/** default signal-rate is 0 */
const guint num_buffers = 2;
TestOption option = { num_buffers, TEST_TYPE_ISSUE739_MUX_PARALLEL_1 };
+ option.need_sync = TRUE;
option.tmpfile = _get_temp_filename ();
EXPECT_TRUE (option.tmpfile != NULL);
const guint num_buffers = 2;
TestOption option = { num_buffers, TEST_TYPE_ISSUE739_MUX_PARALLEL_2 };
+ option.need_sync = TRUE;
option.tmpfile = _get_temp_filename ();
EXPECT_TRUE (option.tmpfile != NULL);
const guint num_buffers = 2;
TestOption option = { num_buffers, TEST_TYPE_ISSUE739_MUX_PARALLEL_3 };
+ option.need_sync = TRUE;
option.tmpfile = _get_temp_filename ();
EXPECT_TRUE (option.tmpfile != NULL);
const guint num_buffers = 2;
TestOption option = { num_buffers, TEST_TYPE_ISSUE739_MERGE_PARALLEL_1 };
+ option.need_sync = TRUE;
option.tmpfile = _get_temp_filename ();
EXPECT_TRUE (option.tmpfile != NULL);
const guint num_buffers = 2;
TestOption option = { num_buffers, TEST_TYPE_ISSUE739_MERGE_PARALLEL_2 };
+ option.need_sync = TRUE;
option.tmpfile = _get_temp_filename ();
EXPECT_TRUE (option.tmpfile != NULL);
const guint num_buffers = 2;
TestOption option = { num_buffers, TEST_TYPE_ISSUE739_MERGE_PARALLEL_3 };
+ option.need_sync = TRUE;
option.tmpfile = _get_temp_filename ();
EXPECT_TRUE (option.tmpfile != NULL);