From 4c4d69e51abd772fdf09a98aac52c53ab4ce59a6 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 2 Aug 2003 01:55:24 +0000 Subject: [PATCH] Add another test Original commit message from CVS: Add another test --- tests/old/testsuite/caps/intersection.c | 25 +++++++++++++++++++++++++ testsuite/caps/intersection.c | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/tests/old/testsuite/caps/intersection.c b/tests/old/testsuite/caps/intersection.c index af21c8b1b1..931e0c6e39 100644 --- a/tests/old/testsuite/caps/intersection.c +++ b/tests/old/testsuite/caps/intersection.c @@ -80,6 +80,26 @@ GST_CAPS_FACTORY (rawcaps5, "height", GST_PROPS_INT_RANGE (16, 4096) ) ); + +GST_CAPS_FACTORY (rawcaps6, + GST_CAPS_NEW ( + "raw6_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 ( + "raw6_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[]) { @@ -117,6 +137,11 @@ main (int argc, char *argv[]) parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL); gst_caps_save_thyself (caps, parent); + caps = gst_caps_intersect (GST_CAPS_GET (rawcaps6), + gst_caps_copy_1(GST_CAPS_GET (rawcaps6))); + parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities5", NULL); + gst_caps_save_thyself (caps, parent); + xmlDocDump(stdout, doc); return 0; diff --git a/testsuite/caps/intersection.c b/testsuite/caps/intersection.c index af21c8b1b1..931e0c6e39 100644 --- a/testsuite/caps/intersection.c +++ b/testsuite/caps/intersection.c @@ -80,6 +80,26 @@ GST_CAPS_FACTORY (rawcaps5, "height", GST_PROPS_INT_RANGE (16, 4096) ) ); + +GST_CAPS_FACTORY (rawcaps6, + GST_CAPS_NEW ( + "raw6_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 ( + "raw6_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[]) { @@ -117,6 +137,11 @@ main (int argc, char *argv[]) parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities4", NULL); gst_caps_save_thyself (caps, parent); + caps = gst_caps_intersect (GST_CAPS_GET (rawcaps6), + gst_caps_copy_1(GST_CAPS_GET (rawcaps6))); + parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities5", NULL); + gst_caps_save_thyself (caps, parent); + xmlDocDump(stdout, doc); return 0;