int main (int argc, char **argv) { int nf; Suite *s = mpegvideoparse_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); /* init test context */ ctx_factory = "mpegvideoparse"; ctx_sink_template = &sinktemplate; ctx_src_template = &srctemplate; ctx_headers[0].data = mpeg2_seq; ctx_headers[0].size = sizeof (mpeg2_seq); ctx_verify_buffer = verify_buffer; ctx_setup = setup_element; srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main (int argc, char **argv) { int nf; Suite *s = mpeg4videoparse_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); /* init test context */ ctx_factory = "mpeg4videoparse"; ctx_sink_template = &sinktemplate; ctx_src_template = &srctemplate; ctx_headers[0].data = mpeg4_config; ctx_headers[0].size = sizeof (mpeg4_config); ctx_verify_buffer = verify_buffer; /* no timing info to parse */ ctx_no_metadata = TRUE; srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main (int argc, char **argv) { int nf; GstCaps *caps; Suite *s = amrnb_parse_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); /* init test context */ srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); gst_caps_unref (caps); s = amrwb_parse_suite (); sr = srunner_create (s); srunner_run_all (sr, CK_NORMAL); nf += srunner_ntests_failed (sr); srunner_free (sr); gst_caps_unref (caps); return nf; }
int main (int argc, char **argv) { int nf; Suite *s = flacparse_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); /* init test context */ ctx_factory = "flacparse"; ctx_sink_template = &sinktemplate; ctx_src_template = &srctemplate; ctx_discard = 3; ctx_headers[0].data = streaminfo_header; ctx_headers[0].size = sizeof (streaminfo_header); ctx_headers[1].data = comment_header; ctx_headers[1].size = sizeof (comment_header); /* custom offsets, and ts always repeatedly 0 */ ctx_no_metadata = TRUE; srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main(int argc,char** argv) { int i; gst_check_init(&argc,&argv); for(i=0;i<2;i++) fn[i](); }
int main() { gst_check_init (NULL, NULL); create_queries(); test_queries(); }
int main (int argc, char **argv) { Suite *s; g_setenv ("GST_GL_XINITTHREADS", "1", TRUE); gst_check_init (&argc, &argv); s = glimagesink_suite (); return gst_check_run_suite (s, "glimagesink", __FILE__); }
int main() { gst_check_init (NULL, NULL); test_num_buffers(); test_nonseeking(); test_seeking(); }
int main (int argc, char **argv) { int nf; Suite *s = rtp_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main (int argc, char **argv) { SRunner *sr; Suite *s; int nf; gst_check_init (&argc, &argv); s = simple_launch_lines_suite (); sr = srunner_create (s); srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main (int argc, char **argv) { int nf; Suite *s = ges_suite (); gst_check_init (&argc, &argv); av_uri = ges_test_get_audio_video_uri (); image_uri = ges_test_get_image_uri (); nf = gst_check_run_suite (s, "ges", __FILE__); g_free (av_uri); g_free (image_uri); return nf; }
int main (int argc, char **argv) { int nf; Suite *s = hlsdemux_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); GST_DEBUG_CATEGORY_INIT (fragmented_debug, "hlsdemux_m3u", 0, "hlsdemux m3u test"); srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main (int argc, char **argv) { int nf; Suite *s = aacparse_suite (); SRunner *sr = srunner_create (s); gst_check_init (&argc, &argv); /* init test context */ ctx_factory = "aacparse"; ctx_sink_template = &sinktemplate; ctx_src_template = &srctemplate; srunner_run_all (sr, CK_NORMAL); nf = srunner_ntests_failed (sr); srunner_free (sr); return nf; }
int main (int argc, char **argv) { int nf = 0; Suite *s; SRunner *sr; gst_check_init (&argc, &argv); /* globabl init test context */ ctx_factory = "h264parse"; ctx_sink_template = &sinktemplate_bs_nal; ctx_src_template = &srctemplate; ctx_headers[0].data = h264_sps; ctx_headers[0].size = sizeof (h264_sps); ctx_headers[1].data = h264_pps; ctx_headers[1].size = sizeof (h264_pps); ctx_verify_buffer = verify_buffer; /* discard initial sps/pps buffers */ ctx_discard = 2; /* no timing info to parse */ ctx_no_metadata = TRUE; ctx_codec_data = FALSE; ctx_suite = "h264parse_to_bs_nal"; s = h264parse_suite (); sr = srunner_create (s); srunner_run_all (sr, CK_NORMAL); nf += srunner_ntests_failed (sr); srunner_free (sr); /* setup and tweak to handle avc au output */ ctx_suite = "h264parse_to_avc_au"; ctx_sink_template = &sinktemplate_avc_au; ctx_discard = 0; ctx_codec_data = TRUE; s = h264parse_suite (); sr = srunner_create (s); srunner_run_all (sr, CK_NORMAL); nf += srunner_ntests_failed (sr); srunner_free (sr); /* setup and tweak to handle avc packetized input */ ctx_suite = "h264parse_packetized"; /* turn into separate byte stream NALs */ ctx_sink_template = &sinktemplate_bs_nal; /* and ignore inserted codec-data NALs */ ctx_discard = 2; /* no more config headers */ ctx_headers[0].data = NULL; ctx_headers[1].data = NULL; ctx_headers[0].size = 0; ctx_headers[1].size = 0; /* and need adapter buffer check */ ctx_verify_buffer = verify_buffer_packetized; s = h264parse_packetized_suite (); sr = srunner_create (s); srunner_run_all (sr, CK_NORMAL); nf += srunner_ntests_failed (sr); srunner_free (sr); return nf; }