summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-03-01 15:24:39 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-03-01 15:24:39 +0000
commita0cc9d1af004376cbedd8dd230712c69cd203517 (patch)
tree7be790ac30da5e9573f0cb921eeb03b0a8ef3446 /tests
parent39d408f3d6baab34ad3baa117c6d784a1884bf0f (diff)
downloadgstreamer-plugins-bad-a0cc9d1af004376cbedd8dd230712c69cd203517.tar.gz
Remove schroedinger plugin
No upstream (website disappeared), no maintainer, and pretty much a fringe format anyway. https://bugzilla.gnome.org/show_bug.cgi?id=776215
Diffstat (limited to 'tests')
-rw-r--r--tests/check/Makefile.am7
-rw-r--r--tests/check/elements/.gitignore1
-rw-r--r--tests/check/elements/schroenc.c177
-rw-r--r--tests/check/meson.build1
4 files changed, 0 insertions, 186 deletions
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index 5a7c497b2..dc2cac995 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -108,12 +108,6 @@ else
check_ofa =
endif
-if USE_SCHRO
-check_schro=elements/schroenc
-else
-check_schro=
-endif
-
if USE_X265
check_x265enc=elements/x265enc
else
@@ -285,7 +279,6 @@ check_PROGRAMS = \
libs/vp8parser \
$(check_uvch264) \
libs/vc1parser \
- $(check_schro) \
$(check_x265enc) \
elements/viewfinderbin \
$(check_zbar) \
diff --git a/tests/check/elements/.gitignore b/tests/check/elements/.gitignore
index d264dae57..5265a88f5 100644
--- a/tests/check/elements/.gitignore
+++ b/tests/check/elements/.gitignore
@@ -52,7 +52,6 @@ rglimiter
rgvolume
rtponvifparse
rtponviftimestamp
-schroenc
shm
spectrum
srtp
diff --git a/tests/check/elements/schroenc.c b/tests/check/elements/schroenc.c
deleted file mode 100644
index c38ca98e2..000000000
--- a/tests/check/elements/schroenc.c
+++ /dev/null
@@ -1,177 +0,0 @@
-/* GStreamer
- *
- * Copyright (c) 2010 Sebastian Dröge <sebastian.droege@collabora.co.uk>
- * Copyright (c) 2010 David Schleef <ds@schleef.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#include <gst/check/gstcheck.h>
-
-static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
- GST_PAD_SINK,
- GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("video/x-dirac, "
- "width = (int) [1, MAX], "
- "height = (int) [1, MAX], " "framerate = (fraction) [0, MAX]"));
-
-static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
- GST_PAD_SRC,
- GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("video/x-raw, "
- "format = (string) I420, "
- "width = (int) [1, MAX], "
- "height = (int) [1, MAX], " "framerate = (fraction) [0, MAX]"));
-
-static GstPad *sinkpad, *srcpad;
-
-static GstElement *
-setup_schroenc (const gchar * src_caps_str)
-{
- GstElement *schroenc;
- GstCaps *srccaps = NULL;
- GstBus *bus;
-
- if (src_caps_str) {
- srccaps = gst_caps_from_string (src_caps_str);
- fail_unless (srccaps != NULL);
- }
-
- schroenc = gst_check_setup_element ("schroenc");
- fail_unless (schroenc != NULL);
- srcpad = gst_check_setup_src_pad (schroenc, &srctemplate);
- sinkpad = gst_check_setup_sink_pad (schroenc, &sinktemplate);
- gst_pad_set_active (srcpad, TRUE);
- gst_pad_set_active (sinkpad, TRUE);
-
- gst_check_setup_events (srcpad, schroenc, srccaps, GST_FORMAT_TIME);
-
- bus = gst_bus_new ();
- gst_element_set_bus (schroenc, bus);
-
- fail_unless (gst_element_set_state (schroenc,
- GST_STATE_PLAYING) != GST_STATE_CHANGE_FAILURE,
- "could not set to playing");
-
- if (srccaps)
- gst_caps_unref (srccaps);
-
- buffers = NULL;
- return schroenc;
-}
-
-static void
-cleanup_schroenc (GstElement * schroenc)
-{
- GstBus *bus;
-
- /* Free parsed buffers */
- gst_check_drop_buffers ();
-
- bus = GST_ELEMENT_BUS (schroenc);
- gst_bus_set_flushing (bus, TRUE);
- gst_object_unref (bus);
-
- gst_pad_set_active (srcpad, FALSE);
- gst_pad_set_active (sinkpad, FALSE);
- gst_check_teardown_src_pad (schroenc);
- gst_check_teardown_sink_pad (schroenc);
- gst_check_teardown_element (schroenc);
-}
-
-GST_START_TEST (test_encode_simple)
-{
- GstElement *schroenc;
- GstBuffer *buffer;
- gint i;
- GList *l;
- GstCaps *outcaps, *sinkcaps;
- GstSegment seg;
-
- schroenc =
- setup_schroenc
- ("video/x-raw,format=(string)I420,width=(int)320,height=(int)240,framerate=(fraction)25/1");
-
- g_object_set (schroenc, "queue-depth", 10, NULL);
-
- gst_segment_init (&seg, GST_FORMAT_TIME);
- seg.stop = gst_util_uint64_scale (20, GST_SECOND, 25);
-
- fail_unless (gst_pad_push_event (srcpad, gst_event_new_segment (&seg)));
-
- buffer = gst_buffer_new_allocate (NULL, 320 * 240 + 2 * 160 * 120, NULL);
- gst_buffer_memset (buffer, 0, 0, -1);
-
- for (i = 0; i < 20; i++) {
- GST_BUFFER_TIMESTAMP (buffer) = gst_util_uint64_scale (i, GST_SECOND, 25);
- GST_BUFFER_DURATION (buffer) = gst_util_uint64_scale (1, GST_SECOND, 25);
- fail_unless (gst_pad_push (srcpad, gst_buffer_ref (buffer)) == GST_FLOW_OK);
- }
-
- gst_buffer_unref (buffer);
-
- /* Only 5 buffers are allowed to be queued now */
- fail_unless (g_list_length (buffers) > 10);
-
- fail_unless (gst_pad_push_event (srcpad, gst_event_new_eos ()));
-
-
- /* All buffers must be there now */
- fail_unless_equals_int (g_list_length (buffers), 20);
-
- outcaps =
- gst_caps_from_string
- ("video/x-dirac,width=(int)320,height=(int)240,framerate=(fraction)25/1");
-
- for (l = buffers, i = 0; l; l = l->next, i++) {
- buffer = l->data;
-
- if (i == 0)
- fail_if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DELTA_UNIT));
-
-#if 0
- fail_unless_equals_uint64 (GST_BUFFER_TIMESTAMP (buffer),
- gst_util_uint64_scale (i, GST_SECOND, 25));
-#endif
- fail_unless_equals_uint64 (GST_BUFFER_DURATION (buffer),
- gst_util_uint64_scale (1, GST_SECOND, 25));
-
- sinkcaps = gst_pad_get_current_caps (sinkpad);
- fail_unless (gst_caps_can_intersect (sinkcaps, outcaps));
- gst_caps_unref (sinkcaps);
- }
-
- gst_caps_unref (outcaps);
-
- cleanup_schroenc (schroenc);
-}
-
-GST_END_TEST;
-
-static Suite *
-schroenc_suite (void)
-{
- Suite *s = suite_create ("schroenc");
- TCase *tc_chain = tcase_create ("general");
-
- suite_add_tcase (s, tc_chain);
-
- tcase_add_test (tc_chain, test_encode_simple);
-
- return s;
-}
-
-GST_CHECK_MAIN (schroenc);
diff --git a/tests/check/meson.build b/tests/check/meson.build
index 1cb817164..5b624c207 100644
--- a/tests/check/meson.build
+++ b/tests/check/meson.build
@@ -47,7 +47,6 @@ base_tests = [
[['elements/netsim.c']],
[['elements/pcapparse.c'], false, [libparser_dep]],
[['elements/pnm.c']],
- [['elements/schroenc.c'], not schro_dep.found(), [schro_dep]],
[['elements/shm.c'], not shm_enabled, shm_deps],
[['elements/rtponvifparse.c']],
[['elements/rtponviftimestamp.c']],