mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
new proggy I never checked in
Original commit message from CVS: new proggy I never checked in
This commit is contained in:
parent
36173ee63a
commit
ec5122f8d3
4 changed files with 96 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
|
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
|
||||||
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
|
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
|
||||||
|
|
||||||
testprogs = intersection compatibility normalisation union string-conversions fixed
|
testprogs = intersection compatibility normalisation union string-conversions fixed intersect2
|
||||||
|
|
||||||
# we run gst-register here, which is a HACK to generate the test registry
|
# we run gst-register here, which is a HACK to generate the test registry
|
||||||
# before we actually run the real tests
|
# before we actually run the real tests
|
||||||
|
@ -22,3 +22,6 @@ string_conversions_LDADD = $(GST_LIBS)
|
||||||
string_conversions_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
string_conversions_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
||||||
fixed_LDADD = $(GST_LIBS)
|
fixed_LDADD = $(GST_LIBS)
|
||||||
fixed_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
fixed_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
||||||
|
intersect2_LDADD = $(GST_LIBS)
|
||||||
|
intersect2_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
||||||
|
|
||||||
|
|
44
tests/old/testsuite/caps/intersect2.c
Normal file
44
tests/old/testsuite/caps/intersect2.c
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
GST_CAPS_FACTORY (rawcaps1,
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw1_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
),
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw1_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("I420")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
main (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
GstCaps *caps1;
|
||||||
|
GstCaps *caps2;
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
|
caps1 = GST_CAPS_GET (rawcaps1);
|
||||||
|
caps2 = gst_caps_copy_1 (GST_CAPS_GET (rawcaps1));
|
||||||
|
|
||||||
|
gst_caps_set(caps1, "height", GST_PROPS_INT(640));
|
||||||
|
gst_caps_set(caps1, "width", GST_PROPS_INT(480));
|
||||||
|
gst_caps_set(caps1, "framerate", GST_PROPS_FLOAT(30.0));
|
||||||
|
|
||||||
|
caps = gst_caps_intersect(caps1, caps2);
|
||||||
|
|
||||||
|
g_print("caps %s\n", gst_caps_to_string(caps));
|
||||||
|
|
||||||
|
if(caps == NULL)return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
|
TOP_BUILDDIR=$(shell cd $(top_builddir) && pwd)
|
||||||
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
|
TESTS_ENVIRONMENT = GST_PLUGIN_PATH=$(TOP_BUILDDIR) GST_REGISTRY=$(TOP_BUILDDIR)/testsuite/test-registry.xml
|
||||||
|
|
||||||
testprogs = intersection compatibility normalisation union string-conversions fixed
|
testprogs = intersection compatibility normalisation union string-conversions fixed intersect2
|
||||||
|
|
||||||
# we run gst-register here, which is a HACK to generate the test registry
|
# we run gst-register here, which is a HACK to generate the test registry
|
||||||
# before we actually run the real tests
|
# before we actually run the real tests
|
||||||
|
@ -22,3 +22,6 @@ string_conversions_LDADD = $(GST_LIBS)
|
||||||
string_conversions_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
string_conversions_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
||||||
fixed_LDADD = $(GST_LIBS)
|
fixed_LDADD = $(GST_LIBS)
|
||||||
fixed_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
fixed_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
||||||
|
intersect2_LDADD = $(GST_LIBS)
|
||||||
|
intersect2_CFLAGS = $(GST_CFLAGS) $(GNOME_CFLAGS) $(XML_CFLAGS)
|
||||||
|
|
||||||
|
|
44
testsuite/caps/intersect2.c
Normal file
44
testsuite/caps/intersect2.c
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
GST_CAPS_FACTORY (rawcaps1,
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw1_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("YUYV")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
),
|
||||||
|
GST_CAPS_NEW (
|
||||||
|
"raw1_sink_caps",
|
||||||
|
"video/raw",
|
||||||
|
"fourcc", GST_PROPS_FOURCC (GST_STR_FOURCC ("I420")),
|
||||||
|
"height", GST_PROPS_INT (640),
|
||||||
|
"width", GST_PROPS_INT (480),
|
||||||
|
"framerate",GST_PROPS_FLOAT (30.0)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
main (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
GstCaps *caps1;
|
||||||
|
GstCaps *caps2;
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
|
caps1 = GST_CAPS_GET (rawcaps1);
|
||||||
|
caps2 = gst_caps_copy_1 (GST_CAPS_GET (rawcaps1));
|
||||||
|
|
||||||
|
gst_caps_set(caps1, "height", GST_PROPS_INT(640));
|
||||||
|
gst_caps_set(caps1, "width", GST_PROPS_INT(480));
|
||||||
|
gst_caps_set(caps1, "framerate", GST_PROPS_FLOAT(30.0));
|
||||||
|
|
||||||
|
caps = gst_caps_intersect(caps1, caps2);
|
||||||
|
|
||||||
|
g_print("caps %s\n", gst_caps_to_string(caps));
|
||||||
|
|
||||||
|
if(caps == NULL)return 1;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue